Package com.ibm.di.fc.webservice
Class AxisSoapToJava
- java.lang.Object
-
- com.ibm.di.fc.Function
-
- com.ibm.di.fc.webservice.AxisSoapToJava
-
- All Implemented Interfaces:
FunctionInterface
,VersionInfoInterface
public class AxisSoapToJava extends Function
The Axis Soap-to-Java Function Component (FC) is part of the TDI Web Services suite.This component can be used both on the web service client and on the web service server side. This FC uses Axis' mechanism for parsing SOAP response (when on the client) or SOAP request (when on the server) to Java objects - as a complementary component to the AxisJavaToSoap FC. It is given a SOAP response/request message and returns the parsed Java objects either as standalone Java object(s) or capsulated in an Entry object.This component supports both RPC and Document style.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
INPUT_XML_DOM
The name of the returnXMLType attribute when DOMElement is chosenstatic java.lang.String
INPUT_XML_STRING
The name of the returnXMLType attribute when String is chosenstatic java.lang.String
MODE_REQUEST
The value of the request modestatic java.lang.String
MODE_RESPONSE
The value of the response attributestatic java.lang.String
PARAM_COMPLEX_TYPES
The list of fully qualified Java classes generated by WSDL2Java from the WSDL filestatic java.lang.String
PARAM_INPUT_TYPE
specifies the input typestatic java.lang.String
PARAM_MODE
specifies whether this Function Component handles a SOAP request or a SOAP responsestatic java.lang.String
PARAM_SOAP_OPERATION
The name of the SOAP operation as described in the WSDL filestatic java.lang.String
PARAM_WSDL_URL
The WSDL URL parameter
-
Constructor Summary
Constructors Constructor Description AxisSoapToJava()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getVersion()
Version information.void
initialize(java.lang.Object obj)
Initializes the function component by using the parameters in the Config Tab.java.lang.Object
perform(java.lang.Object obj)
Parses a SOAP message and turns it into a Java Object If this FC is passed a SOAP Fault message to parse, this FC returns a Java object of type org.apache.axis.AxisFault.void
registerTypeMapping(java.lang.Class javaType, javax.xml.namespace.QName xmlType, org.apache.axis.encoding.SerializerFactory serializerFactory, org.apache.axis.encoding.DeserializerFactory deserializerFactory)
This method is analogous to the 'registerTypeMapping' method in org.apache.axis.client.Call.-
Methods inherited from class com.ibm.di.fc.Function
debug, getConfiguration, getContext, getDebug, getLog, getParam, getRSInterface, getUI, initialize, logmsg, querySchema, setConfiguration, setContext, setDebug, setLog, setParam, setRSInterface, terminate, updateSchema, verifyInitialized
-
-
-
-
Field Detail
-
PARAM_WSDL_URL
public static final java.lang.String PARAM_WSDL_URL
The WSDL URL parameter- See Also:
- Constant Field Values
-
PARAM_SOAP_OPERATION
public static final java.lang.String PARAM_SOAP_OPERATION
The name of the SOAP operation as described in the WSDL file- See Also:
- Constant Field Values
-
PARAM_INPUT_TYPE
public static final java.lang.String PARAM_INPUT_TYPE
specifies the input type- See Also:
- Constant Field Values
-
PARAM_COMPLEX_TYPES
public static final java.lang.String PARAM_COMPLEX_TYPES
The list of fully qualified Java classes generated by WSDL2Java from the WSDL file- See Also:
- Constant Field Values
-
PARAM_MODE
public static final java.lang.String PARAM_MODE
specifies whether this Function Component handles a SOAP request or a SOAP response- See Also:
- Constant Field Values
-
MODE_REQUEST
public static final java.lang.String MODE_REQUEST
The value of the request mode- See Also:
- Constant Field Values
-
MODE_RESPONSE
public static final java.lang.String MODE_RESPONSE
The value of the response attribute- See Also:
- Constant Field Values
-
INPUT_XML_STRING
public static final java.lang.String INPUT_XML_STRING
The name of the returnXMLType attribute when String is chosen- See Also:
- Constant Field Values
-
INPUT_XML_DOM
public static final java.lang.String INPUT_XML_DOM
The name of the returnXMLType attribute when DOMElement is chosen- See Also:
- Constant Field Values
-
-
Method Detail
-
initialize
public void initialize(java.lang.Object obj) throws java.lang.Exception
Initializes the function component by using the parameters in the Config Tab.- Specified by:
initialize
in interfaceFunctionInterface
- Overrides:
initialize
in classFunction
- Parameters:
obj
- not used in this method- Throws:
java.lang.Exception
-
perform
public java.lang.Object perform(java.lang.Object obj) throws java.lang.Exception
Parses a SOAP message and turns it into a Java Object If this FC is passed a SOAP Fault message to parse, this FC returns a Java object of type org.apache.axis.AxisFault. In case this FC returns an org.apache.axis.AxisFault object, the FC stores this object in the "soapFault" Attribute if an Entry is passed to the FC; and if a java.lang.Object was passed then this FC returns the org.apache.axis.AxisFault object. If the value of the "Input the SOAP message as" FC parameter is String then the SOAP message to parse is read from the "xmlString" Attribute as a java.lang.String, provided an Entry is passed to the FC. If the value of the "Input the SOAP message as" FC parameter is DOMElement then the SOAP message to parse is read from the "xmlDOMElement" Attribute as an org.w3c.dom.Element object, provided an Entry is passed to the FC. If a Java Object is passed to this FC, then the SOAP message to parse is assumed to be the value of the passed Java Object as either a java.lang.String object (when the value of the "Input the SOAP message as" FC parameter is String) or as an org.w3c.dom.Element object (when the value of the "Input the SOAP message as" FC parameter is DOMElement).- Parameters:
obj
-- Returns:
- a Java object
- Throws:
java.lang.Exception
-
registerTypeMapping
public void registerTypeMapping(java.lang.Class javaType, javax.xml.namespace.QName xmlType, org.apache.axis.encoding.SerializerFactory serializerFactory, org.apache.axis.encoding.DeserializerFactory deserializerFactory)
This method is analogous to the 'registerTypeMapping' method in org.apache.axis.client.Call. It can be used for configuring serialization/deserialization of Java types, for which the default serializer/deserializer (org.apache.axis.encoding.ser.BeanSerializer/ org.apache.axis.encoding.ser.BeanDeserializer) is not suitable.- Parameters:
javaType
- java type to handlexmlType
- XML mappingserializerFactory
- a factory of the serializersdeserializerFactory
- a factory of deserializers
-
getVersion
public java.lang.String getVersion()
Version information.- Returns:
- version information
-
-