|
WebObjects 5.4.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.webobjects.webservices.client.WOWebService
public class WOWebService
A WOWebService represents a single SOAP HTTP service as defined in a WSDL document. It can be used to introspect the operations implemented on the Web service, or to create a call which can be used to invoke a given operation. A WOWebService is capable of maintaing session state through multiple invocations of operations on the Web service.
Service
,
Call
Nested Class Summary | |
---|---|
static class |
WOWebService.SessionInfo
SessionInfo stores all data required to connect to an existing Web service sessions. |
Constructor Summary | |
---|---|
WOWebService(QName aQName,
URL aURL)
Create and initialize a new instance of WOWebService. |
Method Summary | |
---|---|
org.apache.axis.client.Service |
axisService()
Returns the underlying Axis service used to make Web service invocations. |
org.apache.axis.client.Call |
createCallForOperation(String opName)
Creates an returns an Axis call object for the operation opName . |
org.apache.axis.EngineConfiguration |
engineConfiguration()
Return the EngineConfiguration used by the underlying Axis service. |
boolean |
isOperationDocumentStyle(String operationName)
Returns true if the operation name is document style, false otherwise. |
boolean |
isOperationRPCStyle(String operationName)
Returns true if the operation name is RPC style, false otherwise. |
String |
name()
Returns the local part of the QName of the service. |
WOClientOperation |
operationNamed(String operationName)
Return the operation named name . |
NSDictionary |
operationsDictionary()
Return an NSDictionary containing name to WOClientOperation mappings for all operations published in this service. |
QName |
qName()
Returns the QName of the service. |
void |
registerFactoriesForClassWithQName(org.apache.axis.encoding.SerializerFactory sFactory,
org.apache.axis.encoding.DeserializerFactory dFactory,
Class aClass,
QName aQName)
Register aSerializerFactory for serializing objects of class aClass and aDeserializerFactory for deserializing DOM elements with QName aQName . |
WOWebService.SessionInfo |
sessionInfo()
Return an opaque SessionInfo object which can be used to transfer session information between instances of WOWebService. |
void |
setEngineConfiguration(org.apache.axis.EngineConfiguration aConfig)
Set the EngineConfiguration to used by the underlying Axis service. |
void |
setSecurityDelegate(Object aDelegate)
|
void |
setSessionInfo(WOWebService.SessionInfo aSessionInfo)
Set the session information for the service to the values contained in aSessionInfo . |
String |
toString()
|
Class |
typeForQName(QName aQname)
Return the class to which DOM elements with name aQName will be deserialized. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public WOWebService(QName aQName, URL aURL)
aQName
- the QName of the serviceaURL
- the URL at which the WSDL for this service can be foundMethod Detail |
---|
public QName qName()
public String name()
public NSDictionary operationsDictionary()
public WOClientOperation operationNamed(String operationName)
name
.
name
- the name of the operation being requested
null
public boolean isOperationRPCStyle(String operationName)
true
if the operation name
is RPC style, false
otherwise.
name
- the name of the operation being checked
true
if name
is a SOAP RPC style operationpublic boolean isOperationDocumentStyle(String operationName)
true
if the operation name
is document style, false
otherwise.
name
- the name of the operation being checked
true
if name
is a document style operationpublic void registerFactoriesForClassWithQName(org.apache.axis.encoding.SerializerFactory sFactory, org.apache.axis.encoding.DeserializerFactory dFactory, Class aClass, QName aQName)
aSerializerFactory
for serializing objects of class aClass
and aDeserializerFactory
for deserializing DOM elements with QName aQName
. Objects serialized by aSerializerFactory
will have a QName of
aQName
. If a aSerializerFactory
is null
, only aDeserializerFactory
will be registered, and vice versa.
aSerializerFactory
- factory for creating serializers for Class aClass
aDeserializerFactory
- factory for creating deserializers for elements with QName aQName
aClass
- Class which aSerializerFactory
should be used to serializeaQName
- QName defining elements that aDeserializerFactory
should be used to deserializepublic Class typeForQName(QName aQname)
aQName
will be deserialized. Will return null
if there is no deserializer registered for aQName
aQName
- a QName
aQName
will deserialize, or null
public org.apache.axis.client.Service axisService()
Service
public org.apache.axis.client.Call createCallForOperation(String opName) throws javax.xml.rpc.ServiceException
opName
.
opName
- String name of operation to be invoked
javax.xml.rpc.ServiceException
Call
public void setSecurityDelegate(Object aDelegate)
public org.apache.axis.EngineConfiguration engineConfiguration()
public void setEngineConfiguration(org.apache.axis.EngineConfiguration aConfig)
Note: If you reset the service's engine configuration, all existing session information for the service will be lost.
aConfig
- an org.apache.axis.EngineConfigurationpublic String toString()
toString
in class Object
public WOWebService.SessionInfo sessionInfo()
public void setSessionInfo(WOWebService.SessionInfo aSessionInfo)
aSessionInfo
.
Note: If after setting session information, you reset the service's engine configuration, all session information will be lost.
aSessionInfo
- object containing session informationWOWebService.SessionInfo
|
Last updated June 2008 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |