The following is an example Apache Axis client calling a pricing Web service. The calculateOrderPrice web service is used in this example.

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

java org.apache.axis.wsdl.WSDL2Java

Next, the following code executes the calculateOrderPrice web service:

CalculateOrderPriceSEIService webService = new

CalculateOrderPriceSEI pricingStub =

OrderPrice price = pricingStub.calculateOrderPrice(myOrderId, null);
loading table of contents...