|
WebObjects 5.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.webobjects.webservices.client.WOWebServiceClient
A WOWebServiceClient provides a mechanism for introspecting and invoking Web service operations implemented using SOAP over HTTP. An instance of WOWebServiceClient maps roughly to the contents of a WSDL document: it will manage as many WOWebServices as the WSDL contains SOAP services.
Constructor Summary | |
WOWebServiceClient(URL aURL)
Create and initialize an instance of WOWebServiceClient from aURL . |
Method Summary | |
org.apache.axis.EngineConfiguration |
engineConfigurationForServiceNamed(String serviceName)
Return the EngineConfiguration being used by the service named serviceName . |
Object |
invoke(String serviceName,
String operationName,
Object[] parameters)
Invoke the operation operationName on the web service
serviceName with parameters parameters . |
Class |
objectTypeForQName(Object aQNameObject)
Return the object class to which DOM elements with name aQNameObject will be deserialized. |
NSDictionary |
operationsDictionaryForService(String serviceName)
Returns an NSDictionary containing a mapping of operation name to WOClientOperation instance for for all operations defined on the Web service named serviceName . |
void |
registerFactoriesForClassWithQName(org.apache.axis.encoding.SerializerFactory sFactory,
org.apache.axis.encoding.DeserializerFactory dFactory,
Class aClass,
javax.xml.namespace.QName aQname)
Register aSerializerFactory for serializing objects of class aClass
and aDeserializerFactory for deserializing DOM elements with QName aQName . |
NSArray |
serviceNames()
Returns the names of all WOWebServices controlled by this client. |
NSMutableDictionary |
servicesDictionary()
Returns an NSMutableDictionary containing a mapping of service name to WOWebServices. |
WOWebService.SessionInfo |
sessionInfoForServiceNamed(String serviceName)
Return an opaque SessionInfo object which can be used to transfer session information between instances of WOWebService. |
void |
setEngineConfigurationForServiceNamed(org.apache.axis.EngineConfiguration engineConfig,
String serviceName)
Set the EngineConfiguration to used by the underlying Axis service object used by the service named serviceName . |
void |
setSecurityDelegateForServiceNamed(Object aDelegate,
String serviceName)
Register aDelegate as the security delegate for the service named serviceName . |
void |
setSessionInfoForServiceNamed(WOWebService.SessionInfo info,
String serviceName)
Sets the session information for the service named serviceName to the values
in info . |
String |
toString()
|
Class |
typeForQName(Object aQnameObject)
Return the class to which DOM elements with name aQnameObject will be deserialized. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public WOWebServiceClient(URL aURL)
aURL
. aURL
must be a valid URL pointing to a WSDL document describing a Web service.aURL
- URL referring to a WSDL documentMethod Detail |
public org.apache.axis.EngineConfiguration engineConfigurationForServiceNamed(String serviceName)
serviceName
. Will
return null
if there is no service named serviceName
, or throw an
IllegalArgumentException if serviceName
is null
.serviceName
- the name of the service whose engine configuration is being requestedpublic Object invoke(String serviceName, String operationName, Object[] parameters)
operationName
on the web service
serviceName
with parameters parameters
.
If operationName
is a SOAP-RPC call, parameters
should be
a language array of the parameters expected by the remote method, in the order
in which they are to be passed to the method. If operationName
is
a SOAP document style operation, parameters
should contain the
Element
objects which will form the SOAP body. parameters
may be null
.This method may return either an object, or a language array of objects.
serviceName
- the name of the service to be calledoperationName
- the name of the operation to be invokedparameters
- language array of parameters to be used while invoking operationName
public Class objectTypeForQName(Object aQNameObject)
aQNameObject
will be deserialized.
Will return null
if there is no deserializer registered for aQNameObject
. This
method always returns an Object class type, not a primitive class.aQNameObject
- a QNameaQNameObject
will deserialize, or null
typeForQName(java.lang.Object)
public NSDictionary operationsDictionaryForService(String serviceName)
serviceName
.serviceName
- String name of service being queriedpublic void registerFactoriesForClassWithQName(org.apache.axis.encoding.SerializerFactory sFactory, org.apache.axis.encoding.DeserializerFactory dFactory, Class aClass, javax.xml.namespace.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 NSArray serviceNames()
public NSMutableDictionary servicesDictionary()
public WOWebService.SessionInfo sessionInfoForServiceNamed(String serviceName)
null
if there is no service named serviceName
, or
throw an IllegalArgumentException if serviceName
is null
.serviceName
- the name of the service whose SessionInfo should be returnedsetSessionInfoForServiceNamed(com.webobjects.webservices.client.WOWebService.SessionInfo, java.lang.String)
,
WOWebService.sessionInfo()
,
WOWebService.setSessionInfo(com.webobjects.webservices.client.WOWebService.SessionInfo)
public void setEngineConfigurationForServiceNamed(org.apache.axis.EngineConfiguration engineConfig, String serviceName)
serviceName
.
If the service has already been created, the existing instance will be freed.
Will throw an IllegalArgumentException if either engineConfig
or serviceName
is null
.aConfig
- an org.apache.axis.EngineConfigurationserviceName
- the name of the service whose engine configuration is being setpublic void setSecurityDelegateForServiceNamed(Object aDelegate, String serviceName)
aDelegate
as the security delegate for the service named serviceName
. Will do nothing
if there is no service named serviceName
, or throw if serviceName
is null
.aDelegate
- any object implementing some subset of the WOSecurityDelegate interfaceserviceName
- the name of the service whose delegate is being setWOSecurityDelegate
public void setSessionInfoForServiceNamed(WOWebService.SessionInfo info, String serviceName)
serviceName
to the values
in info
. Will do nothing if there is no service named serviceName
.
Any existing session information in the service will be overwritten by the values in info
.info
- the SessionInfo object from which values should be takenserviceName
- the name of the servicesessionInfoForServiceNamed(java.lang.String)
,
WOWebService.sessionInfo()
,
WOWebService.setSessionInfo(com.webobjects.webservices.client.WOWebService.SessionInfo)
public String toString()
toString
in class Object
public Class typeForQName(Object aQnameObject)
aQnameObject
will be deserialized.
Will return null
if there is no deserializer registered for aQnameObject
.aQnameObject
- a QNameaQnameObject
will deserialize, or null
objectTypeForQName(java.lang.Object)
|
Last updated Fri Feb 21 13:15:00 PST 2003. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |