Try OpenEdge Now
skip to main content
Web Services
Developing a Java Client to Consume OpenEdge SOAP Web Services : Developing the Axis client application : Setting up the Web service objects
 

Setting up the Web service objects

To set up the session-managed Web service objects for your client:
1. Create the Web service locator. For the sample, you generate the OrderInfo client's service object that manages the connection with the WSA:
OrderInfoService service = new OrderInfoServiceLocator( );
2. Instantiate the client objects that do the marshalling and unmarshalling of SOAP and HTTP messages for methods on the OrderInfo object. For example, you might execute the following method for the sample:
OrderInfoObjStub   orderInfo =
       (OrderInfoObjStub)service.getOrderInfoObj(connectURL);
3. Instantiate the client objects that do the marshalling and unmarshalling of SOAP and HTTP messages for methods on the CustomerOrder object. For example you might execute the following method for the sample:
CustomerOrderObjStub    custOrder =
       (CustomerOrderObjStub)service.getCustomerOrderObj(connectURL);