public static Endpoint publish (String address, Object implementor)

Creates and publishes an endpoint for the specified implementor object at the given address.

The necessary server infrastructure will be created and configured by the JAX-WS implementation using some default configuration. In order to get more control over the server configuration, please use the javax.xml.ws.Endpoint.create(String,Object) and javax.xml.ws.Endpoint.publish(Object) methods instead.

Parameters:
address    A URI specifying the address and transport/protocol to use. A http: URI MUST result in the SOAP 1.1/HTTP binding being used. Implementations may support other URI schemes.
implementor    The endpoint implementor.

Returns:  The newly created endpoint.

Exceptions:
java.lang.SecurityException     If a java.lang.SecurityManger is being used and the application doesn't have the WebServicePermission("publishEndpoint") permission.