public class JaxWsProviderWrapper extends Provider
Constructor and Description |
---|
JaxWsProviderWrapper() |
Modifier and Type | Method and Description |
---|---|
static void |
afterCreate() |
static void |
beforeCreate(java.util.List<PortRefMetaData> portRefMetaDatas) |
Endpoint |
createAndPublishEndpoint(java.lang.String address,
java.lang.Object implementor)
Creates and publishes an endpoint object with the specified
address and implementation object.
|
Endpoint |
createEndpoint(java.lang.String bindingId,
java.lang.Object implementor)
Creates an endpoint object with the provided binding and implementation
object.
|
ServiceDelegate |
createServiceDelegate(java.net.URL wsdlDocumentLocation,
javax.xml.namespace.QName serviceName,
java.lang.Class serviceClass)
Creates a service delegate object.
|
W3CEndpointReference |
createW3CEndpointReference(java.lang.String address,
javax.xml.namespace.QName serviceName,
javax.xml.namespace.QName portName,
java.util.List<org.w3c.dom.Element> metadata,
java.lang.String wsdlDocumentLocation,
java.util.List<org.w3c.dom.Element> referenceParameters)
Factory method to create a
W3CEndpointReference . |
Provider |
getDelegate() |
<T> T |
getPort(EndpointReference endpointReference,
java.lang.Class<T> serviceEndpointInterface,
WebServiceFeature... features)
The getPort method returns a proxy.
|
EndpointReference |
readEndpointReference(javax.xml.transform.Source source)
read an EndpointReference from the infoset contained in
eprInfoset . |
createAndPublishEndpoint, createEndpoint, createEndpoint, createServiceDelegate, createW3CEndpointReference, provider
public static void beforeCreate(java.util.List<PortRefMetaData> portRefMetaDatas)
public static void afterCreate()
public Provider getDelegate()
public ServiceDelegate createServiceDelegate(java.net.URL wsdlDocumentLocation, javax.xml.namespace.QName serviceName, java.lang.Class serviceClass)
Provider
createServiceDelegate
in class Provider
wsdlDocumentLocation
- A URL pointing to the WSDL document
for the service, or null
if there isn't one.serviceName
- The qualified name of the service.serviceClass
- The service class, which MUST be either
javax.xml.ws.Service
or a subclass thereof.public Endpoint createEndpoint(java.lang.String bindingId, java.lang.Object implementor)
Provider
createEndpoint
in class Provider
bindingId
- A URI specifying the desired binding (e.g. SOAP/HTTP)implementor
- A service implementation object to which
incoming requests will be dispatched. The corresponding
class MUST be annotated with all the necessary Web service
annotations.public Endpoint createAndPublishEndpoint(java.lang.String address, java.lang.Object implementor)
Provider
createAndPublishEndpoint
in class Provider
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
- A service implementation object to which
incoming requests will be dispatched. The corresponding
class MUST be annotated with all the necessary Web service
annotations.public W3CEndpointReference createW3CEndpointReference(java.lang.String address, javax.xml.namespace.QName serviceName, javax.xml.namespace.QName portName, java.util.List<org.w3c.dom.Element> metadata, java.lang.String wsdlDocumentLocation, java.util.List<org.w3c.dom.Element> referenceParameters)
Provider
W3CEndpointReference
.
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.
To do so the address
property can be provided or this
method can automatically determine the address
of
an endpoint that is published by the same Java EE application and is
identified by the serviceName
and
portName
properties. If the address
is
null
and the serviceName
and
portName
do not identify an endpoint published by the
same Java EE application, a
javax.lang.IllegalStateException
MUST be thrown.
createW3CEndpointReference
in class Provider
address
- Specifies the address of the target endpointserviceName
- Qualified name of the service in the WSDL.portName
- Qualified name of the endpoint in the WSDL.metadata
- A list of elements that should be added to the
W3CEndpointReference
instances wsa:metadata
element.wsdlDocumentLocation
- URL for the WSDL document location for
the service.referenceParameters
- Reference parameters to be associated
with the returned EndpointReference
instance.W3CEndpointReference
created from
serviceName
, portName
,
metadata
, wsdlDocumentLocation
and referenceParameters
. This method
never returns null
.public EndpointReference readEndpointReference(javax.xml.transform.Source source)
Provider
eprInfoset
.readEndpointReference
in class Provider
source
- infoset for EndpointReferenceEndpointReference
unmarshalled from
eprInfoset
. This method never returns null
.public <T> T getPort(EndpointReference endpointReference, java.lang.Class<T> serviceEndpointInterface, WebServiceFeature... features)
Provider
endpointReference
, 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 parameter endpointReference
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 of the
serviceEndpointInterface
and the EndpointReference
.
For this method
to successfully return a proxy, WSDL metadata MUST be available and the
endpointReference
MUST contain an implementation understood
serviceName
metadata.getPort
in class Provider
T
- Service endpoint interfaceendpointReference
- the EndpointReference that will
be invoked by the returned proxy.serviceEndpointInterface
- Service endpoint interfacefeatures
- A list of WebServiceFeatures to configure on the
proxy. Supported features not in the features
parameter will have their default values.WebServiceFeature