The following is an example Apache Axis client calling an inventory web service. The getInventory
web service is used in this example.
The first step in calling the inventory web service using Apache is to generate the client stubs:
java org.apache.axis.wsdl.WSDL2Java
http://hostname:port
/commerce/inventory/getInventory?WSDL
Next, the following code executes the getInventory
web service:
GetInventorySEIService webService = new GetInventoryServiceLocator(); GetInventorySEI inventoryStub = webService.getGetInventorySEIPort(); String[] skuIds = { "sku1", "sku2" }; SimpleInventoryInfo[] infos = inventoryStub.getInventory(skuIds);