|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.axis.client.Service
Axis' JAXRPC Dynamic Invoation Interface implementation of the Service interface. The Service class should be used a the starting point for access SOAP Web Services. Typically, a Service will be created with a WSDL document and along with a serviceName you can then ask for a Call object that will allow you to invoke a Web Service.
Constructor Summary | |
Service()
Constructs a new Service object - this assumes the caller will set the appropriate fields by hand rather than getting them from the WSDL. |
|
Service(ConfigurationProvider configProvider)
Constructs a new Service object as above, but also passing in the ConfigurationProvider which should be used to set up the AxisClient. |
|
Service(java.io.InputStream wsdlInputStream,
QName serviceName)
Constructs a new Service object for the service in the WSDL document in the wsdlInputStream and serviceName parameters. |
|
Service(java.lang.String wsdlLocation,
QName serviceName)
Constructs a new Service object for the service in the WSDL document pointed to by the wsdlLocation and serviceName parameters. |
|
Service(java.net.URL wsdlDoc,
QName serviceName)
Constructs a new Service object for the service in the WSDL document pointed to by the wsdlDoc URL and serviceName parameters. |
Method Summary | |
Call |
createCall()
Creates a new Call object with no prefilled data. |
Call |
createCall(QName portName)
Creates a new Call object - will prefill as much info from the WSDL as it can. |
Call |
createCall(QName portName,
java.lang.String operationName)
Creates a new Call object - will prefill as much info from the WSDL as it can. |
protected AxisClient |
getAxisClient()
|
AxisEngine |
getEngine()
Returns the current AxisEngine used by this Service and all of the Call objects created from this Service object. |
java.rmi.Remote |
getPort(QName portName,
java.lang.Class proxyInterface)
Not implemented yet |
java.util.Iterator |
getPorts()
Returns an Iterator that can be used to get all of the ports specified in the WSDL file associated with this Service (if there is a WSDL file). |
javax.naming.Reference |
getReference()
Not implemented yet |
QName |
getServiceName()
Returns the qualified name of the service (if one is set). |
TypeMappingRegistry |
getTypeMappingRegistry()
Returns the current TypeMappingRegistry or null. |
java.net.URL |
getWSDLDocumentLocation()
Returns the location of the WSDL document used to prefill the data (if one was used at all). |
void |
setConfigProvider(ConfigurationProvider configProvider)
Set this Service's configuration provider. |
void |
setEngine(AxisEngine engine)
Sets this Service's AxisEngine. |
void |
setTypeMappingRegistry(TypeMappingRegistry registry)
Defines the current Type Mappig Registry. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Service() throws JAXRPCException
JAXRPCException
- If there's an errorpublic Service(ConfigurationProvider configProvider) throws JAXRPCException
public Service(java.net.URL wsdlDoc, QName serviceName) throws JAXRPCException
wsdlDoc
- URL of the WSDL documentserviceName
- Qualified name of the desired serviceJAXRPCExceptionIif
- there's an error finding or parsing the WSDLpublic Service(java.lang.String wsdlLocation, QName serviceName) throws JAXRPCException
wsdlLocation
- Location of the WSDL relative to the current dirserviceName
- Qualified name of the desired serviceJAXRPCException
- If there's an error finding or parsing the WSDLpublic Service(java.io.InputStream wsdlInputStream, QName serviceName) throws JAXRPCException
wsdlInputStream
- InputStream containing the WSDLserviceName
- Qualified name of the desired serviceJAXRPCException
- If there's an error finding or parsing the WSDLMethod Detail |
protected AxisClient getAxisClient() throws JAXRPCException
public java.rmi.Remote getPort(QName portName, java.lang.Class proxyInterface) throws JAXRPCException
getPort
in interface Service
portName
- ...proxyInterface
- ...JAXRPCException
- If there's an errorpublic Call createCall(QName portName) throws JAXRPCException
createCall
in interface Service
portName
- PortName in the WSDL doc to search forJAXRPCException
- If there's an errorpublic Call createCall(QName portName, java.lang.String operationName) throws JAXRPCException
createCall
in interface Service
portName
- PortName in the WSDL doc to search foroperationName
- Operation(method) that's going to be invokedJAXRPCException
- If there's an errorpublic Call createCall() throws JAXRPCException
createCall
in interface Service
JAXRPCException
- If there's an errorpublic java.net.URL getWSDLDocumentLocation()
getWSDLDocumentLocation
in interface Service
public QName getServiceName()
getServiceName
in interface Service
public java.util.Iterator getPorts()
getPorts
in interface Service
public void setTypeMappingRegistry(TypeMappingRegistry registry) throws JAXRPCException
setTypeMappingRegistry
in interface Service
registry
- The TypeMappingRegistryJAXRPCException
- if there's an errorpublic TypeMappingRegistry getTypeMappingRegistry()
getTypeMappingRegistry
in interface Service
public javax.naming.Reference getReference()
getReference
in interface javax.naming.Referenceable
public void setEngine(AxisEngine engine)
engine
- Sets this Service's AxisEngine to the passed in onepublic AxisEngine getEngine()
public void setConfigProvider(ConfigurationProvider configProvider)
configProvider
- the ConfigurationProvider we want to use.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |