Publishes this endpoint at the provided server context. A server context encapsulates the server infrastructure and addressing information for a particular transport. For a call to this method to succeed, the server context passed as an argument to it MUST be compatible with the endpoint's binding.
This is meant for container developers to publish the the endpoints portably and not intended for the end developers.
serverContext | An object representing a server context to be used for publishing the endpoint. |
java.lang.IllegalArgumentException
| If the provided server context is not supported by the implementation or turns out to be unusable in conjunction with the endpoint's binding. | |
java.lang.IllegalStateException
| If the endpoint has been published already or it has been stopped. | |
java.lang.SecurityException
| If a java.lang.SecurityManger
is being used and the application doesn't have the
WebServicePermission("publishEndpoint") permission. |
Diagram: Endpoint