Skip Headers
Oracle® Fusion Middleware Programming Advanced Features of JAX-WS Web Services for Oracle WebLogic Server
11g Release 1 (10.3.4)

Part Number E13734-03
Go to Documentation Home
Go to Book List
Book List
Go to Table of Contents
Go to Master Index
Master Index
Go to Feedback page
Contact Us

Go to previous page
Go to next page
View PDF

10 Publishing a Web Service Endpoint

The API (see enables you to create a Web service endpoint at runtime without deploying the Web service to a WebLogic Server instance.

The following table summarizes the steps to publish a Web service endpoint.

Table 10-1 Steps to Publish a Web Service Endpoint

Step Description


Create a Web service endpoint.

Use the create() method to create the endpoint, specify the implementor (that is, the Web service implementation) to which the endpoint is associated, and optionally specify the binding type. If not specified, the binding type defaults to SOAP1.1/HTTP. The endpoint is associated with only one implementation object and one, as defined at runtime; these values cannot be changed.

For example, the following example creates a Web service endpoint for the CallbackWS() implementation.

Endpoint callbackImpl = Endpoint.create(new CallbackWS());


Publish the Web service endpoint to accept incoming requests.

Use the publish() method to specify the server context, or the address and optionally the implementor of the Web service endpoint.

Note: If you wish to update the metadata documents (WSDL or XML schema) associated with the endpoint, you must do so before publishing the endpoint.

For example, the following example publishes the Web service endpoint created in Step 1 using the server context.

Object sc


Stop the Web service endpoint to shut it down and prevent additional requests after processing is complete.

Use the stop() method to shut down the endpoint and stop accepting incoming requests. Once stopped, an endpoint cannot be republished.

For example:


For an example of publishing a Web service endpoint within the context of a callback example, see Programming Guidelines for the Callback Client Web Service.

In addition to the steps described in the previous table, you can defined the following using the API methods:

For more information, see the Javadoc at