Library Link To Toggle Frames Print Feedback

Chapter 2. Developing a Consumer Without a WSDL Contract

Summary

You do not need a WSDL contract to develop a service consumer. You can create a service consumer from an annotated SEI. Along with the SEI you need to know the address at which the endpoint exposing the service is published, the QName of the service element that defines the endpoint exposing the service, and the QName of the port element defining the endpoint your consumer upon which your consumer will make requests. This information can be specified in the SEI's annotations or provided separately.

Table of Contents

Creating a Service Object
Adding a Port to a Service
Getting a Proxy for an Endpoint
Implementing the Consumer's Business Logic

To create a consumer without a WSDL contract you need to do the following:

  1. Create a Service object for the service on which the consumer will invoke operations.

  2. Add a port to the Service object.

  3. Get a proxy for the service using the Service object's getPort() method.

  4. Implement the consumer's business logic.