The getPort method returns a proxy. If there
are any reference parameters in the
EndpointReference instance, then those reference
parameters MUST appear as SOAP headers, indicating them to be
reference parameters, on all messages sent to the endpoint.
The parameter serviceEndpointInterface specifies
the service endpoint interface that is supported by the
returned proxy.
The EndpointReference instance specifies the
endpoint that will be invoked by the returned proxy.
In the implementation of this method, the JAX-WS
runtime system takes the responsibility of selecting a protocol
binding (and a port) and configuring the proxy accordingly from
the WSDL Metadata from this EndpointReference or from
annotations on the serviceEndpointInterface. For this method
to successfully return a proxy, WSDL metadata MUST be available and the
EndpointReference instance MUST contain an implementation understood
serviceName metadata.
Because this port is not created from a Service object, handlers
will not automatically be configured, and the HandlerResolver
and Executor cannot be get or set for this port. The
BindingProvider().getBinding().setHandlerChain()
method can be used to manually configure handlers for this port.
serviceEndpointInterface | Service endpoint interface | |
features | An array of WebServiceFeatures to configure on the
proxy. Supported features not in the features
parameter will have their default values. |
WebServiceException
|
|
java.lang.reflect.Proxy, WebServiceFeature
Diagram: Endpoint