This class is used to build W3CEndpointReference
instances. The intended use of this clsss is for
an application component, for example a factory component,
to create an W3CEndpointReference for a
web service endpoint published by the same
Java EE application. It can also be used to create
W3CEndpointReferences for an Java SE based
endpoint by providing the address property.
When creating a W3CEndpointReference for an
endpoint that is not published by the same Java EE application,
the address property MUST be specified.
When creating a W3CEndpointReference for an endpoint
published by the same Java EE application, the address
property MAY be null but then the serviceName
and endpointName MUST specify an endpoint published by
the same Java EE application.
When the wsdlDocumentLocation is specified it MUST refer
to a valid WSDL document and the serviceName and
endpointName (if specified) MUST match a service and port
in the WSDL document.
Sets the address to the
W3CEndpointReference instance's
wsa:Address.
The address MUST be set to a non-null
value when building a W3CEndpointReference for a
web service endpoint that is not published by the same
Java EE application or when running on Java SE.
Parameters:
address - The address of the endpoint to be targeted
by the returned W3CEndpointReference.
Returns:
A W3CEndpointReferenceBuilder instance with
the address set to the wsa:Address.
Sets the serviceName of the endpoint to be targeted
by the returned W3CEndpointReference.
Parameters:
serviceName - The service name of the endpoint to be targeted
by the returned W3CEndpointReference. This property
may also be used with the endpointName (portName)
property to lookup the address of a web service
endpoint that is published by the same Java EE application.
Returns:
A W3CEndpointReferenceBuilder instance with
the serviceName property set.
Sets the endpointName of the endpoint to
be targeted by the returned W3CEndpointRefernce.
This method can only
be called after the serviceName method has been called.
Parameters:
endpointName - The name of the endpoint to be targeted
by the returned W3CEndpointReference. The
endpointName (portName) property may also be
used with the serviceName property to lookup
the address of a web service
endpoint published by the same Java EE application.
Returns:
A W3CEndpointReferenceBuilder instance with
the endpointName property set.
Builds a W3CEndpointReference from the accumulated
properties set on this W3CEndpointReferenceBuilder
instance.
This method can be used to create a W3CEndpointReference
for any endpoint by specifying the address property along
with any other desired properties. This method
can also be used to create a W3CEndpointReference for
an endpoint that is published by the same Java EE application.
This method can automatically determine the address of
an endpoint published by the same Java EE application that is identified by the
serviceName and
endpointName properties. If the address is
null and the serviceName and
endpointName
do not identify an endpoint published by the same Java EE application, a
java.lang.IllegalStateException MUST be thrown.
Returns:
W3CEndpointReference from the accumulated
properties set on this W3CEndpointReferenceBuilder
instance. This method never returns null.
Submit a bug or feature For further API reference and developer documentation, see Java SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.