The following is an example Apache Axis client calling a profile web service. The getDefaultShippingAddress web service is used in this example.

The first step in calling the profile web service using Apache is to generate the client stubs:

java org.apache.axis.wsdl.WSDL2Java
http://hostname:port/commerce/profile/getDefaultShippingAddress?WSDL

Next, the following code executes the getDefaultShippingAddress web service:

GetDefaultShippingAddressSEIService webService = new
GetDefaultShippingAddressSEIServiceLocator();
GetDefaultShippingAddressSEI addressStub =
webService.getGetDefaultShippingAddressSEIPort();
OrderPrice price = pricingStub.calculateOrderPrice(myOrderId, null);
 
loading table of contents...