The following is an example Apache Axis client calling an order management web service. The createOrder web service is used in this example.

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

java org.apache.axis.wsdl.WSDL2Java
http://hostname:port/commerce/order/createOrder?WSDL

Next, the following code executes the createOrder web service:

CreateOrderSEIService webService = new CreateOrderSEIServiceLocator();
CreateOrderSEI createStub = webService.getCreateOrderSEIPort();
String orderId = createStub.createOrder(null);

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