com.ibm.di.fc.webservice.util
Class WebServiceCall

java.lang.Object
  extended by org.apache.axis.client.Call
      extended by com.ibm.di.fc.webservice.util.WebServiceCall
All Implemented Interfaces:
javax.xml.rpc.Call

public class WebServiceCall
extends org.apache.axis.client.Call


Field Summary
static String ENCODING_LATIN_1
           
static String ENCODING_UTF8
           
static int INITIAL_BUFFER_SIZE
           
 
Fields inherited from class org.apache.axis.client.Call
ATTACHMENT_ENCAPSULATION_FORMAT, ATTACHMENT_ENCAPSULATION_FORMAT_DIME, ATTACHMENT_ENCAPSULATION_FORMAT_MIME, ATTACHMENT_ENCAPSULATION_FORMAT_MTOM, attachmentParts, CHARACTER_SET_ENCODING, CHECK_MUST_UNDERSTAND, CONNECTION_TIMEOUT_PROPERTY, entLog, FAULT_ON_NO_RESPONSE, JAXRPC_PORTTYPE_NAME, JAXRPC_SERVICE, log, ONE_WAY, SEND_TYPE_ATTR, STREAMING_PROPERTY, TRANSPORT_NAME, TRANSPORT_PROPERTY, WSDL_PORT_NAME, WSDL_SERVICE
 
Fields inherited from interface javax.xml.rpc.Call
ENCODINGSTYLE_URI_PROPERTY, OPERATION_STYLE_PROPERTY, PASSWORD_PROPERTY, SESSION_MAINTAIN_PROPERTY, SOAPACTION_URI_PROPERTY, SOAPACTION_USE_PROPERTY, USERNAME_PROPERTY
 
Constructor Summary
WebServiceCall(org.apache.axis.client.Service aService, javax.xml.namespace.QName aPortQN, String aSoapOperation, Log aLog)
           
WebServiceCall(String url, Log aLog)
           
 
Method Summary
static String callSoap(String aWebServiceURL, String aSoapRequest, String aSoapActionURI)
           
static String callSoap(String aWebServiceURL, String aSoapRequest, String aSoapActionURI, String aBasicAuth)
           
static Vector convertComplexTypeList(String aString)
           
static String[] convertOperationParams(String aList)
           
static org.apache.axis.client.Service createService(String wsdlDoc, javax.xml.namespace.QName serviceName)
           
static WebServiceCall createWebServiceCall(String aWsdlUrl, javax.xml.namespace.QName aServiceQN, javax.xml.namespace.QName aPortQN, String aSoapOperation, Log aLog)
           
 String generateSOAP(String aTargetNamespace, String aSoapOperation, Vector aClasses, Object[] aParams, boolean aIsRequest)
           
static Element getAsDOM(String aString)
           
static String getAsString(Node aNode)
           
static String getChildNodesAsString(Node aNode)
           
static String getJavaEncoding(String aContentType)
           
 HashMap getOutParams()
           
static ResourceHash getResHash()
           
 javax.xml.namespace.QName getReturnParamQName()
           
static Vector getSoapHeaderAndBodyAsDOM(String aSoapMsg)
           
 String getSoapString(org.apache.axis.message.RPCElement body)
           
static int min(int a, int b)
           
static String objectArrayToString(Object[] aObjArray)
           
 Object parseSOAP(String aSoapMsgString, Vector aClasses, String aMsgType)
           
static String readHttpContent(InputStream aInputStream, String aContentType, int aContentLength)
           
static String readHttpContentNoContentLength(InputStream aInputStream, String aContentType)
           
 void registerClassMapping(org.apache.axis.MessageContext aMsgCtx, Class aClass)
           
 void registerCustomTypeMapping(Class javaType, javax.xml.namespace.QName xmlType, javax.xml.rpc.encoding.SerializerFactory serializerFactory, javax.xml.rpc.encoding.DeserializerFactory deserializerFactory)
           
static byte[] resizeByteArray(byte[] aByteArray, int aNewSize)
           
 
Methods inherited from class org.apache.axis.client.Call
addAttachmentPart, addFault, addHeader, addParameter, addParameter, addParameter, addParameter, addParameterAsHeader, addParameterAsHeader, addTransportPackage, clearHeaders, clearOperation, getEncodingStyle, getMaintainSession, getMessageContext, getOperation, getOperationName, getOperationStyle, getOperationUse, getOutputParams, getOutputValues, getParameterTypeByName, getParameterTypeByQName, getPassword, getPortName, getPortTypeName, getProperty, getPropertyNames, getResponseMessage, getReturnType, getService, getSOAPActionURI, getStreaming, getTargetEndpointAddress, getTimeout, getTransportForProtocol, getTypeMapping, getUsername, initialize, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invokeOneWay, isParameterAndReturnSpecRequired, isPropertySupported, registerTypeMapping, registerTypeMapping, registerTypeMapping, registerTypeMapping, removeAllParameters, removeProperty, setClientHandlers, setEncodingStyle, setMaintainSession, setOperation, setOperation, setOperation, setOperation, setOperationName, setOperationName, setOperationStyle, setOperationStyle, setOperationUse, setOperationUse, setOption, setPassword, setPortName, setPortTypeName, setProperty, setRequestMessage, setReturnClass, setReturnQName, setReturnType, setReturnType, setReturnTypeAsHeader, setReturnTypeAsHeader, setSOAPActionURI, setSOAPService, setSOAPVersion, setStreaming, setTargetEndpointAddress, setTargetEndpointAddress, setTimeout, setTransport, setTransportForProtocol, setUsername, setUseSOAPAction, useSOAPAction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENCODING_LATIN_1

