String apiKey="**********";
com.xld.client.OutOrder outOrder=new com.xld.client.OutOrder();
outOrder.setSource("01");
outOrder.setSourceId("856546434");
outOrder.setOrderType("01");
outOrder.setOrderModel("01");
outOrder.setIsUrgent("1");
outOrder.setWarehouseCode("lhc");
outOrder.setCarrierCode("ZTKD");
outOrder.setShopCode("0005");
outOrder.setReceiverAddressName("某某村");
outOrder.setReceiverProvince("广东省");
outOrder.setReceiverCity("广州市");
outOrder.setReceiverArea("天河区");
outOrder.setReceiverStreet("下九路");
outOrder.setReceiverPostcode("56151");
outOrder.setReceiverCode("45964");
outOrder.setReceiver("xui");
outOrder.setReceiverMobile("4165651");
outOrder.setBuyerFreight(5.22);
outOrder.setWaybillNo("26165165");
outOrder.setCommunicateMemo("fsdf");
outOrder.setMemo("dfsd");
outOrder.setInBatchNo("641145665");
outOrder.setDeliverName("xsd");
outOrder.setDeliverAddress("某某村");
outOrder.setDeliverMobile("1102222");
outOrder.setDeliverZip("21651265");
outOrder.setDeliverCompany("kuajinyi");
OutOrderCargo outOrderCargo=new OutOrderCargo();
outOrderCargo.setProductCode("msdshangpin01");
outOrderCargo.setPlanQty(2);
outOrderCargo.setUnitPrice(2.22);
outOrderCargo.setUnitWeight(2.22);
List<OutOrderCargo> outOrderCargos=new
ArrayList<OutOrderCargo>();
outOrderCargos.add(outOrderCargo);
outOrder.setOrderCargos(outOrderCargos);;
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.Result resutl=
query.addOsOutOrderAndAudit(apiKey, outOrder);
StockDemo.WarehouseService.OutOrder outOrder = new OutOrder();
WarehouseService.OrderWSClient wsClient = new WarehouseService.OrderWSClient();
outOrder.id = string.Empty;
outOrder.source = string.Empty;
outOrder.sourceId = string.Empty;
outOrder.orderType = string.Empty;
outOrder.orderModel = string.Empty;
outOrder.isUrgent = string.Empty;
outOrder.warehouseCode = string.Empty;
outOrder.warehouseName = string.Empty;
outOrder.carrierCode = string.Empty;)
StockDemo.WarehouseService.Result result = wsClient.addOsOutOrderAndAudit("apiKey", outOrder);
if (result.isSuccess)
{
true
}
else
{
false
}