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.Result result=query.cutOutOrder(apiKey,
"01", "89562234", "不小心,订单拍错了");
WarehouseService.OrderWSClient wsClient = new WarehouseService.OrderWSClient();
StockDemo.WarehouseService.Result result = wsClient.cutOutOrder("apiKey", "01", "20160718000001", "理由AAAAAAAAAAAAAAA");
if (result.isSuccess)
{
true
}
else
{
false
}