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
http://hostname:port/commerce/pricing/calculateOrderPrice?WSDL

Next, the following code executes the calculateOrderPrice web service:

CalculateOrderPriceSEIService webService = new
        CalculateOrderPriceSEIServiceLocator();

CalculateOrderPriceSEI pricingStub =
        webService.getCalculateOrderPriceSEIPort();

OrderPrice price = pricingStub.calculateOrderPrice(myOrderId, null);

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