Setting up the Web service objects
Print
- Last Updated: March 30, 2020
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
To set up the session-managed Web service objects for your client:
-
Create the Web service locator. For the sample, you generate the
OrderInfoclient's service object that manages the connection with the WSA:OrderInfoService service = new OrderInfoServiceLocator( ); -
Instantiate the client objects that do the marshalling and unmarshalling of SOAP and
HTTP messages for methods on the
OrderInfoobject. For example, you might execute the following method for the sample:OrderInfoObjStub orderInfo = (OrderInfoObjStub)service.getOrderInfoObj(connectURL); -
Instantiate the client objects that do the marshalling and unmarshalling of SOAP and
HTTP messages for methods on the
CustomerOrderobject. For example you might execute the following method for the sample:CustomerOrderObjStub custOrder = (CustomerOrderObjStub)service.getCustomerOrderObj(connectURL);