This class is immutable as the typical web service developer
need not be concerned with its contents. The web service
developer should use this class strictly as a mechanism to
reference a remote web service endpoint. See the Service APIs
that clients can use to that utilize an EndpointReference.
See the javax.xml.ws.Endpoint, and
javax.xml.ws.BindingProvider APIs on how
EndpointReferences can be created for published
endpoints.
Concrete implementations of this class will represent
an EndpointReference for a particular version of Addressing.
For example the W3CEndpointReference is for use
with W3C Web Services Addressing 1.0 - Core Recommendation.
If JAX-WS implementors need to support different versions
of addressing, they should write their own
EndpointReference subclass for that version.
This will allow a JAX-WS implementation to create
a vendor specific EndpointReferences that the
vendor can use to flag a different version of
addressing.
Web service developers that wish to pass or return
EndpointReference in Java methods in an
SEI should use
concrete instances of an EndpointReference such
as the W3CEndpointReference. This way the
schema mapped from the SEI will be more descriptive of the
type of endpoint reference being passed.
JAX-WS implementors are expected to extract the XML infoset
from an EndpointReferece using the
EndpointReference#writeTo
method.
JAXB will bind this class to xs:anyType. If a better binding
is desired, web services developers should use a concrete
subclass such as W3CEndpointReference.
W3CEndpointReference, Service
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public < Service endpoint interface T> T | Returns: Object Proxy instance that supports the specified service endpoint interfaceService endpoint interface serviceEndpointInterface, WebServiceFeature... An array of features)WebServiceFeatures to configure on the
proxy. Supported features not in the features
parameter will have their default values.The |
| public static EndpointReference | |
| public String | Returns: a string representation of the objectOverrides java. |
| public abstract void |
| EndpointReference | back to summary |
|---|---|
| protected EndpointReference() Default constructor. | |
| getPort | back to summary |
|---|---|
| public <T> T getPort(Class<T> serviceEndpointInterface, WebServiceFeature... features) The
Because this port is not created from a
| |
| readFrom | back to summary |
|---|---|
| public static EndpointReference readFrom(Source eprInfoset) Factory method to read an EndpointReference from the infoset contained in
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Displays EPR infoset for debugging convenience. | |
| writeTo | back to summary |
|---|---|
| public abstract void writeTo(Result result) write this
| |