The following is an example Apache Axis client calling an catalog web service. The getProductXMLById
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/order/getProductXMLById?WSDL
Next, the following code executes the getProductXMLById
web service:
GetProductXMLByIdSEIService webService = new GetProductXMLByIdServiceLocator(); GetProductXMLByIdSEI catalogStub = webService.getGetProductXMLByIdSEIPort(); String productXML = catalogStub.getProductXMLById("product1", null);