axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject cvs commit: ws-axis/c/tests/client/threadSafe/gen_src InteropTestPortType.cpp InteropTestPortType.h SOAPStruct.cpp SOAPStruct.h SOAPStruct_Array.h
Date Thu, 24 Jun 2004 07:32:18 GMT
samisa      2004/06/24 00:32:18

  Modified:    c/tests/client/interop/round1/gen_src SOAPStruct.cpp
                        SOAPStruct.h SOAPStruct_Array.h SimpleTestSoap.cpp
                        SimpleTestSoap.h
               c/tests/client/threadSafe/gen_src InteropTestPortType.cpp
                        InteropTestPortType.h SOAPStruct.cpp SOAPStruct.h
                        SOAPStruct_Array.h
  Log:
  Re generated the source files to mach the changes to WSDL tool
  
  Revision  Changes    Path
  1.2       +3 -4      ws-axis/c/tests/client/interop/round1/gen_src/SOAPStruct.cpp
  
  Index: SOAPStruct.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/client/interop/round1/gen_src/SOAPStruct.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SOAPStruct.cpp	8 Jun 2004 09:59:20 -0000	1.1
  +++ SOAPStruct.cpp	24 Jun 2004 07:32:18 -0000	1.2
  @@ -1,7 +1,6 @@
   /*
  - *This file is automatically generated by the Axis C++ Wrapper Class Generator
  - *Web service wrapper class's implementation generated by Axis WCG
  - *Parameters and wrapper methos to manipulate SOAPStruct
  + * This file was auto-generated by the Axis C++ Web Service Generator (WSDL2Ws)
  + * This file contains functions to manipulate complex type SOAPStruct
    */
   
   #include <malloc.h>
  @@ -36,7 +35,7 @@
   /*
    * This static method deserialize a SOAPStruct type of object
    */
  -int Axis_DeSerialize_SOAPStruct(SOAPStruct* param, IWrapperSoapDeSerializer *pIWSDZ)
  +int Axis_DeSerialize_SOAPStruct(SOAPStruct* param, IWrapperSoapDeSerializer* pIWSDZ)
   {
   	param->varInt = pIWSDZ->getElementAsInt("varInt",0);
   	param->varString = pIWSDZ->getElementAsString("varString",0);
  
  
  
  1.2       +3 -4      ws-axis/c/tests/client/interop/round1/gen_src/SOAPStruct.h
  
  Index: SOAPStruct.h
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/client/interop/round1/gen_src/SOAPStruct.h,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SOAPStruct.h	8 Jun 2004 09:59:20 -0000	1.1
  +++ SOAPStruct.h	24 Jun 2004 07:32:18 -0000	1.2
  @@ -1,7 +1,6 @@
   /*
  - *This file is automatically generated by the Axis C++ Wrapper Class Generator
  - *Web service wrapper class's implementation generated by Axis WCG
  - *Parameters and wrapper methos to manipulate SOAPStruct
  + * This file was auto-generated by the Axis C++ Web Service Generator (WSDL2Ws)
  + * This file contains functions to manipulate complex type SOAPStruct
    */
   
   #if !defined(__SOAPSTRUCT_PARAM_H__INCLUDED_)
  @@ -20,7 +19,7 @@
   	xsd__string varString;
   	float varFloat;
   	SOAPStruct();
  -	~SOAPStruct();
  +	virtual ~SOAPStruct();
   };
   
   #endif /* !defined(__SOAPSTRUCT_PARAM_H__INCLUDED_)*/
  
  
  
  1.2       +2 -3      ws-axis/c/tests/client/interop/round1/gen_src/SOAPStruct_Array.h
  
  Index: SOAPStruct_Array.h
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/client/interop/round1/gen_src/SOAPStruct_Array.h,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SOAPStruct_Array.h	8 Jun 2004 09:59:20 -0000	1.1
  +++ SOAPStruct_Array.h	24 Jun 2004 07:32:18 -0000	1.2
  @@ -1,7 +1,6 @@
   /*
  - *This file is automatically generated by the Axis C++ Wrapper Class Generator
  - *Web service wrapper class's implementation generated by Axis WCG
  - *Parameters and wrapper methos to manipulate SOAPStruct_Array
  + * This file was auto-generated by the Axis C++ Web Service Generator (WSDL2Ws)
  + * This file contains functions to manipulate complex type SOAPStruct_Array
    */
   
   #if !defined(__SOAPSTRUCT_ARRAY_ARRAY_H__INCLUDED_)
  
  
  
  1.2       +531 -170  ws-axis/c/tests/client/interop/round1/gen_src/SimpleTestSoap.cpp
  
  Index: SimpleTestSoap.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/client/interop/round1/gen_src/SimpleTestSoap.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SimpleTestSoap.cpp	8 Jun 2004 09:59:20 -0000	1.1
  +++ SimpleTestSoap.cpp	24 Jun 2004 07:32:18 -0000	1.2
  @@ -1,361 +1,722 @@
   /*
  - * This is the Client Stub implementation file genarated by WSDL2Ws tool.
  - * SimpleTestSoap.cpp: implemtation for the SimpleTestSoap.
  - *
  + * This file was auto-generated by the Axis C++ Web Service Generator (WSDL2Ws)
  + * This file contains Client Stub implementation for remote web service.
    */
   
   #include "SimpleTestSoap.h"
   
   #include <axis/server/AxisWrapperAPI.h>
   
  -bool CallBase::bInitialized;
  -CallFunctions CallBase::ms_VFtable;
  -extern int Axis_DeSerialize_SOAPStruct(SOAPStruct* param, IWrapperSoapDeSerializer *pDZ);
  +using namespace std;
  +
  + extern int Axis_DeSerialize_SOAPStruct(SOAPStruct* param, IWrapperSoapDeSerializer* pDZ);
   extern void* Axis_Create_SOAPStruct(SOAPStruct *Obj, bool bArray = false, int nSize=0);
   extern void Axis_Delete_SOAPStruct(SOAPStruct* param, bool bArray = false, int nSize=0);
   extern int Axis_Serialize_SOAPStruct(SOAPStruct* param, IWrapperSoapSerializer* pSZ, bool bArray = false);
   extern int Axis_GetSize_SOAPStruct();
   
  -SimpleTestSoap::SimpleTestSoap(const char* pcEndpointUri):Stub(pcEndpointUri)
  +SimpleTestSoap::SimpleTestSoap(const char* pchEndpointUri, AXIS_PROTOCOL_TYPE eProtocol)
  +:Stub(pchEndpointUri, eProtocol)
  +{
  +}
  +
  +SimpleTestSoap::SimpleTestSoap()
  +:Stub(" ", APTHTTP)
   {
  +	m_pCall->setEndpointURI("http://127.0.0.1:8080/");
   }
   
   SimpleTestSoap::~SimpleTestSoap()
  -{}
  +{
  +}
   
   
   /*Methods corresponding to the web service methods*/
   
   /*
  - * This method wrap the service methodechoVoid
  + * This method wrap the service method echoVoid
    */
   void SimpleTestSoap::echoVoid()
   {
  -	if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL)) return ;
  -	m_pCall->setTransportProperty(SOAPACTION_HEADER , "null");
  -	m_pCall->setSOAPVersion(SOAP_VER_1_1);
  -	m_pCall->setOperation("echoVoid", "http://soapinterop.org/");
  -	applyUserPreferences();
  -	if (AXIS_SUCCESS == m_pCall->invoke())
  -	{
  -		if(AXIS_SUCCESS == m_pCall->checkMessage("echoVoidResponse", "http://soapinterop.org/"))
  +	char* cFaultcode;
  +	char* cFaultstring;
  +	char* cFaultactor;
  +	char* cFaultdetail;
  +	try
  +	{
  +		if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL)) 
  +			return ;
  +		m_pCall->setTransportProperty(SOAPACTION_HEADER , "null");
  +		m_pCall->setSOAPVersion(SOAP_VER_1_1);
  +		m_pCall->setOperation("echoVoid", "http://soapinterop.org/");
  +		applyUserPreferences();
  +		if (AXIS_SUCCESS == m_pCall->invoke())
   		{
  +			if(AXIS_SUCCESS == m_pCall->checkMessage("echoVoidSoapOut", "http://soapinterop.org/"))
  +			{
   			/*not successful*/
   		}
  +		}
  +		m_pCall->unInitialize();
  +	}
  +	catch(AxisException& e)
  +	{
  +		int iExceptionCode = e.getExceptionCode();
  +		if(AXISC_NODE_VALUE_MISMATCH_EXCEPTION != iExceptionCode)
  +		{
  +			throw;
  +		}
  +		else if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://127.0.0.1:8080/" ))//Exception handling code goes here
  +		{
  +			cFaultcode = m_pCall->getElementAsString("faultcode", 0);
  +			cFaultstring = m_pCall->getElementAsString("faultstring", 0);
  +			cFaultactor = m_pCall->getElementAsString("faultactor", 0);
  +				  cFaultdetail = m_pCall->getElementAsString("faultdetail", 0);
  +				  throw AxisException(cFaultdetail);
  +		}
  +		else throw;
   	}
  -	m_pCall->unInitialize();
   }
   
   
   /*
  - * This method wrap the service methodechoInteger
  + * This method wrap the service method echoInteger
    */
   int SimpleTestSoap::echoInteger(int Value0)
   {
   	int Ret;
  -	if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL)) return Ret;
  -	m_pCall->setTransportProperty(SOAPACTION_HEADER , "null");
  -	m_pCall->setSOAPVersion(SOAP_VER_1_1);
  -	m_pCall->setOperation("echoInteger", "http://soapinterop.org/");
  -	applyUserPreferences();
  -	m_pCall->addParameter((void*)&Value0, "inputInteger", XSD_INT);
  -	if (AXIS_SUCCESS == m_pCall->invoke())
  +	char* cFaultcode;
  +	char* cFaultstring;
  +	char* cFaultactor;
  +	char* cFaultdetail;
  +	try
   	{
  -		if(AXIS_SUCCESS == m_pCall->checkMessage("echoIntegerResponse", "http://soapinterop.org/"))
  +		if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL)) 
  +			return Ret;
  +		m_pCall->setTransportProperty(SOAPACTION_HEADER , "null");
  +		m_pCall->setSOAPVersion(SOAP_VER_1_1);
  +		m_pCall->setOperation("echoInteger", "http://soapinterop.org/");
  +		applyUserPreferences();
  +		m_pCall->addParameter((void*)&Value0, "inputInteger", XSD_INT);
  +		if (AXIS_SUCCESS == m_pCall->invoke())
   		{
  -			Ret = m_pCall->getElementAsInt("return", 0);
  +			if(AXIS_SUCCESS == m_pCall->checkMessage("echoIntegerSoapOut", "http://soapinterop.org/"))
  +			{
  +				Ret = m_pCall->getElementAsInt("return", 0);
  +			}
   		}
  +		m_pCall->unInitialize();
  +		return Ret;
  +	}
  +	catch(AxisException& e)
  +	{
  +		int iExceptionCode = e.getExceptionCode();
  +		if(AXISC_NODE_VALUE_MISMATCH_EXCEPTION != iExceptionCode)
  +		{
  +			throw;
  +		}
  +		else if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://127.0.0.1:8080/" ))//Exception handling code goes here
  +		{
  +			cFaultcode = m_pCall->getElementAsString("faultcode", 0);
  +			cFaultstring = m_pCall->getElementAsString("faultstring", 0);
  +			cFaultactor = m_pCall->getElementAsString("faultactor", 0);
  +				  cFaultdetail = m_pCall->getElementAsString("faultdetail", 0);
  +				  throw AxisException(cFaultdetail);
  +		}
  +		else throw;
   	}
  -	m_pCall->unInitialize();
  -	return Ret;
   }
   
   
   /*
  - * This method wrap the service methodechoFloat
  + * This method wrap the service method echoFloat
    */
   float SimpleTestSoap::echoFloat(float Value0)
   {
   	float Ret;
  -	if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL)) return Ret;
  -	m_pCall->setTransportProperty(SOAPACTION_HEADER , "null");
  -	m_pCall->setSOAPVersion(SOAP_VER_1_1);
  -	m_pCall->setOperation("echoFloat", "http://soapinterop.org/");
  -	applyUserPreferences();
  -	m_pCall->addParameter((void*)&Value0, "inputFloat", XSD_FLOAT);
  -	if (AXIS_SUCCESS == m_pCall->invoke())
  +	char* cFaultcode;
  +	char* cFaultstring;
  +	char* cFaultactor;
  +	char* cFaultdetail;
  +	try
  +	{
  +		if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL)) 
  +			return Ret;
  +		m_pCall->setTransportProperty(SOAPACTION_HEADER , "null");
  +		m_pCall->setSOAPVersion(SOAP_VER_1_1);
  +		m_pCall->setOperation("echoFloat", "http://soapinterop.org/");
  +		applyUserPreferences();
  +		m_pCall->addParameter((void*)&Value0, "inputFloat", XSD_FLOAT);
  +		if (AXIS_SUCCESS == m_pCall->invoke())
  +		{
  +			if(AXIS_SUCCESS == m_pCall->checkMessage("echoFloatSoapOut", "http://soapinterop.org/"))
  +			{
  +				Ret = m_pCall->getElementAsFloat("return", 0);
  +			}
  +		}
  +		m_pCall->unInitialize();
  +		return Ret;
  +	}
  +	catch(AxisException& e)
   	{
  -		if(AXIS_SUCCESS == m_pCall->checkMessage("echoFloatResponse", "http://soapinterop.org/"))
  +		int iExceptionCode = e.getExceptionCode();
  +		if(AXISC_NODE_VALUE_MISMATCH_EXCEPTION != iExceptionCode)
  +		{
  +			throw;
  +		}
  +		else if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://127.0.0.1:8080/" ))//Exception handling code goes here
   		{
  -			Ret = m_pCall->getElementAsFloat("return", 0);
  +			cFaultcode = m_pCall->getElementAsString("faultcode", 0);
  +			cFaultstring = m_pCall->getElementAsString("faultstring", 0);
  +			cFaultactor = m_pCall->getElementAsString("faultactor", 0);
  +				  cFaultdetail = m_pCall->getElementAsString("faultdetail", 0);
  +				  throw AxisException(cFaultdetail);
   		}
  +		else throw;
   	}
  -	m_pCall->unInitialize();
  -	return Ret;
   }
   
   
   /*
  - * This method wrap the service methodechoString
  + * This method wrap the service method echoString
    */
   xsd__string SimpleTestSoap::echoString(xsd__string Value0)
   {
   	xsd__string Ret;
  -	if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL)) return Ret;
  -	m_pCall->setTransportProperty(SOAPACTION_HEADER , "null");
  -	m_pCall->setSOAPVersion(SOAP_VER_1_1);
  -	m_pCall->setOperation("echoString", "http://soapinterop.org/");
  -	applyUserPreferences();
  -	m_pCall->addParameter((void*)&Value0, "inputString", XSD_STRING);
  -	if (AXIS_SUCCESS == m_pCall->invoke())
  +	char* cFaultcode;
  +	char* cFaultstring;
  +	char* cFaultactor;
  +	char* cFaultdetail;
  +	try
  +	{
  +		if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL)) 
  +			return Ret;
  +		m_pCall->setTransportProperty(SOAPACTION_HEADER , "null");
  +		m_pCall->setSOAPVersion(SOAP_VER_1_1);
  +		m_pCall->setOperation("echoString", "http://soapinterop.org/");
  +		applyUserPreferences();
  +		m_pCall->addParameter((void*)&Value0, "inputString", XSD_STRING);
  +		if (AXIS_SUCCESS == m_pCall->invoke())
  +		{
  +			if(AXIS_SUCCESS == m_pCall->checkMessage("echoStringSoapOut", "http://soapinterop.org/"))
  +			{
  +				Ret = m_pCall->getElementAsString("return", 0);
  +			}
  +		}
  +		m_pCall->unInitialize();
  +		return Ret;
  +	}
  +	catch(AxisException& e)
   	{
  -		if(AXIS_SUCCESS == m_pCall->checkMessage("echoStringResponse", "http://soapinterop.org/"))
  +		int iExceptionCode = e.getExceptionCode();
  +		if(AXISC_NODE_VALUE_MISMATCH_EXCEPTION != iExceptionCode)
  +		{
  +			throw;
  +		}
  +		else if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://127.0.0.1:8080/" ))//Exception handling code goes here
   		{
  -			Ret = m_pCall->getElementAsString("return", 0);
  +			cFaultcode = m_pCall->getElementAsString("faultcode", 0);
  +			cFaultstring = m_pCall->getElementAsString("faultstring", 0);
  +			cFaultactor = m_pCall->getElementAsString("faultactor", 0);
  +				  cFaultdetail = m_pCall->getElementAsString("faultdetail", 0);
  +				  throw AxisException(cFaultdetail);
   		}
  +		else throw;
   	}
  -	m_pCall->unInitialize();
  -	return Ret;
   }
   
   
   /*
  - * This method wrap the service methodechoBase64
  + * This method wrap the service method echoBase64
    */
   xsd__base64Binary SimpleTestSoap::echoBase64(xsd__base64Binary Value0)
   {
   	xsd__base64Binary Ret;
  -	if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL)) return Ret;
  -	m_pCall->setTransportProperty(SOAPACTION_HEADER , "null");
  -	m_pCall->setSOAPVersion(SOAP_VER_1_1);
  -	m_pCall->setOperation("echoBase64", "http://soapinterop.org/");
  -	applyUserPreferences();
  -	m_pCall->addParameter((void*)&Value0, "inputBase64", XSD_BASE64BINARY);
  -	if (AXIS_SUCCESS == m_pCall->invoke())
  +	char* cFaultcode;
  +	char* cFaultstring;
  +	char* cFaultactor;
  +	char* cFaultdetail;
  +	try
   	{
  -		if(AXIS_SUCCESS == m_pCall->checkMessage("echoBase64Response", "http://soapinterop.org/"))
  +		if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL)) 
  +			return Ret;
  +		m_pCall->setTransportProperty(SOAPACTION_HEADER , "null");
  +		m_pCall->setSOAPVersion(SOAP_VER_1_1);
  +		m_pCall->setOperation("echoBase64", "http://soapinterop.org/");
  +		applyUserPreferences();
  +		m_pCall->addParameter((void*)&Value0, "inputBase64", XSD_BASE64BINARY);
  +		if (AXIS_SUCCESS == m_pCall->invoke())
   		{
  -			Ret = m_pCall->getElementAsBase64Binary("return", 0);
  +			if(AXIS_SUCCESS == m_pCall->checkMessage("echoBase64SoapOut", "http://soapinterop.org/"))
  +			{
  +				Ret = m_pCall->getElementAsBase64Binary("return", 0);
  +			}
   		}
  +		m_pCall->unInitialize();
  +		return Ret;
  +	}
  +	catch(AxisException& e)
  +	{
  +		int iExceptionCode = e.getExceptionCode();
  +		if(AXISC_NODE_VALUE_MISMATCH_EXCEPTION != iExceptionCode)
  +		{
  +			throw;
  +		}
  +		else if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://127.0.0.1:8080/" ))//Exception handling code goes here
  +		{
  +			cFaultcode = m_pCall->getElementAsString("faultcode", 0);
  +			cFaultstring = m_pCall->getElementAsString("faultstring", 0);
  +			cFaultactor = m_pCall->getElementAsString("faultactor", 0);
  +				  cFaultdetail = m_pCall->getElementAsString("faultdetail", 0);
  +				  throw AxisException(cFaultdetail);
  +		}
  +		else throw;
   	}
  -	m_pCall->unInitialize();
  -	return Ret;
   }
   
   
   /*
  - * This method wrap the service methodechoDate
  + * This method wrap the service method echoDate
    */
   xsd__dateTime SimpleTestSoap::echoDate(xsd__dateTime Value0)
   {
   	xsd__dateTime Ret;
  -	if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL)) return Ret;
  -	m_pCall->setTransportProperty(SOAPACTION_HEADER , "null");
  -	m_pCall->setSOAPVersion(SOAP_VER_1_1);
  -	m_pCall->setOperation("echoDate", "http://soapinterop.org/");
  -	applyUserPreferences();
  -	m_pCall->addParameter((void*)&Value0, "inputDate", XSD_DATETIME);
  -	if (AXIS_SUCCESS == m_pCall->invoke())
  +	char* cFaultcode;
  +	char* cFaultstring;
  +	char* cFaultactor;
  +	char* cFaultdetail;
  +	try
   	{
  -		if(AXIS_SUCCESS == m_pCall->checkMessage("echoDateResponse", "http://soapinterop.org/"))
  +		if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL)) 
  +			return Ret;
  +		m_pCall->setTransportProperty(SOAPACTION_HEADER , "null");
  +		m_pCall->setSOAPVersion(SOAP_VER_1_1);
  +		m_pCall->setOperation("echoDate", "http://soapinterop.org/");
  +		applyUserPreferences();
  +		m_pCall->addParameter((void*)&Value0, "inputDate", XSD_DATETIME);
  +		if (AXIS_SUCCESS == m_pCall->invoke())
   		{
  -			Ret = m_pCall->getElementAsDateTime("return", 0);
  +			if(AXIS_SUCCESS == m_pCall->checkMessage("echoDateSoapOut", "http://soapinterop.org/"))
  +			{
  +				Ret = m_pCall->getElementAsDateTime("return", 0);
  +			}
   		}
  +		m_pCall->unInitialize();
  +		return Ret;
  +	}
  +	catch(AxisException& e)
  +	{
  +		int iExceptionCode = e.getExceptionCode();
  +		if(AXISC_NODE_VALUE_MISMATCH_EXCEPTION != iExceptionCode)
  +		{
  +			throw;
  +		}
  +		else if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://127.0.0.1:8080/" ))//Exception handling code goes here
  +		{
  +			cFaultcode = m_pCall->getElementAsString("faultcode", 0);
  +			cFaultstring = m_pCall->getElementAsString("faultstring", 0);
  +			cFaultactor = m_pCall->getElementAsString("faultactor", 0);
  +				  cFaultdetail = m_pCall->getElementAsString("faultdetail", 0);
  +				  throw AxisException(cFaultdetail);
  +		}
  +		else throw;
   	}
  -	m_pCall->unInitialize();
  -	return Ret;
   }
   
   
   /*
  - * This method wrap the service methodechoStruct
  + * This method wrap the service method echoStruct
    */
   SOAPStruct* SimpleTestSoap::echoStruct(SOAPStruct* Value0)
   {
   	SOAPStruct* pReturn = NULL;
  -	if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL)) return pReturn;
  -	m_pCall->setTransportProperty(SOAPACTION_HEADER , "null");
  -	m_pCall->setSOAPVersion(SOAP_VER_1_1);
  -	m_pCall->setOperation("echoStruct", "http://soapinterop.org/");
  -	applyUserPreferences();
  +	char* cFaultcode;
  +	char* cFaultstring;
  +	char* cFaultactor;
  +	char* cFaultdetail;
  +	try
  +	{
  +		if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL)) 
  +			return pReturn;
  +		m_pCall->setTransportProperty(SOAPACTION_HEADER , "null");
  +		m_pCall->setSOAPVersion(SOAP_VER_1_1);
  +		m_pCall->setOperation("echoStruct", "http://soapinterop.org/");
  +		applyUserPreferences();
   	m_pCall->addCmplxParameter(Value0, (void*)Axis_Serialize_SOAPStruct, (void*)Axis_Delete_SOAPStruct, "inputStruct", Axis_URI_SOAPStruct);
  -	if (AXIS_SUCCESS == m_pCall->invoke())
  +		if (AXIS_SUCCESS == m_pCall->invoke())
  +		{
  +			if(AXIS_SUCCESS == m_pCall->checkMessage("echoStructSoapOut", "http://soapinterop.org/"))
  +			{
  +				pReturn = (SOAPStruct*)m_pCall->getCmplxObject((void*) Axis_DeSerialize_SOAPStruct, (void*) Axis_Create_SOAPStruct, (void*) Axis_Delete_SOAPStruct,"return", 0);
  +		}
  +		}
  +		m_pCall->unInitialize();
  +		return pReturn;
  +	}
  +	catch(AxisException& e)
   	{
  -		if(AXIS_SUCCESS == m_pCall->checkMessage("echoStructResponse", "http://soapinterop.org/"))
  +		int iExceptionCode = e.getExceptionCode();
  +		if(AXISC_NODE_VALUE_MISMATCH_EXCEPTION != iExceptionCode)
  +		{
  +			throw;
  +		}
  +		else if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://127.0.0.1:8080/" ))//Exception handling code goes here
   		{
  -			pReturn = (SOAPStruct*)m_pCall->getCmplxObject((void*) Axis_DeSerialize_SOAPStruct, (void*) Axis_Create_SOAPStruct, (void*) Axis_Delete_SOAPStruct,"return", 0);
  +			cFaultcode = m_pCall->getElementAsString("faultcode", 0);
  +			cFaultstring = m_pCall->getElementAsString("faultstring", 0);
  +			cFaultactor = m_pCall->getElementAsString("faultactor", 0);
  +				  cFaultdetail = m_pCall->getElementAsString("faultdetail", 0);
  +				  throw AxisException(cFaultdetail);
   		}
  +		else throw;
   	}
  -	m_pCall->unInitialize();
  -	return pReturn;
   }
   
   
   /*
  - * This method wrap the service methodechoIntegerArray
  + * This method wrap the service method echoIntegerArray
    */
   xsd__int_Array SimpleTestSoap::echoIntegerArray(xsd__int_Array Value0)
   {
   	xsd__int_Array RetArray = {NULL, 0};
  -	if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL)) return RetArray;
  -	m_pCall->setTransportProperty(SOAPACTION_HEADER , "null");
  -	m_pCall->setSOAPVersion(SOAP_VER_1_1);
  -	m_pCall->setOperation("echoIntegerArray", "http://soapinterop.org/");
  -	applyUserPreferences();
  +	char* cFaultcode;
  +	char* cFaultstring;
  +	char* cFaultactor;
  +	char* cFaultdetail;
  +	try
  +	{
  +		if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL)) 
  +			return RetArray;
  +		m_pCall->setTransportProperty(SOAPACTION_HEADER , "null");
  +		m_pCall->setSOAPVersion(SOAP_VER_1_1);
  +		m_pCall->setOperation("echoIntegerArray", "http://soapinterop.org/");
  +		applyUserPreferences();
   	m_pCall->addBasicArrayParameter((Axis_Array*)(&Value0), XSD_INT, "inputIntegerArray");
  -	if (AXIS_SUCCESS == m_pCall->invoke())
  +		if (AXIS_SUCCESS == m_pCall->invoke())
  +		{
  +			if(AXIS_SUCCESS == m_pCall->checkMessage("echoIntegerArraySoapOut", "http://soapinterop.org/"))
  +			{
  +				RetArray = (xsd__int_Array&)m_pCall->getBasicArray(XSD_INT, "return", 0);
  +			}
  +		}
  +		m_pCall->unInitialize();
  +		return RetArray;
  +	}
  +	catch(AxisException& e)
   	{
  -		if(AXIS_SUCCESS == m_pCall->checkMessage("echoIntegerArrayResponse", "http://soapinterop.org/"))
  +		int iExceptionCode = e.getExceptionCode();
  +		if(AXISC_NODE_VALUE_MISMATCH_EXCEPTION != iExceptionCode)
  +		{
  +			throw;
  +		}
  +		else if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://127.0.0.1:8080/" ))//Exception handling code goes here
   		{
  -			RetArray = (xsd__int_Array&)m_pCall->getBasicArray(XSD_INT, "return", 0);
  +			cFaultcode = m_pCall->getElementAsString("faultcode", 0);
  +			cFaultstring = m_pCall->getElementAsString("faultstring", 0);
  +			cFaultactor = m_pCall->getElementAsString("faultactor", 0);
  +				  cFaultdetail = m_pCall->getElementAsString("faultdetail", 0);
  +				  throw AxisException(cFaultdetail);
   		}
  +		else throw;
   	}
  -	m_pCall->unInitialize();
  -	return RetArray;
   }
   
   
   /*
  - * This method wrap the service methodechoFloatArray
  + * This method wrap the service method echoFloatArray
    */
   xsd__float_Array SimpleTestSoap::echoFloatArray(xsd__float_Array Value0)
   {
   	xsd__float_Array RetArray = {NULL, 0};
  -	if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL)) return RetArray;
  -	m_pCall->setTransportProperty(SOAPACTION_HEADER , "null");
  -	m_pCall->setSOAPVersion(SOAP_VER_1_1);
  -	m_pCall->setOperation("echoFloatArray", "http://soapinterop.org/");
  -	applyUserPreferences();
  +	char* cFaultcode;
  +	char* cFaultstring;
  +	char* cFaultactor;
  +	char* cFaultdetail;
  +	try
  +	{
  +		if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL)) 
  +			return RetArray;
  +		m_pCall->setTransportProperty(SOAPACTION_HEADER , "null");
  +		m_pCall->setSOAPVersion(SOAP_VER_1_1);
  +		m_pCall->setOperation("echoFloatArray", "http://soapinterop.org/");
  +		applyUserPreferences();
   	m_pCall->addBasicArrayParameter((Axis_Array*)(&Value0), XSD_FLOAT, "inputFloatArray");
  -	if (AXIS_SUCCESS == m_pCall->invoke())
  +		if (AXIS_SUCCESS == m_pCall->invoke())
  +		{
  +			if(AXIS_SUCCESS == m_pCall->checkMessage("echoFloatArraySoapOut", "http://soapinterop.org/"))
  +			{
  +				RetArray = (xsd__float_Array&)m_pCall->getBasicArray(XSD_FLOAT, "return", 0);
  +			}
  +		}
  +		m_pCall->unInitialize();
  +		return RetArray;
  +	}
  +	catch(AxisException& e)
   	{
  -		if(AXIS_SUCCESS == m_pCall->checkMessage("echoFloatArrayResponse", "http://soapinterop.org/"))
  +		int iExceptionCode = e.getExceptionCode();
  +		if(AXISC_NODE_VALUE_MISMATCH_EXCEPTION != iExceptionCode)
   		{
  -			RetArray = (xsd__float_Array&)m_pCall->getBasicArray(XSD_FLOAT, "return", 0);
  +			throw;
   		}
  +		else if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://127.0.0.1:8080/" ))//Exception handling code goes here
  +		{
  +			cFaultcode = m_pCall->getElementAsString("faultcode", 0);
  +			cFaultstring = m_pCall->getElementAsString("faultstring", 0);
  +			cFaultactor = m_pCall->getElementAsString("faultactor", 0);
  +				  cFaultdetail = m_pCall->getElementAsString("faultdetail", 0);
  +				  throw AxisException(cFaultdetail);
  +		}
  +		else throw;
   	}
  -	m_pCall->unInitialize();
  -	return RetArray;
   }
   
   
   /*
  - * This method wrap the service methodechoStringArray
  + * This method wrap the service method echoStringArray
    */
   xsd__string_Array SimpleTestSoap::echoStringArray(xsd__string_Array Value0)
   {
   	xsd__string_Array RetArray = {NULL, 0};
  -	if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL)) return RetArray;
  -	m_pCall->setTransportProperty(SOAPACTION_HEADER , "null");
  -	m_pCall->setSOAPVersion(SOAP_VER_1_1);
  -	m_pCall->setOperation("echoStringArray", "http://soapinterop.org/");
  -	applyUserPreferences();
  +	char* cFaultcode;
  +	char* cFaultstring;
  +	char* cFaultactor;
  +	char* cFaultdetail;
  +	try
  +	{
  +		if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL)) 
  +			return RetArray;
  +		m_pCall->setTransportProperty(SOAPACTION_HEADER , "null");
  +		m_pCall->setSOAPVersion(SOAP_VER_1_1);
  +		m_pCall->setOperation("echoStringArray", "http://soapinterop.org/");
  +		applyUserPreferences();
   	m_pCall->addBasicArrayParameter((Axis_Array*)(&Value0), XSD_STRING, "inputStringArray");
  -	if (AXIS_SUCCESS == m_pCall->invoke())
  +		if (AXIS_SUCCESS == m_pCall->invoke())
  +		{
  +			if(AXIS_SUCCESS == m_pCall->checkMessage("echoStringArraySoapOut", "http://soapinterop.org/"))
  +			{
  +				RetArray = (xsd__string_Array&)m_pCall->getBasicArray(XSD_STRING, "return", 0);
  +			}
  +		}
  +		m_pCall->unInitialize();
  +		return RetArray;
  +	}
  +	catch(AxisException& e)
   	{
  -		if(AXIS_SUCCESS == m_pCall->checkMessage("echoStringArrayResponse", "http://soapinterop.org/"))
  +		int iExceptionCode = e.getExceptionCode();
  +		if(AXISC_NODE_VALUE_MISMATCH_EXCEPTION != iExceptionCode)
   		{
  -			RetArray = (xsd__string_Array&)m_pCall->getBasicArray(XSD_STRING, "return", 0);
  +			throw;
   		}
  +		else if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://127.0.0.1:8080/" ))//Exception handling code goes here
  +		{
  +			cFaultcode = m_pCall->getElementAsString("faultcode", 0);
  +			cFaultstring = m_pCall->getElementAsString("faultstring", 0);
  +			cFaultactor = m_pCall->getElementAsString("faultactor", 0);
  +				  cFaultdetail = m_pCall->getElementAsString("faultdetail", 0);
  +				  throw AxisException(cFaultdetail);
  +		}
  +		else throw;
   	}
  -	m_pCall->unInitialize();
  -	return RetArray;
   }
   
   
   /*
  - * This method wrap the service methodechoStructArray
  + * This method wrap the service method echoStructArray
    */
   SOAPStruct_Array SimpleTestSoap::echoStructArray(SOAPStruct_Array Value0)
   {
   	SOAPStruct_Array RetArray = {NULL, 0};
  -	if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL)) return RetArray;
  -	m_pCall->setTransportProperty(SOAPACTION_HEADER , "null");
  -	m_pCall->setSOAPVersion(SOAP_VER_1_1);
  -	m_pCall->setOperation("echoStructArray", "http://soapinterop.org/");
  -	applyUserPreferences();
  +	char* cFaultcode;
  +	char* cFaultstring;
  +	char* cFaultactor;
  +	char* cFaultdetail;
  +	try
  +	{
  +		if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL)) 
  +			return RetArray;
  +		m_pCall->setTransportProperty(SOAPACTION_HEADER , "null");
  +		m_pCall->setSOAPVersion(SOAP_VER_1_1);
  +		m_pCall->setOperation("echoStructArray", "http://soapinterop.org/");
  +		applyUserPreferences();
   	m_pCall->addCmplxArrayParameter((Axis_Array*)(&Value0), (void*)Axis_Serialize_SOAPStruct, (void*)Axis_Delete_SOAPStruct, (void*) Axis_GetSize_SOAPStruct, "inputStructArray", Axis_URI_SOAPStruct);
  -	if (AXIS_SUCCESS == m_pCall->invoke())
  +		if (AXIS_SUCCESS == m_pCall->invoke())
  +		{
  +			if(AXIS_SUCCESS == m_pCall->checkMessage("echoStructArraySoapOut", "http://soapinterop.org/"))
  +			{
  +				RetArray = (SOAPStruct_Array&)m_pCall->getCmplxArray((void*) Axis_DeSerialize_SOAPStruct, (void*) Axis_Create_SOAPStruct, (void*) Axis_Delete_SOAPStruct, (void*) Axis_GetSize_SOAPStruct, "return", Axis_URI_SOAPStruct);
  +			}
  +		}
  +		m_pCall->unInitialize();
  +		return RetArray;
  +	}
  +	catch(AxisException& e)
   	{
  -		if(AXIS_SUCCESS == m_pCall->checkMessage("echoStructArrayResponse", "http://soapinterop.org/"))
  +		int iExceptionCode = e.getExceptionCode();
  +		if(AXISC_NODE_VALUE_MISMATCH_EXCEPTION != iExceptionCode)
   		{
  -			RetArray = (SOAPStruct_Array&)m_pCall->getCmplxArray((void*) Axis_DeSerialize_SOAPStruct, (void*) Axis_Create_SOAPStruct, (void*) Axis_Delete_SOAPStruct, (void*) Axis_GetSize_SOAPStruct, "return", Axis_URI_SOAPStruct);
  +			throw;
   		}
  +		else if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://127.0.0.1:8080/" ))//Exception handling code goes here
  +		{
  +			cFaultcode = m_pCall->getElementAsString("faultcode", 0);
  +			cFaultstring = m_pCall->getElementAsString("faultstring", 0);
  +			cFaultactor = m_pCall->getElementAsString("faultactor", 0);
  +				  cFaultdetail = m_pCall->getElementAsString("faultdetail", 0);
  +				  throw AxisException(cFaultdetail);
  +		}
  +		else throw;
   	}
  -	m_pCall->unInitialize();
  -	return RetArray;
   }
   
   
   /*
  - * This method wrap the service methodechoDecimal
  + * This method wrap the service method echoDecimal
    */
   xsd__decimal SimpleTestSoap::echoDecimal(xsd__decimal Value0)
   {
   	xsd__decimal Ret;
  -	if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL)) return Ret;
  -	m_pCall->setTransportProperty(SOAPACTION_HEADER , "null");
  -	m_pCall->setSOAPVersion(SOAP_VER_1_1);
  -	m_pCall->setOperation("echoDecimal", "http://soapinterop.org/");
  -	applyUserPreferences();
  -	m_pCall->addParameter((void*)&Value0, "inputDecimal", XSD_DECIMAL);
  -	if (AXIS_SUCCESS == m_pCall->invoke())
  +	char* cFaultcode;
  +	char* cFaultstring;
  +	char* cFaultactor;
  +	char* cFaultdetail;
  +	try
   	{
  -		if(AXIS_SUCCESS == m_pCall->checkMessage("echoDecimalResponse", "http://soapinterop.org/"))
  +		if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL)) 
  +			return Ret;
  +		m_pCall->setTransportProperty(SOAPACTION_HEADER , "null");
  +		m_pCall->setSOAPVersion(SOAP_VER_1_1);
  +		m_pCall->setOperation("echoDecimal", "http://soapinterop.org/");
  +		applyUserPreferences();
  +		m_pCall->addParameter((void*)&Value0, "inputDecimal", XSD_DECIMAL);
  +		if (AXIS_SUCCESS == m_pCall->invoke())
   		{
  -			Ret = m_pCall->getElementAsDecimal("return", 0);
  +			if(AXIS_SUCCESS == m_pCall->checkMessage("echoDecimalSoapOut", "http://soapinterop.org/"))
  +			{
  +				Ret = m_pCall->getElementAsDecimal("return", 0);
  +			}
   		}
  +		m_pCall->unInitialize();
  +		return Ret;
  +	}
  +	catch(AxisException& e)
  +	{
  +		int iExceptionCode = e.getExceptionCode();
  +		if(AXISC_NODE_VALUE_MISMATCH_EXCEPTION != iExceptionCode)
  +		{
  +			throw;
  +		}
  +		else if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://127.0.0.1:8080/" ))//Exception handling code goes here
  +		{
  +			cFaultcode = m_pCall->getElementAsString("faultcode", 0);
  +			cFaultstring = m_pCall->getElementAsString("faultstring", 0);
  +			cFaultactor = m_pCall->getElementAsString("faultactor", 0);
  +				  cFaultdetail = m_pCall->getElementAsString("faultdetail", 0);
  +				  throw AxisException(cFaultdetail);
  +		}
  +		else throw;
   	}
  -	m_pCall->unInitialize();
  -	return Ret;
   }
   
   
   /*
  - * This method wrap the service methodechoBoolean
  + * This method wrap the service method echoBoolean
    */
   xsd__boolean SimpleTestSoap::echoBoolean(xsd__boolean Value0)
   {
   	xsd__boolean Ret;
  -	if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL)) return Ret;
  -	m_pCall->setTransportProperty(SOAPACTION_HEADER , "null");
  -	m_pCall->setSOAPVersion(SOAP_VER_1_1);
  -	m_pCall->setOperation("echoBoolean", "http://soapinterop.org/");
  -	applyUserPreferences();
  -	m_pCall->addParameter((void*)&Value0, "inputBoolean", XSD_BOOLEAN);
  -	if (AXIS_SUCCESS == m_pCall->invoke())
  +	char* cFaultcode;
  +	char* cFaultstring;
  +	char* cFaultactor;
  +	char* cFaultdetail;
  +	try
  +	{
  +		if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL)) 
  +			return Ret;
  +		m_pCall->setTransportProperty(SOAPACTION_HEADER , "null");
  +		m_pCall->setSOAPVersion(SOAP_VER_1_1);
  +		m_pCall->setOperation("echoBoolean", "http://soapinterop.org/");
  +		applyUserPreferences();
  +		m_pCall->addParameter((void*)&Value0, "inputBoolean", XSD_BOOLEAN);
  +		if (AXIS_SUCCESS == m_pCall->invoke())
  +		{
  +			if(AXIS_SUCCESS == m_pCall->checkMessage("echoBooleanSoapOut", "http://soapinterop.org/"))
  +			{
  +				Ret = m_pCall->getElementAsBoolean("return", 0);
  +			}
  +		}
  +		m_pCall->unInitialize();
  +		return Ret;
  +	}
  +	catch(AxisException& e)
   	{
  -		if(AXIS_SUCCESS == m_pCall->checkMessage("echoBooleanResponse", "http://soapinterop.org/"))
  +		int iExceptionCode = e.getExceptionCode();
  +		if(AXISC_NODE_VALUE_MISMATCH_EXCEPTION != iExceptionCode)
   		{
  -			Ret = m_pCall->getElementAsBoolean("return", 0);
  +			throw;
   		}
  +		else if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://127.0.0.1:8080/" ))//Exception handling code goes here
  +		{
  +			cFaultcode = m_pCall->getElementAsString("faultcode", 0);
  +			cFaultstring = m_pCall->getElementAsString("faultstring", 0);
  +			cFaultactor = m_pCall->getElementAsString("faultactor", 0);
  +				  cFaultdetail = m_pCall->getElementAsString("faultdetail", 0);
  +				  throw AxisException(cFaultdetail);
  +		}
  +		else throw;
   	}
  -	m_pCall->unInitialize();
  -	return Ret;
   }
   
   
   /*
  - * This method wrap the service methodechoHexBinary
  + * This method wrap the service method echoHexBinary
    */
   xsd__hexBinary SimpleTestSoap::echoHexBinary(xsd__hexBinary Value0)
   {
   	xsd__hexBinary Ret;
  -	if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL)) return Ret;
  -	m_pCall->setTransportProperty(SOAPACTION_HEADER , "null");
  -	m_pCall->setSOAPVersion(SOAP_VER_1_1);
  -	m_pCall->setOperation("echoHexBinary", "http://soapinterop.org/");
  -	applyUserPreferences();
  -	m_pCall->addParameter((void*)&Value0, "inputHexBinary", XSD_HEXBINARY);
  -	if (AXIS_SUCCESS == m_pCall->invoke())
  +	char* cFaultcode;
  +	char* cFaultstring;
  +	char* cFaultactor;
  +	char* cFaultdetail;
  +	try
   	{
  -		if(AXIS_SUCCESS == m_pCall->checkMessage("echoHexBinaryResponse", "http://soapinterop.org/"))
  +		if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL)) 
  +			return Ret;
  +		m_pCall->setTransportProperty(SOAPACTION_HEADER , "null");
  +		m_pCall->setSOAPVersion(SOAP_VER_1_1);
  +		m_pCall->setOperation("echoHexBinary", "http://soapinterop.org/");
  +		applyUserPreferences();
  +		m_pCall->addParameter((void*)&Value0, "inputHexBinary", XSD_HEXBINARY);
  +		if (AXIS_SUCCESS == m_pCall->invoke())
   		{
  -			Ret = m_pCall->getElementAsHexBinary("return", 0);
  +			if(AXIS_SUCCESS == m_pCall->checkMessage("echoHexBinarySoapOut", "http://soapinterop.org/"))
  +			{
  +				Ret = m_pCall->getElementAsHexBinary("return", 0);
  +			}
   		}
  +		m_pCall->unInitialize();
  +		return Ret;
   	}
  -	m_pCall->unInitialize();
  -	return Ret;
  +	catch(AxisException& e)
  +	{
  +		int iExceptionCode = e.getExceptionCode();
  +		if(AXISC_NODE_VALUE_MISMATCH_EXCEPTION != iExceptionCode)
  +		{
  +			throw;
  +		}
  +		else if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://127.0.0.1:8080/" ))//Exception handling code goes here
  +		{
  +			cFaultcode = m_pCall->getElementAsString("faultcode", 0);
  +			cFaultstring = m_pCall->getElementAsString("faultstring", 0);
  +			cFaultactor = m_pCall->getElementAsString("faultactor", 0);
  +				  cFaultdetail = m_pCall->getElementAsString("faultdetail", 0);
  +				  throw AxisException(cFaultdetail);
  +		}
  +		else throw;
  +	}
  +}
  +
  +int SimpleTestSoap::getFaultDetail(char** ppcDetail)
  +{
  +	return m_pCall->getFaultDetail(ppcDetail);
   }
   
  -	int SimpleTestSoap::getStatus(){if ( m_pCall==NULL ) return AXIS_SUCCESS; else return m_pCall->getStatus();}
  
  
  
  1.2       +21 -5     ws-axis/c/tests/client/interop/round1/gen_src/SimpleTestSoap.h
  
  Index: SimpleTestSoap.h
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/client/interop/round1/gen_src/SimpleTestSoap.h,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SimpleTestSoap.h	8 Jun 2004 09:59:20 -0000	1.1
  +++ SimpleTestSoap.h	24 Jun 2004 07:32:18 -0000	1.2
  @@ -1,19 +1,35 @@
   /*
  - * This is the Client Stub Class genarated by the tool WSDL2Ws
  - * SimpleTestSoap.h: interface for the SimpleTestSoapclass.
  - *
  + * This file was auto-generated by the Axis C++ Web Service Generator (WSDL2Ws)
  + * This file contains Client Stub Class for remote web service 
    */
  +
   #if !defined(__SIMPLETESTSOAP_CLIENTSTUB_H__INCLUDED_)
   #define __SIMPLETESTSOAP_CLIENTSTUB_H__INCLUDED_
   
   #include <axis/client/Stub.h>
  +/*include Exception header files here*/
   #include "SOAPStruct_Array.h"
   #include "SOAPStruct.h"
   
  +
  +
  +
  +
  +
  +
  +
  +
  +
  +
  +
  +
  +
  +
   class SimpleTestSoap :public Stub
   {
   public:
  -	SimpleTestSoap(const char* pcEndpointUri);
  +	SimpleTestSoap(const char* pchEndpointUri, AXIS_PROTOCOL_TYPE eProtocol=APTHTTP);
  +	SimpleTestSoap();
   public:
   	virtual ~SimpleTestSoap();
   public: 
  @@ -31,7 +47,7 @@
   	xsd__decimal echoDecimal(xsd__decimal Value0);
   	xsd__boolean echoBoolean(xsd__boolean Value0);
   	xsd__hexBinary echoHexBinary(xsd__hexBinary Value0);
  -	int getStatus();
  +	int getFaultDetail(char** ppcDetail);
   };
   
   #endif /* !defined(__SIMPLETESTSOAP_CLIENTSTUB_H__INCLUDED_)*/
  
  
  
  1.2       +95 -32    ws-axis/c/tests/client/threadSafe/gen_src/InteropTestPortType.cpp
  
  Index: InteropTestPortType.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/client/threadSafe/gen_src/InteropTestPortType.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- InteropTestPortType.cpp	9 Jun 2004 10:57:34 -0000	1.1
  +++ InteropTestPortType.cpp	24 Jun 2004 07:32:18 -0000	1.2
  @@ -1,9 +1,6 @@
   /*
  - * This is the Client Stub implementation file genarated by WSDL2Ws tool.
  - * InteropTestPortType.cpp: implemtation for the InteropTestPortType.
  -* Default when no parameter passed. When thrown with no parameter 
  -more general InteropTestPortType  is assumed.
  - *
  + * This file was auto-generated by the Axis C++ Web Service Generator (WSDL2Ws)
  + * This file contains Client Stub implementation for remote web service.
    */
   
   #include "InteropTestPortType.h"
  @@ -12,19 +9,23 @@
   
   using namespace std;
   
  - bool CallBase::bInitialized;
  -CallFunctions CallBase::ms_VFtable;
  -extern int Axis_DeSerialize_SOAPStruct(SOAPStruct* param, IWrapperSoapDeSerializer *pDZ);
  + extern int Axis_DeSerialize_SOAPStruct(SOAPStruct* param, IWrapperSoapDeSerializer* pDZ);
   extern void* Axis_Create_SOAPStruct(SOAPStruct *Obj, bool bArray = false, int nSize=0);
   extern void Axis_Delete_SOAPStruct(SOAPStruct* param, bool bArray = false, int nSize=0);
   extern int Axis_Serialize_SOAPStruct(SOAPStruct* param, IWrapperSoapSerializer* pSZ, bool bArray = false);
   extern int Axis_GetSize_SOAPStruct();
   
  -InteropTestPortType::InteropTestPortType(const char* pchEndpointUri)
  -:Stub(pchEndpointUri)
  +InteropTestPortType::InteropTestPortType(const char* pchEndpointUri, AXIS_PROTOCOL_TYPE eProtocol)
  +:Stub(pchEndpointUri, eProtocol)
   {
   }
   
  +InteropTestPortType::InteropTestPortType()
  +:Stub(" ", APTHTTP)
  +{
  +	m_pCall->setEndpointURI("http://localhost/axis/InteropBase");
  +}
  +
   InteropTestPortType::~InteropTestPortType()
   {
   }
  @@ -63,7 +64,12 @@
   	}
   	catch(AxisException& e)
   	{
  -		if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://localhost/axis/InteropBase" ))//Exception handling code goes here
  +		int iExceptionCode = e.getExceptionCode();
  +		if(AXISC_NODE_VALUE_MISMATCH_EXCEPTION != iExceptionCode)
  +		{
  +			throw;
  +		}
  +		else if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://localhost/axis/InteropBase" ))//Exception handling code goes here
   		{
   			cFaultcode = m_pCall->getElementAsString("faultcode", 0);
   			cFaultstring = m_pCall->getElementAsString("faultstring", 0);
  @@ -107,7 +113,12 @@
   	}
   	catch(AxisException& e)
   	{
  -		if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://localhost/axis/InteropBase" ))//Exception handling code goes here
  +		int iExceptionCode = e.getExceptionCode();
  +		if(AXISC_NODE_VALUE_MISMATCH_EXCEPTION != iExceptionCode)
  +		{
  +			throw;
  +		}
  +		else if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://localhost/axis/InteropBase" ))//Exception handling code goes here
   		{
   			cFaultcode = m_pCall->getElementAsString("faultcode", 0);
   			cFaultstring = m_pCall->getElementAsString("faultstring", 0);
  @@ -151,7 +162,12 @@
   	}
   	catch(AxisException& e)
   	{
  -		if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://localhost/axis/InteropBase" ))//Exception handling code goes here
  +		int iExceptionCode = e.getExceptionCode();
  +		if(AXISC_NODE_VALUE_MISMATCH_EXCEPTION != iExceptionCode)
  +		{
  +			throw;
  +		}
  +		else if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://localhost/axis/InteropBase" ))//Exception handling code goes here
   		{
   			cFaultcode = m_pCall->getElementAsString("faultcode", 0);
   			cFaultstring = m_pCall->getElementAsString("faultstring", 0);
  @@ -195,7 +211,12 @@
   	}
   	catch(AxisException& e)
   	{
  -		if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://localhost/axis/InteropBase" ))//Exception handling code goes here
  +		int iExceptionCode = e.getExceptionCode();
  +		if(AXISC_NODE_VALUE_MISMATCH_EXCEPTION != iExceptionCode)
  +		{
  +			throw;
  +		}
  +		else if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://localhost/axis/InteropBase" ))//Exception handling code goes here
   		{
   			cFaultcode = m_pCall->getElementAsString("faultcode", 0);
   			cFaultstring = m_pCall->getElementAsString("faultstring", 0);
  @@ -239,7 +260,12 @@
   	}
   	catch(AxisException& e)
   	{
  -		if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://localhost/axis/InteropBase" ))//Exception handling code goes here
  +		int iExceptionCode = e.getExceptionCode();
  +		if(AXISC_NODE_VALUE_MISMATCH_EXCEPTION != iExceptionCode)
  +		{
  +			throw;
  +		}
  +		else if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://localhost/axis/InteropBase" ))//Exception handling code goes here
   		{
   			cFaultcode = m_pCall->getElementAsString("faultcode", 0);
   			cFaultstring = m_pCall->getElementAsString("faultstring", 0);
  @@ -283,7 +309,12 @@
   	}
   	catch(AxisException& e)
   	{
  -		if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://localhost/axis/InteropBase" ))//Exception handling code goes here
  +		int iExceptionCode = e.getExceptionCode();
  +		if(AXISC_NODE_VALUE_MISMATCH_EXCEPTION != iExceptionCode)
  +		{
  +			throw;
  +		}
  +		else if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://localhost/axis/InteropBase" ))//Exception handling code goes here
   		{
   			cFaultcode = m_pCall->getElementAsString("faultcode", 0);
   			cFaultstring = m_pCall->getElementAsString("faultstring", 0);
  @@ -327,7 +358,12 @@
   	}
   	catch(AxisException& e)
   	{
  -		if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://localhost/axis/InteropBase" ))//Exception handling code goes here
  +		int iExceptionCode = e.getExceptionCode();
  +		if(AXISC_NODE_VALUE_MISMATCH_EXCEPTION != iExceptionCode)
  +		{
  +			throw;
  +		}
  +		else if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://localhost/axis/InteropBase" ))//Exception handling code goes here
   		{
   			cFaultcode = m_pCall->getElementAsString("faultcode", 0);
   			cFaultstring = m_pCall->getElementAsString("faultstring", 0);
  @@ -371,7 +407,12 @@
   	}
   	catch(AxisException& e)
   	{
  -		if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://localhost/axis/InteropBase" ))//Exception handling code goes here
  +		int iExceptionCode = e.getExceptionCode();
  +		if(AXISC_NODE_VALUE_MISMATCH_EXCEPTION != iExceptionCode)
  +		{
  +			throw;
  +		}
  +		else if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://localhost/axis/InteropBase" ))//Exception handling code goes here
   		{
   			cFaultcode = m_pCall->getElementAsString("faultcode", 0);
   			cFaultstring = m_pCall->getElementAsString("faultstring", 0);
  @@ -412,7 +453,12 @@
   	}
   	catch(AxisException& e)
   	{
  -		if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://localhost/axis/InteropBase" ))//Exception handling code goes here
  +		int iExceptionCode = e.getExceptionCode();
  +		if(AXISC_NODE_VALUE_MISMATCH_EXCEPTION != iExceptionCode)
  +		{
  +			throw;
  +		}
  +		else if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://localhost/axis/InteropBase" ))//Exception handling code goes here
   		{
   			cFaultcode = m_pCall->getElementAsString("faultcode", 0);
   			cFaultstring = m_pCall->getElementAsString("faultstring", 0);
  @@ -456,7 +502,12 @@
   	}
   	catch(AxisException& e)
   	{
  -		if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://localhost/axis/InteropBase" ))//Exception handling code goes here
  +		int iExceptionCode = e.getExceptionCode();
  +		if(AXISC_NODE_VALUE_MISMATCH_EXCEPTION != iExceptionCode)
  +		{
  +			throw;
  +		}
  +		else if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://localhost/axis/InteropBase" ))//Exception handling code goes here
   		{
   			cFaultcode = m_pCall->getElementAsString("faultcode", 0);
   			cFaultstring = m_pCall->getElementAsString("faultstring", 0);
  @@ -500,7 +551,12 @@
   	}
   	catch(AxisException& e)
   	{
  -		if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://localhost/axis/InteropBase" ))//Exception handling code goes here
  +		int iExceptionCode = e.getExceptionCode();
  +		if(AXISC_NODE_VALUE_MISMATCH_EXCEPTION != iExceptionCode)
  +		{
  +			throw;
  +		}
  +		else if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://localhost/axis/InteropBase" ))//Exception handling code goes here
   		{
   			cFaultcode = m_pCall->getElementAsString("faultcode", 0);
   			cFaultstring = m_pCall->getElementAsString("faultstring", 0);
  @@ -544,7 +600,12 @@
   	}
   	catch(AxisException& e)
   	{
  -		if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://localhost/axis/InteropBase" ))//Exception handling code goes here
  +		int iExceptionCode = e.getExceptionCode();
  +		if(AXISC_NODE_VALUE_MISMATCH_EXCEPTION != iExceptionCode)
  +		{
  +			throw;
  +		}
  +		else if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://localhost/axis/InteropBase" ))//Exception handling code goes here
   		{
   			cFaultcode = m_pCall->getElementAsString("faultcode", 0);
   			cFaultstring = m_pCall->getElementAsString("faultstring", 0);
  @@ -588,7 +649,12 @@
   	}
   	catch(AxisException& e)
   	{
  -		if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://localhost/axis/InteropBase" ))//Exception handling code goes here
  +		int iExceptionCode = e.getExceptionCode();
  +		if(AXISC_NODE_VALUE_MISMATCH_EXCEPTION != iExceptionCode)
  +		{
  +			throw;
  +		}
  +		else if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://localhost/axis/InteropBase" ))//Exception handling code goes here
   		{
   			cFaultcode = m_pCall->getElementAsString("faultcode", 0);
   			cFaultstring = m_pCall->getElementAsString("faultstring", 0);
  @@ -632,7 +698,12 @@
   	}
   	catch(AxisException& e)
   	{
  -		if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://localhost/axis/InteropBase" ))//Exception handling code goes here
  +		int iExceptionCode = e.getExceptionCode();
  +		if(AXISC_NODE_VALUE_MISMATCH_EXCEPTION != iExceptionCode)
  +		{
  +			throw;
  +		}
  +		else if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://localhost/axis/InteropBase" ))//Exception handling code goes here
   		{
   			cFaultcode = m_pCall->getElementAsString("faultcode", 0);
   			cFaultstring = m_pCall->getElementAsString("faultstring", 0);
  @@ -642,14 +713,6 @@
   		}
   		else throw;
   	}
  -}
  -
  -int InteropTestPortType::getStatus()
  -{
  -	if ( m_pCall==NULL ) 
  -		return AXIS_SUCCESS; 
  -	else 
  -		return m_pCall->getStatus();
   }
   
   int InteropTestPortType::getFaultDetail(char** ppcDetail)
  
  
  
  1.2       +19 -5     ws-axis/c/tests/client/threadSafe/gen_src/InteropTestPortType.h
  
  Index: InteropTestPortType.h
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/client/threadSafe/gen_src/InteropTestPortType.h,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- InteropTestPortType.h	9 Jun 2004 10:57:34 -0000	1.1
  +++ InteropTestPortType.h	24 Jun 2004 07:32:18 -0000	1.2
  @@ -1,8 +1,8 @@
   /*
  - * This is the Client Stub Class genarated by the tool WSDL2Ws
  - * InteropTestPortType.h: interface for the InteropTestPortTypeclass.
  - *
  + * This file was auto-generated by the Axis C++ Web Service Generator (WSDL2Ws)
  + * This file contains Client Stub Class for remote web service 
    */
  +
   #if !defined(__INTEROPTESTPORTTYPE_CLIENTSTUB_H__INCLUDED_)
   #define __INTEROPTESTPORTTYPE_CLIENTSTUB_H__INCLUDED_
   
  @@ -11,10 +11,25 @@
   #include "SOAPStruct_Array.h"
   #include "SOAPStruct.h"
   
  +
  +
  +
  +
  +
  +
  +
  +
  +
  +
  +
  +
  +
  +
   class InteropTestPortType :public Stub
   {
   public:
  -	InteropTestPortType(const char* pchEndpointUri);
  +	InteropTestPortType(const char* pchEndpointUri, AXIS_PROTOCOL_TYPE eProtocol=APTHTTP);
  +	InteropTestPortType();
   public:
   	virtual ~InteropTestPortType();
   public: 
  @@ -32,7 +47,6 @@
   	xsd__hexBinary echoHexBinary(xsd__hexBinary Value0);
   	xsd__decimal echoDecimal(xsd__decimal Value0);
   	xsd__boolean echoBoolean(xsd__boolean Value0);
  -	int getStatus();
   	int getFaultDetail(char** ppcDetail);
   };
   
  
  
  
  1.2       +3 -4      ws-axis/c/tests/client/threadSafe/gen_src/SOAPStruct.cpp
  
  Index: SOAPStruct.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/client/threadSafe/gen_src/SOAPStruct.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SOAPStruct.cpp	9 Jun 2004 10:57:34 -0000	1.1
  +++ SOAPStruct.cpp	24 Jun 2004 07:32:18 -0000	1.2
  @@ -1,7 +1,6 @@
   /*
  - *This file is automatically generated by the Axis C++ Wrapper Class Generator
  - *Web service wrapper class's implementation generated by Axis WCG
  - *Parameters and wrapper methos to manipulate SOAPStruct
  + * This file was auto-generated by the Axis C++ Web Service Generator (WSDL2Ws)
  + * This file contains functions to manipulate complex type SOAPStruct
    */
   
   #include <malloc.h>
  @@ -36,7 +35,7 @@
   /*
    * This static method deserialize a SOAPStruct type of object
    */
  -int Axis_DeSerialize_SOAPStruct(SOAPStruct* param, IWrapperSoapDeSerializer *pIWSDZ)
  +int Axis_DeSerialize_SOAPStruct(SOAPStruct* param, IWrapperSoapDeSerializer* pIWSDZ)
   {
   	param->varString = pIWSDZ->getElementAsString("varString",0);
   	param->varInt = pIWSDZ->getElementAsInt("varInt",0);
  
  
  
  1.2       +2 -3      ws-axis/c/tests/client/threadSafe/gen_src/SOAPStruct.h
  
  Index: SOAPStruct.h
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/client/threadSafe/gen_src/SOAPStruct.h,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SOAPStruct.h	9 Jun 2004 10:57:34 -0000	1.1
  +++ SOAPStruct.h	24 Jun 2004 07:32:18 -0000	1.2
  @@ -1,7 +1,6 @@
   /*
  - *This file is automatically generated by the Axis C++ Wrapper Class Generator
  - *Web service wrapper class's implementation generated by Axis WCG
  - *Parameters and wrapper methos to manipulate SOAPStruct
  + * This file was auto-generated by the Axis C++ Web Service Generator (WSDL2Ws)
  + * This file contains functions to manipulate complex type SOAPStruct
    */
   
   #if !defined(__SOAPSTRUCT_PARAM_H__INCLUDED_)
  
  
  
  1.2       +2 -3      ws-axis/c/tests/client/threadSafe/gen_src/SOAPStruct_Array.h
  
  Index: SOAPStruct_Array.h
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/client/threadSafe/gen_src/SOAPStruct_Array.h,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SOAPStruct_Array.h	9 Jun 2004 10:57:34 -0000	1.1
  +++ SOAPStruct_Array.h	24 Jun 2004 07:32:18 -0000	1.2
  @@ -1,7 +1,6 @@
   /*
  - *This file is automatically generated by the Axis C++ Wrapper Class Generator
  - *Web service wrapper class's implementation generated by Axis WCG
  - *Parameters and wrapper methos to manipulate SOAPStruct_Array
  + * This file was auto-generated by the Axis C++ Web Service Generator (WSDL2Ws)
  + * This file contains functions to manipulate complex type SOAPStruct_Array
    */
   
   #if !defined(__SOAPSTRUCT_ARRAY_ARRAY_H__INCLUDED_)
  
  
  

Mime
View raw message