// Path: spring-ws-tolerant-reader/src/main/java/com/codenotfound/ws/model/Order.java
// public class Order {
// 
//   private String orderId;
// 
//   public Order(String orderId) {
//     this.orderId = orderId;
//   }
// 
//   public String getOrderId() {
//     return orderId;
//   }
// 
//   public void setOrderId(String orderId) {
//     this.orderId = orderId;
//   }
// 
//   @Override
//   public String toString() {
//     return "Order[orderId=" + orderId + "]";
//   }
// }
// 
// Path: spring-ws-tolerant-reader/src/main/java/com/codenotfound/ws/model/OrderHistory.java
// public class OrderHistory {
// 
//   private List<Order> orders;
// 
//   public List<Order> getOrders() {
//     return orders;
//   }
// 
//   public void setOrders(List<Order> orders) {
//     this.orders = orders;
//   }
// }


import java.io.IOException;
import java.util.List;
import javax.xml.transform.dom.DOMResult;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.ws.WebServiceMessage;
import org.springframework.ws.client.core.WebServiceTemplate;
import org.springframework.ws.support.MarshallingUtils;
import org.springframework.xml.xpath.NodeMapper;
import org.springframework.xml.xpath.XPathExpression;
import org.w3c.dom.Node;
import com.codenotfound.types.orderhistory.GetOrderHistoryRequest;
import com.codenotfound.types.orderhistory.ObjectFactory;
import com.codenotfound.ws.model.Order;
import com.codenotfound.ws.model.OrderHistory;
package com.codenotfound.ws.client;





@Component
public class OrderHistoryClient {

  private static final Logger LOGGER = LoggerFactory.getLogger(OrderHistoryClient.class);

  @Autowired
  private XPathExpression orderXPath;
  @Autowired
  private XPathExpression orderIdXPath;

// Path: spring-ws-tolerant-reader/src/main/java/com/codenotfound/ws/model/Order.java
// public class Order {
// 
//   private String orderId;
// 
//   public Order(String orderId) {
//     this.orderId = orderId;
//   }
// 
//   public String getOrderId() {
//     return orderId;
//   }
// 
//   public void setOrderId(String orderId) {
//     this.orderId = orderId;
//   }
// 
//   @Override
//   public String toString() {
//     return "Order[orderId=" + orderId + "]";
//   }
// }
// 
// Path: spring-ws-tolerant-reader/src/main/java/com/codenotfound/ws/model/OrderHistory.java
// public class OrderHistory {
// 
//   private List<Order> orders;
// 
//   public List<Order> getOrders() {
//     return orders;
//   }
// 
//   public void setOrders(List<Order> orders) {
//     this.orders = orders;
//   }
// }


// Path: spring-ws-tolerant-reader/src/main/java/com/codenotfound/ws/client/OrderHistoryClient.java
import java.io.IOException;
import java.util.List;
import javax.xml.transform.dom.DOMResult;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.ws.WebServiceMessage;
import org.springframework.ws.client.core.WebServiceTemplate;
import org.springframework.ws.support.MarshallingUtils;
import org.springframework.xml.xpath.NodeMapper;
import org.springframework.xml.xpath.XPathExpression;
import org.w3c.dom.Node;
import com.codenotfound.types.orderhistory.GetOrderHistoryRequest;
import com.codenotfound.types.orderhistory.ObjectFactory;
import com.codenotfound.ws.model.Order;
import com.codenotfound.ws.model.OrderHistory;

package com.codenotfound.ws.client;





@Component
public class OrderHistoryClient {

  private static final Logger LOGGER = LoggerFactory.getLogger(OrderHistoryClient.class);

  @Autowired
  private XPathExpression orderXPath;
  @Autowired
  private XPathExpression orderIdXPath;

  @Autowired