public static final String ENCODING_LATIN_1
See Also:
Constant Field Values

ENCODING_UTF8

public static final String ENCODING_UTF8
See Also:
Constant Field Values

INITIAL_BUFFER_SIZE

public static final int INITIAL_BUFFER_SIZE
See Also:
Constant Field Values
Constructor Detail

WebServiceCall

public WebServiceCall(org.apache.axis.client.Service aService,
                      javax.xml.namespace.QName aPortQN,
                      String aSoapOperation,
                      Log aLog)
               throws Exception
Throws:
Exception

WebServiceCall

public WebServiceCall(String url,
                      Log aLog)
               throws MalformedURLException
Throws:
MalformedURLException
Method Detail

getResHash

public static ResourceHash getResHash()

getReturnParamQName

public javax.xml.namespace.QName getReturnParamQName()

createWebServiceCall

public static WebServiceCall createWebServiceCall(String aWsdlUrl,
                                                  javax.xml.namespace.QName aServiceQN,
                                                  javax.xml.namespace.QName aPortQN,
                                                  String aSoapOperation,
                                                  Log aLog)
                                           throws Exception
Throws:
Exception

createService

public static org.apache.axis.client.Service createService(String wsdlDoc,
                                                           javax.xml.namespace.QName serviceName)
                                                    throws Exception
Throws:
Exception

convertComplexTypeList

public static Vector convertComplexTypeList(String aString)
                                     throws ClassNotFoundException
Throws:
ClassNotFoundException

getAsDOM

public static Element getAsDOM(String aString)
                        throws Exception
Throws:
Exception

getAsString

public static String getAsString(Node aNode)
                          throws Exception
Throws:
Exception

generateSOAP

public String generateSOAP(String aTargetNamespace,
                           String aSoapOperation,
                           Vector aClasses,
                           Object[] aParams,
                           boolean aIsRequest)
                    throws Exception
Throws:
Exception

getSoapString

public String getSoapString(org.apache.axis.message.RPCElement body)
                     throws Exception
Throws:
Exception

getOutParams

public HashMap getOutParams()

registerCustomTypeMapping

public void registerCustomTypeMapping(Class javaType,
                                      javax.xml.namespace.QName xmlType,
                                      javax.xml.rpc.encoding.SerializerFactory serializerFactory,
                                      javax.xml.rpc.encoding.DeserializerFactory deserializerFactory)

parseSOAP

public Object parseSOAP(String aSoapMsgString,
                        Vector aClasses,
                        String aMsgType)
                 throws Exception
Throws:
Exception

registerClassMapping

public void registerClassMapping(org.apache.axis.MessageContext aMsgCtx,
                                 Class aClass)
                          throws Exception
Throws:
Exception

convertOperationParams

public static String[] convertOperationParams(String aList)

callSoap

public static String callSoap(String aWebServiceURL,
                              String aSoapRequest,
                              String aSoapActionURI)
                       throws Exception
Throws:
Exception

callSoap

public static String callSoap(String aWebServiceURL,
                              String aSoapRequest,
                              String aSoapActionURI,
                              String aBasicAuth)
                       throws Exception
Throws:
Exception

getSoapHeaderAndBodyAsDOM

public static Vector getSoapHeaderAndBodyAsDOM(String aSoapMsg)
                                        throws Exception
Throws:
Exception

objectArrayToString

public static String objectArrayToString(Object[] aObjArray)

getChildNodesAsString

public static String getChildNodesAsString(Node aNode)
                                    throws Exception
Throws:
Exception

readHttpContent

public static String readHttpContent(InputStream aInputStream,
                                     String aContentType,
                                     int aContentLength)
                              throws IOException
Throws:
IOException

min

public static int min(int a,
                      int b)

resizeByteArray

public static byte[] resizeByteArray(byte[] aByteArray,
                                     int aNewSize)

readHttpContentNoContentLength

public static String readHttpContentNoContentLength(InputStream aInputStream,
                                                    String aContentType)
                                             throws IOException
Throws:
IOException

getJavaEncoding

public static String getJavaEncoding(String aContentType)