Table of Contents

Search

  1. Preface
  2. Web Service Concepts
  3. Understanding the Web Services Provider
  4. Using the Web Services Hub Console
  5. Batch Web Service Operations
  6. Writing Client Applications
  7. Working with Web Service Sources and Targets
  8. Editing Web Service Sources and Targets
  9. Working with Web Service Mappings
  10. Working with Web Service Workflows
  11. Appendix A: Web Service Sample Client Applications
  12. Appendix B: Configure the Web Browser

Web Services Provider Guide

Web Services Provider Guide

Step 2. Initialize the Web Service Objects

Step 2. Initialize the Web Service Objects

Before you call any web service operation, you must create the web service object in the client proxy classes and get the port for the web service.
To create the web service object, instantiate the service locator classes. In the sample program, the following code instantiates the service locator:
CustomerLookup_MULTIPLEROW service = new CustomerLookup_MULTIPLEROWLocator();
To get the port for the web service, use the proxy class created for the port type. In the sample program, the following code gets the port for the web service:
CustomerLookup_MULTIPLEROWPort port =              service.getCustomerLookup_MULIPLEROWPort(new java.net.URL(END_POINT_URL);
The variable END_POINT_URL contains the URL of the WSDL.

0 COMMENTS

We’d like to hear from you!