String apiKey="*******************";
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.TransInfo result=query.getTransInfo(apiKey,
"01", "lydh20160526001");
WarehouseService.OrderWSClient wsClient = new WarehouseService.OrderWSClient();
StockDemo.WarehouseService.TransInfo result = wsClient.getTransInfo("apiKey", "01", "20160718000001");
string waybillNo = result.waybillNo;