Package com.ibm.di.fc.webservice
Class AxisJavaToSoap
- java.lang.Object
-
- com.ibm.di.fc.Function
-
- com.ibm.di.fc.webservice.AxisJavaToSoap
-
- All Implemented Interfaces:
FunctionInterface,VersionInfoInterface
public class AxisJavaToSoap extends Function
The Axis Java-to-Soap 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 component receives an Entry or a Java object and produces the SOAP request (when on the client) or response (when on the server) message. It will provide the whole SOAP message, as well as separately the SOAP Header and the SOAP Body to facilitate processing and customization.The component supports both RPC and Document style.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringMODE_REQUESTThe value of the request modestatic java.lang.StringMODE_RESPONSEThe value of the response attributestatic java.lang.StringPARAM_COMPLEX_TYPESThe list of fully qualified Java classes generated by WSDL2Java from the WSDL filestatic java.lang.StringPARAM_MODEspecifies whether this Function Component handles a SOAP request or a SOAP responsestatic java.lang.StringPARAM_OPERATION_PARAM_LISTThe list of ordered SOAP operation parameter namesstatic java.lang.StringPARAM_RETURN_XML_TYPEThe XML return type - DOMElement or Stringstatic java.lang.StringPARAM_SOAP_OPERATIONThe name of the SOAP operation as described in the WSDL filestatic java.lang.StringPARAM_USE_MULTI_REFSIf checked the generated SOAP message will use multi-refs.static java.lang.StringPARAM_WSDL_URLThe WSDL URL parameterstatic java.lang.StringRETURN_XML_DOMThe name of the returnXMLType attribute when DOMElement is chosenstatic java.lang.StringRETURN_XML_STRINGThe name of the returnXMLType attribute when String is chosen
-
Constructor Summary
Constructors Constructor Description AxisJavaToSoap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetVersion()Version information.voidinitialize(java.lang.Object obj)Initializes the function component by using the parameters in the Config Tab.java.lang.Objectperform(java.lang.Object obj)Generates a SOAP message from the given Java code.voidregisterTypeMapping(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_RETURN_XML_TYPE
public static final java.lang.String PARAM_RETURN_XML_TYPE
The XML return type - DOMElement or String- 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
-
PARAM_OPERATION_PARAM_LIST
public static final java.lang.String PARAM_OPERATION_PARAM_LIST
The list of ordered SOAP operation parameter names- See Also:
- Constant Field Values
-
PARAM_USE_MULTI_REFS
public static final java.lang.String PARAM_USE_MULTI_REFS
If checked the generated SOAP message will use multi-refs.- 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
-
RETURN_XML_STRING
public static final java.lang.String RETURN_XML_STRING
The name of the returnXMLType attribute when String is chosen- See Also:
- Constant Field Values
-
RETURN_XML_DOM
public static final java.lang.String RETURN_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.ExceptionInitializes the function component by using the parameters in the Config Tab.- Specified by:
initializein interfaceFunctionInterface- Overrides:
initializein classFunction- Parameters:
obj- not used in this method- Throws:
java.lang.Exception- An exception is thrown if the initialization fails.
-
perform
public java.lang.Object perform(java.lang.Object obj) throws java.lang.ExceptionGenerates a SOAP message from the given Java code. If this FC is passed (a) an Entry with a "soapFault" Attribute, whose value is an object of type org.apache.axis.AxisFault, or (b) a Java object of type org.apache.axis.AxisFault, then the FC generates a SOAP Fault message containing the information stored in the passed AxisFault object. If the value of the Return XML as FC parameter is String then the SOAP response message is stored in the "xmlString" Attribute, if an Entry was passed to the FC. However, if the value of the "Return XML as" FC parameter is DOMElement then the generated SOAP message is stored in the "xmlDOMElement" Attribute, if an Entry was passed to the FC. If a Java Object array (Object[]) was passed to this FC, then the return value of the FC is either a java.lang.String object (when the value of the "Return XML as" FC parameter is String) or an org.w3c.dom.Element object (when the value 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
-
-