com.crossworlds.webservices
Class ProxyClassUtil

java.lang.Object
  |
  +--com.crossworlds.webservices.ProxyClassUtil

public class ProxyClassUtil
extends java.lang.Object

Class ProxyClassUtil provides utility functions to develop proxy classes. Proxy classes are generated by Web Services Generation Utility.


Constructor Summary
ProxyClassUtil()
           
 
Method Summary
static java.lang.String getConfigFilePath(org.apache.soap.rpc.SOAPContext reqCtx, java.lang.String configId)
          Returns the config file path as String.
static java.lang.String getSOAPReqContentType(org.apache.soap.rpc.SOAPContext reqCtx)
          Returns the content type from the incoming SOAP request as String.
static java.lang.String getSOAPReqMessage(org.apache.soap.rpc.SOAPContext reqCtx)
          Returns the SOAP message from the incoming SOAP request as String.
static void setResponse(org.apache.soap.rpc.SOAPContext respCtx, java.lang.String respStr, java.lang.String contentType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyClassUtil

public ProxyClassUtil()
Method Detail

getConfigFilePath

public static java.lang.String getConfigFilePath(org.apache.soap.rpc.SOAPContext reqCtx,
                                                 java.lang.String configId)
Returns the config file path as String. The config file path may be specified as an init-parameter of the SOAP MessageRouter servlet. If no config file path is specified, this method returns null.

Web Services Generation Utility collects the development time parameters for the generation of the proxy class. The utility defaults these parameters in the proxy class. These defaults can be overridden by specifying parameters in a config-file.

Parameters:
reqCtx - a SOAPContext containing the context of the incoming SOAP Request
configId - a String containing the name of the servlet init-parameter

getSOAPReqContentType

public static java.lang.String getSOAPReqContentType(org.apache.soap.rpc.SOAPContext reqCtx)
                                              throws org.apache.soap.SOAPException
Returns the content type from the incoming SOAP request as String.
Parameters:
reqCtx - a SOAPContext for the incoming SOAP request.
Returns:
Returns String containing the content-type of the SOAP message.
Throws:
SOAPException - if content type cannot be obtained.

getSOAPReqMessage

public static java.lang.String getSOAPReqMessage(org.apache.soap.rpc.SOAPContext reqCtx)
                                          throws org.apache.soap.SOAPException
Returns the SOAP message from the incoming SOAP request as String.
Parameters:
reqCtx - a SOAPContext for the incoming SOAP request.
Returns:
Returns String containing the content of the SOAP message.
Throws:
SOAPException - if content type or SOAP message cannot be obtained.

setResponse

public static void setResponse(org.apache.soap.rpc.SOAPContext respCtx,
                               java.lang.String respStr,
                               java.lang.String contentType)
                        throws org.apache.soap.SOAPException