String apiKey="**********";
String startDate="2016-06-21 00:00:00";
String endDate="2016-06-25 00:00:00";
com.xld.client.RequestPager requestPager=
new com.xld.client.RequestPager();
requestPager.setPageSize(1);
requestPager.setPageSize(3);
JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
factory.setServiceClass(com.xld.client.OrderWS.class);
factory.setAddress("http://store.kjy.cn/ecscm/services/orderService?wsdl");
com.xld.client.OrderWS query =(com.xld.client.OrderWS)
factory.create();
com.xld.client.StockOutOrderListResult resutl=query.
getOutOrderCargoList(apiKey, startDate, endDate, requestPager);
StockDemo.WarehouseService.RequestPager pager = new RequestPager();
pager.pageNumber = new int?[1] { 1 };
pager.pageSize = 20;
WarehouseService.OrderWSClient wsClient = new WarehouseService.OrderWSClient();
StockDemo.WarehouseService.OutOrderStatusInfoListResult result = wsClient.getOutOrderStatusList("apiKey", DateTime.Now.AddDays(-10).ToShortDateString(), DateTime.Now.AddDays(-5).ToShortDateString(), pager);