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

Next, the following code executes the getProductXMLById web service:

GetProductXMLByIdSEIService webService = new
GetProductXMLByIdSEI catalogStub =
String productXML = catalogStub.getProductXMLById("product1", null);