|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axis.client.Call
com.ibm.di.fc.webservice.util.WebServiceCall
public class WebServiceCall
This class defines APIs that can be accessed over network.
Field Summary | |
---|---|
static java.lang.String |
ENCODING_LATIN_1
standard character encoding of the Latin alphabet |
static java.lang.String |
ENCODING_UTF8
variable-length character encoding for Unicode |
static int |
INITIAL_BUFFER_SIZE
constant to set the default 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,
java.lang.String aSoapOperation,
Log aLog)
Class constructor |
|
WebServiceCall(java.lang.String url,
Log aLog)
Class constructor |
Method Summary | |
---|---|
static java.lang.String |
callSoap(java.lang.String aWebServiceURL,
java.lang.String aSoapRequest,
java.lang.String aSoapActionURI)
This method gives the chance to invoke callSOAP method without providing basic authentication |
static java.lang.String |
callSoap(java.lang.String aWebServiceURL,
java.lang.String aSoapRequest,
java.lang.String aSoapActionURI,
java.lang.String aBasicAuth)
This method establishes request/response connection http connection to the provided url |
static java.util.Vector |
convertComplexTypeList(java.lang.String aString)
Returns Vector, which contains the type information for the tokens of the calling argument |
static java.lang.String[] |
convertOperationParams(java.lang.String aList)
The method splits the operations from one String into an array of Strings |
static org.apache.axis.client.Service |
createService(java.lang.String wsdlDoc,
javax.xml.namespace.QName serviceName)
Creates new Service object. |
static WebServiceCall |
createWebServiceCall(java.lang.String aWsdlUrl,
javax.xml.namespace.QName aServiceQN,
javax.xml.namespace.QName aPortQN,
java.lang.String aSoapOperation,
Log aLog)
Creates new WebServiceCall object |
java.lang.String |
generateSOAP(java.util.Vector aClasses,
java.lang.Object[] aParams,
boolean aIsRequest)
Creates the SOAP protocol for exchanging XML-messages |
static org.w3c.dom.Element |
getAsDOM(java.lang.String aString)
Converts the input argument into Element object |
static java.lang.String |
getAsString(org.w3c.dom.Node aNode)
Converts the input Node element into String |
static java.lang.String |
getChildNodesAsString(org.w3c.dom.Node aNode)
This method returns String , holding the child elements of the input Node . |
static java.lang.String |
getJavaEncoding(java.lang.String aContentType)
This method returns the encoding type |
java.util.HashMap |
getOutParams()
Retrieves out parameters. |
static ResourceHash |
getResHash()
Returns a NLS Property set which holds all the translated values in the current language. |
javax.xml.namespace.QName |
getReturnParamQName()
Returns the value of a QName containing a Namespace URI, local
name and prefix |
static java.util.Vector |
getSoapHeaderAndBodyAsDOM(java.lang.String aSoapMsg)
Converts the SOAP message into DOM format |
java.lang.String |
getSoapString(org.apache.axis.message.RPCElement body)
This method returns a String representation of the Message from
the input SOAP body |
static int |
min(int a,
int b)
This method returns the smaller of two numbers |
static java.lang.String |
objectArrayToString(java.lang.Object[] aObjArray)
This method converts an input array of objects in the following String format: [obj1 , obj2 , ... |
java.lang.Object |
parseSOAP(java.lang.String aSoapMsgString,
java.util.Vector aClasses,
java.lang.String aMsgType)
Parses a SOAP message |
static java.lang.String |
readHttpContent(java.io.InputStream aInputStream,
java.lang.String aContentType,
int aContentLength)
Reads a specific amount of information from the InputStream and
returns the content as String |
static java.lang.String |
readHttpContentNoContentLength(java.io.InputStream aInputStream,
java.lang.String aContentType)
Reads the information from the InputStream and returns the
content as String |
void |
registerClassMapping(org.apache.axis.MessageContext aMsgCtx,
java.lang.Class aClass)
Registers a class mapping . |
void |
registerCustomTypeMapping(java.lang.Class javaType,
javax.xml.namespace.QName xmlType,
javax.xml.rpc.encoding.SerializerFactory serializerFactory,
javax.xml.rpc.encoding.DeserializerFactory deserializerFactory)
Records a type mapping to be used by the 'parseSOAP' method. |
static byte[] |
resizeByteArray(byte[] aByteArray,
int aNewSize)
Changes the size of a byte array |
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 |
---|
public static final java.lang.String ENCODING_LATIN_1
public static final java.lang.String ENCODING_UTF8
public static final int INITIAL_BUFFER_SIZE
Constructor Detail |
---|
public WebServiceCall(org.apache.axis.client.Service aService, javax.xml.namespace.QName aPortQN, java.lang.String aSoapOperation, Log aLog) throws java.lang.Exception
aService
- String
aPortQN
- QName
aSoapOperation
- String
aLog
- Log
java.lang.Exception
- if the arguments are not validpublic WebServiceCall(java.lang.String url, Log aLog) throws java.net.MalformedURLException
url
- String
aLog
- Log
java.net.MalformedURLException
- If the string specifies an unknown protocol.Method Detail |
---|
public static ResourceHash getResHash()
public javax.xml.namespace.QName getReturnParamQName()
QName
containing a Namespace URI, local
name and prefix
public static WebServiceCall createWebServiceCall(java.lang.String aWsdlUrl, javax.xml.namespace.QName aServiceQN, javax.xml.namespace.QName aPortQN, java.lang.String aSoapOperation, Log aLog) throws java.lang.Exception
aWsdlUrl
- String
aServiceQN
- QName
aPortQN
- QName
aSoapOperation
- String
aLog
-
java.lang.Exception
public static org.apache.axis.client.Service createService(java.lang.String wsdlDoc, javax.xml.namespace.QName serviceName) throws java.lang.Exception
Service
object.
wsdlDoc
- String
serviceName
- QName
java.lang.Exception
- if the the arguments are not validpublic static java.util.Vector convertComplexTypeList(java.lang.String aString) throws java.lang.ClassNotFoundException
aString
- String
Vector
java.lang.ClassNotFoundException
public static org.w3c.dom.Element getAsDOM(java.lang.String aString) throws java.lang.Exception
Element
object
aString
- String
java.lang.Exception
- if somewhere occurs an errorpublic static java.lang.String getAsString(org.w3c.dom.Node aNode) throws java.lang.Exception
Node
element into String
aNode
- Node
java.lang.Exception
- if null
is pass, or error during the
transforming occurspublic java.lang.String generateSOAP(java.util.Vector aClasses, java.lang.Object[] aParams, boolean aIsRequest) throws java.lang.Exception
aClasses
- Vector
aParams
- Array of objects , parameter listaIsRequest
- boolean
, indicates whether the call is a request
or response
java.lang.Exception
- if error occurspublic java.lang.String getSoapString(org.apache.axis.message.RPCElement body) throws java.lang.Exception
Message
from
the input SOAP body
body
- RPCElement
java.lang.Exception
public java.util.HashMap getOutParams()
public void registerCustomTypeMapping(java.lang.Class javaType, javax.xml.namespace.QName xmlType, javax.xml.rpc.encoding.SerializerFactory serializerFactory, javax.xml.rpc.encoding.DeserializerFactory deserializerFactory)
javaType
- Class
typexmlType
- QName
serializerFactory
- SerializerFactory
deserializerFactory
- DeserializerFactory
public java.lang.Object parseSOAP(java.lang.String aSoapMsgString, java.util.Vector aClasses, java.lang.String aMsgType) throws java.lang.Exception
aSoapMsgString
- the SOAP MessageaClasses
- - String , class typeaMsgType
- - String , Message type for the Message
java.lang.Exception
- : if error occurspublic void registerClassMapping(org.apache.axis.MessageContext aMsgCtx, java.lang.Class aClass) throws java.lang.Exception
aMsgCtx
- MessageContext
aClass
- Class
type
java.lang.Exception
- if an error during mapping occurspublic static java.lang.String[] convertOperationParams(java.lang.String aList)
aList
- String
public static java.lang.String callSoap(java.lang.String aWebServiceURL, java.lang.String aSoapRequest, java.lang.String aSoapActionURI) throws java.lang.Exception
aWebServiceURL
- String
aSoapRequest
- String
aSoapActionURI
- String
java.lang.Exception
callSoap(String, String, String, String)
public static java.lang.String callSoap(java.lang.String aWebServiceURL, java.lang.String aSoapRequest, java.lang.String aSoapActionURI, java.lang.String aBasicAuth) throws java.lang.Exception
aWebServiceURL
- - String , the URL addressaSoapRequest
- - String , the requestaSoapActionURI
- - intent of the action String , SOAP URIaBasicAuth
- - String , authentication
java.lang.Exception
- , if some problem occurspublic static java.util.Vector getSoapHeaderAndBodyAsDOM(java.lang.String aSoapMsg) throws java.lang.Exception
aSoapMsg
- String representation of the soap message, used to create new
Message
java.lang.Exception
- , if the required information cannot be retrievedpublic static java.lang.String objectArrayToString(java.lang.Object[] aObjArray)
aObjArray
- array of objects
public static java.lang.String getChildNodesAsString(org.w3c.dom.Node aNode) throws java.lang.Exception
Node
.
aNode
- Node
java.lang.Exception
- if the passed Node is null
public static java.lang.String readHttpContent(java.io.InputStream aInputStream, java.lang.String aContentType, int aContentLength) throws java.io.IOException
InputStream
and
returns the content as String
aInputStream
- InputStream
to be readaContentType
- type of data, so that the encoding style can be setaContentLength
- length of data to be read
java.io.IOException
- , if error occurs during readingpublic static int min(int a, int b)
a
- integerb
- integer
public static byte[] resizeByteArray(byte[] aByteArray, int aNewSize)
aByteArray
- byte arrayaNewSize
- integer
public static java.lang.String readHttpContentNoContentLength(java.io.InputStream aInputStream, java.lang.String aContentType) throws java.io.IOException
InputStream
and returns the
content as String
aInputStream
- the InputStream
aContentType
- type of data, so that the encoding style can be set
java.io.IOException
- , if error occurs during readingpublic static java.lang.String getJavaEncoding(java.lang.String aContentType)
aContentType
- String
null
if argument has null
value , the specified encoding style or the default unicode
encryption
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |