Methods Summary |
---|
public abstract javax.xml.ws.Endpoint | createAndPublishEndpoint(java.lang.String address, java.lang.Object implementor)Creates and publishes an endpoint object with the specified
address and implementation object.
|
public abstract javax.xml.ws.Endpoint | createEndpoint(java.lang.String bindingId, java.lang.Object implementor)Creates an endpoint object with the provided binding and implementation
object.
|
public abstract javax.xml.ws.spi.ServiceDelegate | createServiceDelegate(java.net.URL wsdlDocumentLocation, javax.xml.namespace.QName serviceName, java.lang.Class serviceClass)Creates a service delegate object.
|
public abstract javax.xml.ws.wsaddressing.W3CEndpointReference | createW3CEndpointReference(java.lang.String address, javax.xml.namespace.QName serviceName, javax.xml.namespace.QName portName, java.util.List metadata, java.lang.String wsdlDocumentLocation, java.util.List referenceParameters)Factory method to create a 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 propeties. 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.
|
public abstract T | getPort(javax.xml.ws.EndpointReference endpointReference, java.lang.Class serviceEndpointInterface, javax.xml.ws.WebServiceFeature features)The getPort method returns a proxy. If there
are any reference parameters in the
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.
|
public static javax.xml.ws.spi.Provider | provider()Creates a new provider object.
The algorithm used to locate the provider subclass to use consists
of the following steps:
-
If a resource with the name of
META-INF/services/javax.xml.ws.spi.Provider
exists, then its first line, if present, is used as the UTF-8 encoded
name of the implementation class.
-
If the $java.home/lib/jaxws.properties file exists and it is readable by
the
java.util.Properties.load(InputStream) method and it contains
an entry whose key is javax.xml.ws.spi.Provider , then the value of
that entry is used as the name of the implementation class.
-
If a system property with the name
javax.xml.ws.spi.Provider
is defined, then its value is used as the name of the implementation class.
-
Finally, a default implementation class name is used.
try {
Object provider =
FactoryFinder.find(JAXWSPROVIDER_PROPERTY,
DEFAULT_JAXWSPROVIDER);
if (!(provider instanceof Provider)) {
Class pClass = Provider.class;
String classnameAsResource = pClass.getName().replace('.", '/") + ".class";
ClassLoader loader = pClass.getClassLoader();
if(loader == null) {
loader = ClassLoader.getSystemClassLoader();
}
URL targetTypeURL = loader.getResource(classnameAsResource);
throw new LinkageError("ClassCastException: attempting to cast" +
provider.getClass().getClassLoader().getResource(classnameAsResource) +
"to" + targetTypeURL.toString() );
}
return (Provider) provider;
} catch (WebServiceException ex) {
throw ex;
} catch (Exception ex) {
throw new WebServiceException("Unable to createEndpointReference Provider", ex);
}
|
public abstract javax.xml.ws.EndpointReference | readEndpointReference(javax.xml.transform.Source eprInfoset)read an EndpointReference from the infoset contained in
eprInfoset .
|