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);

Copyright © 1997, 2015 Oracle and/or its affiliates. All rights reserved. Legal Notices