axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ros...@apache.org
Subject cvs commit: ws-axis/c/tests/client/httpHeader/test8/rpc Makefile.am TestClient.cpp
Date Wed, 07 Jul 2004 09:00:22 GMT
roshan      2004/07/07 02:00:22

  Modified:    c/tests/client/httpHeader/gen_src/rpc
                        InteropTestPortType.cpp
               c/tests/client/httpHeader/test1/rpc Makefile.am
                        TestClient.cpp
               c/tests/client/httpHeader/test2/rpc Makefile.am
                        TestClient.cpp
               c/tests/client/httpHeader/test3/rpc Makefile.am
                        TestClient.cpp
               c/tests/client/httpHeader/test4/rpc Makefile.am
                        TestClient.cpp
               c/tests/client/httpHeader/test5/rpc Makefile.am
                        TestClient.cpp
               c/tests/client/httpHeader/test7/rpc Makefile.am
                        TestClient.cpp
               c/tests/client/httpHeader/test8/rpc Makefile.am
                        TestClient.cpp
  Added:       c/tests/client/httpHeader/gen_src/rpc
                        AxisClientException.cpp AxisClientException.h
  Log:
  changes done to reflect the latest Exception Handling changes
  
  Revision  Changes    Path
  1.2       +171 -252  ws-axis/c/tests/client/httpHeader/gen_src/rpc/InteropTestPortType.cpp
  
  Index: InteropTestPortType.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/client/httpHeader/gen_src/rpc/InteropTestPortType.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- InteropTestPortType.cpp	26 Jun 2004 14:08:18 -0000	1.1
  +++ InteropTestPortType.cpp	7 Jul 2004 09:00:19 -0000	1.2
  @@ -6,6 +6,9 @@
   #include "InteropTestPortType.h"
   
   #include <axis/server/AxisWrapperAPI.h>
  +#include <axis/AxisGenException.h>
  +#include <axis/ISoapFault.h>
  +#include "AxisClientException.h"
   
   using namespace std;
   
  @@ -39,10 +42,6 @@
   xsd__string InteropTestPortType::echoString(xsd__string Value0)
   {
   	xsd__string Ret;
  -	char* cFaultcode;
  -	char* cFaultstring;
  -	char* cFaultactor;
  -	char* cFaultdetail;
   	try
   	{
   		if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL)) 
  @@ -64,20 +63,18 @@
   	}
   	catch(AxisGenException& e)
   	{
  -		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);
  -			cFaultactor = m_pCall->getElementAsString("faultactor", 0);
  -				  cFaultdetail = m_pCall->getElementAsString("faultdetail", 0);
  -				  throw AxisGenException(cFaultdetail);
  -		}
  -		else throw;
  +            int iExceptionCode = e.getExceptionCode();
  +                if(AXISC_NODE_VALUE_MISMATCH_EXCEPTION != iExceptionCode)
  +                {
  +                        throw;
  +                }
  +                ISoapFault* pSoapFault = (ISoapFault*) m_pCall->checkFault("Fault","http://127.0.0.1:8080/"
);
  +                if(pSoapFault)
  +                {
  +                        m_pCall->unInitialize();
  +                        throw AxisClientException(pSoapFault);
  +                }
  +                else throw;
   	}
   }
   
  @@ -88,10 +85,6 @@
   xsd__string_Array InteropTestPortType::echoStringArray(xsd__string_Array Value0)
   {
   	xsd__string_Array RetArray = {NULL, 0};
  -	char* cFaultcode;
  -	char* cFaultstring;
  -	char* cFaultactor;
  -	char* cFaultdetail;
   	try
   	{
   		if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL)) 
  @@ -113,20 +106,18 @@
   	}
   	catch(AxisGenException& e)
   	{
  -		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);
  -			cFaultactor = m_pCall->getElementAsString("faultactor", 0);
  -				  cFaultdetail = m_pCall->getElementAsString("faultdetail", 0);
  -				  throw AxisGenException(cFaultdetail);
  -		}
  -		else throw;
  +            int iExceptionCode = e.getExceptionCode();
  +                if(AXISC_NODE_VALUE_MISMATCH_EXCEPTION != iExceptionCode)
  +                {
  +                        throw;
  +                }
  +                ISoapFault* pSoapFault = (ISoapFault*) m_pCall->checkFault("Fault","http://127.0.0.1:8080/"
);
  +                if(pSoapFault)
  +                {
  +                        m_pCall->unInitialize();
  +                        throw AxisClientException(pSoapFault);
  +                }
  +                else throw;
   	}
   }
   
  @@ -137,10 +128,6 @@
   int InteropTestPortType::echoInteger(int Value0)
   {
   	int Ret;
  -	char* cFaultcode;
  -	char* cFaultstring;
  -	char* cFaultactor;
  -	char* cFaultdetail;
   	try
   	{
   		if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL)) 
  @@ -162,20 +149,18 @@
   	}
   	catch(AxisGenException& e)
   	{
  -		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);
  -			cFaultactor = m_pCall->getElementAsString("faultactor", 0);
  -				  cFaultdetail = m_pCall->getElementAsString("faultdetail", 0);
  -				  throw AxisGenException(cFaultdetail);
  -		}
  -		else throw;
  +            int iExceptionCode = e.getExceptionCode();
  +                if(AXISC_NODE_VALUE_MISMATCH_EXCEPTION != iExceptionCode)
  +                {
  +                        throw;
  +                }
  +                ISoapFault* pSoapFault = (ISoapFault*) m_pCall->checkFault("Fault","http://127.0.0.1:8080/"
);
  +                if(pSoapFault)
  +                {
  +                        m_pCall->unInitialize();
  +                        throw AxisClientException(pSoapFault);
  +                }
  +                else throw;
   	}
   }
   
  @@ -186,10 +171,6 @@
   xsd__int_Array InteropTestPortType::echoIntegerArray(xsd__int_Array Value0)
   {
   	xsd__int_Array RetArray = {NULL, 0};
  -	char* cFaultcode;
  -	char* cFaultstring;
  -	char* cFaultactor;
  -	char* cFaultdetail;
   	try
   	{
   		if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL)) 
  @@ -211,20 +192,18 @@
   	}
   	catch(AxisGenException& e)
   	{
  -		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);
  -			cFaultactor = m_pCall->getElementAsString("faultactor", 0);
  -				  cFaultdetail = m_pCall->getElementAsString("faultdetail", 0);
  -				  throw AxisGenException(cFaultdetail);
  -		}
  -		else throw;
  +            int iExceptionCode = e.getExceptionCode();
  +                if(AXISC_NODE_VALUE_MISMATCH_EXCEPTION != iExceptionCode)
  +                {
  +                        throw;
  +                }
  +                ISoapFault* pSoapFault = (ISoapFault*) m_pCall->checkFault("Fault","http://127.0.0.1:8080/"
);
  +                if(pSoapFault)
  +                {
  +                        m_pCall->unInitialize();
  +                        throw AxisClientException(pSoapFault);
  +                }
  +                else throw;
   	}
   }
   
  @@ -235,10 +214,6 @@
   float InteropTestPortType::echoFloat(float Value0)
   {
   	float Ret;
  -	char* cFaultcode;
  -	char* cFaultstring;
  -	char* cFaultactor;
  -	char* cFaultdetail;
   	try
   	{
   		if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL)) 
  @@ -260,20 +235,18 @@
   	}
   	catch(AxisGenException& e)
   	{
  -		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);
  -			cFaultactor = m_pCall->getElementAsString("faultactor", 0);
  -				  cFaultdetail = m_pCall->getElementAsString("faultdetail", 0);
  -				  throw AxisGenException(cFaultdetail);
  -		}
  -		else throw;
  +            int iExceptionCode = e.getExceptionCode();
  +                if(AXISC_NODE_VALUE_MISMATCH_EXCEPTION != iExceptionCode)
  +                {
  +                        throw;
  +                }
  +                ISoapFault* pSoapFault = (ISoapFault*) m_pCall->checkFault("Fault","http://127.0.0.1:8080/"
);
  +                if(pSoapFault)
  +                {
  +                        m_pCall->unInitialize();
  +                        throw AxisClientException(pSoapFault);
  +                }
  +                else throw;
   	}
   }
   
  @@ -284,10 +257,6 @@
   xsd__float_Array InteropTestPortType::echoFloatArray(xsd__float_Array Value0)
   {
   	xsd__float_Array RetArray = {NULL, 0};
  -	char* cFaultcode;
  -	char* cFaultstring;
  -	char* cFaultactor;
  -	char* cFaultdetail;
   	try
   	{
   		if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL)) 
  @@ -309,20 +278,18 @@
   	}
   	catch(AxisGenException& e)
   	{
  -		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);
  -			cFaultactor = m_pCall->getElementAsString("faultactor", 0);
  -				  cFaultdetail = m_pCall->getElementAsString("faultdetail", 0);
  -				  throw AxisGenException(cFaultdetail);
  -		}
  -		else throw;
  +            int iExceptionCode = e.getExceptionCode();
  +                if(AXISC_NODE_VALUE_MISMATCH_EXCEPTION != iExceptionCode)
  +                {
  +                        throw;
  +                }
  +                ISoapFault* pSoapFault = (ISoapFault*) m_pCall->checkFault("Fault","http://127.0.0.1:8080/"
);
  +                if(pSoapFault)
  +                {
  +                        m_pCall->unInitialize();
  +                        throw AxisClientException(pSoapFault);
  +                }
  +                else throw;
   	}
   }
   
  @@ -333,10 +300,6 @@
   SOAPStruct* InteropTestPortType::echoStruct(SOAPStruct* Value0)
   {
   	SOAPStruct* pReturn = NULL;
  -	char* cFaultcode;
  -	char* cFaultstring;
  -	char* cFaultactor;
  -	char* cFaultdetail;
   	try
   	{
   		if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL)) 
  @@ -358,20 +321,18 @@
   	}
   	catch(AxisGenException& e)
   	{
  -		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);
  -			cFaultactor = m_pCall->getElementAsString("faultactor", 0);
  -				  cFaultdetail = m_pCall->getElementAsString("faultdetail", 0);
  -				  throw AxisGenException(cFaultdetail);
  -		}
  -		else throw;
  +            int iExceptionCode = e.getExceptionCode();
  +                if(AXISC_NODE_VALUE_MISMATCH_EXCEPTION != iExceptionCode)
  +                {
  +                        throw;
  +                }
  +                ISoapFault* pSoapFault = (ISoapFault*) m_pCall->checkFault("Fault","http://127.0.0.1:8080/"
);
  +                if(pSoapFault)
  +                {
  +                        m_pCall->unInitialize();
  +                        throw AxisClientException(pSoapFault);
  +                }
  +                else throw;
   	}
   }
   
  @@ -382,10 +343,6 @@
   SOAPStruct_Array InteropTestPortType::echoStructArray(SOAPStruct_Array Value0)
   {
   	SOAPStruct_Array RetArray = {NULL, 0};
  -	char* cFaultcode;
  -	char* cFaultstring;
  -	char* cFaultactor;
  -	char* cFaultdetail;
   	try
   	{
   		if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL)) 
  @@ -407,20 +364,18 @@
   	}
   	catch(AxisGenException& e)
   	{
  -		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);
  -			cFaultactor = m_pCall->getElementAsString("faultactor", 0);
  -				  cFaultdetail = m_pCall->getElementAsString("faultdetail", 0);
  -				  throw AxisGenException(cFaultdetail);
  -		}
  -		else throw;
  +            int iExceptionCode = e.getExceptionCode();
  +                if(AXISC_NODE_VALUE_MISMATCH_EXCEPTION != iExceptionCode)
  +                {
  +                        throw;
  +                }
  +                ISoapFault* pSoapFault = (ISoapFault*) m_pCall->checkFault("Fault","http://127.0.0.1:8080/"
);
  +                if(pSoapFault)
  +                {
  +                        m_pCall->unInitialize();
  +                        throw AxisClientException(pSoapFault);
  +                }
  +                else throw;
   	}
   }
   
  @@ -430,10 +385,6 @@
    */
   void InteropTestPortType::echoVoid()
   {
  -	char* cFaultcode;
  -	char* cFaultstring;
  -	char* cFaultactor;
  -	char* cFaultdetail;
   	try
   	{
   		if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL)) 
  @@ -453,20 +404,18 @@
   	}
   	catch(AxisGenException& e)
   	{
  -		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);
  -			cFaultactor = m_pCall->getElementAsString("faultactor", 0);
  -				  cFaultdetail = m_pCall->getElementAsString("faultdetail", 0);
  -				  throw AxisGenException(cFaultdetail);
  -		}
  -		else throw;
  +            int iExceptionCode = e.getExceptionCode();
  +                if(AXISC_NODE_VALUE_MISMATCH_EXCEPTION != iExceptionCode)
  +                {
  +                        throw;
  +                }
  +                ISoapFault* pSoapFault = (ISoapFault*) m_pCall->checkFault("Fault","http://127.0.0.1:8080/"
);
  +                if(pSoapFault)
  +                {
  +                        m_pCall->unInitialize();
  +                        throw AxisClientException(pSoapFault);
  +                }
  +                else throw;
   	}
   }
   
  @@ -477,10 +426,6 @@
   xsd__base64Binary InteropTestPortType::echoBase64(xsd__base64Binary Value0)
   {
   	xsd__base64Binary Ret;
  -	char* cFaultcode;
  -	char* cFaultstring;
  -	char* cFaultactor;
  -	char* cFaultdetail;
   	try
   	{
   		if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL)) 
  @@ -502,20 +447,18 @@
   	}
   	catch(AxisGenException& e)
   	{
  -		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);
  -			cFaultactor = m_pCall->getElementAsString("faultactor", 0);
  -				  cFaultdetail = m_pCall->getElementAsString("faultdetail", 0);
  -				  throw AxisGenException(cFaultdetail);
  -		}
  -		else throw;
  +            int iExceptionCode = e.getExceptionCode();
  +                if(AXISC_NODE_VALUE_MISMATCH_EXCEPTION != iExceptionCode)
  +                {
  +                        throw;
  +                }
  +                ISoapFault* pSoapFault = (ISoapFault*) m_pCall->checkFault("Fault","http://127.0.0.1:8080/"
);
  +                if(pSoapFault)
  +                {
  +                        m_pCall->unInitialize();
  +                        throw AxisClientException(pSoapFault);
  +                }
  +                else throw;
   	}
   }
   
  @@ -526,10 +469,6 @@
   xsd__dateTime InteropTestPortType::echoDate(xsd__dateTime Value0)
   {
   	xsd__dateTime Ret;
  -	char* cFaultcode;
  -	char* cFaultstring;
  -	char* cFaultactor;
  -	char* cFaultdetail;
   	try
   	{
   		if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL)) 
  @@ -551,20 +490,18 @@
   	}
   	catch(AxisGenException& e)
   	{
  -		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);
  -			cFaultactor = m_pCall->getElementAsString("faultactor", 0);
  -				  cFaultdetail = m_pCall->getElementAsString("faultdetail", 0);
  -				  throw AxisGenException(cFaultdetail);
  -		}
  -		else throw;
  +            int iExceptionCode = e.getExceptionCode();
  +                if(AXISC_NODE_VALUE_MISMATCH_EXCEPTION != iExceptionCode)
  +                {
  +                        throw;
  +                }
  +                ISoapFault* pSoapFault = (ISoapFault*) m_pCall->checkFault("Fault","http://127.0.0.1:8080/"
);
  +                if(pSoapFault)
  +                {
  +                        m_pCall->unInitialize();
  +                        throw AxisClientException(pSoapFault);
  +                }
  +                else throw;
   	}
   }
   
  @@ -575,10 +512,6 @@
   xsd__hexBinary InteropTestPortType::echoHexBinary(xsd__hexBinary Value0)
   {
   	xsd__hexBinary Ret;
  -	char* cFaultcode;
  -	char* cFaultstring;
  -	char* cFaultactor;
  -	char* cFaultdetail;
   	try
   	{
   		if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL)) 
  @@ -600,20 +533,18 @@
   	}
   	catch(AxisGenException& e)
   	{
  -		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);
  -			cFaultactor = m_pCall->getElementAsString("faultactor", 0);
  -				  cFaultdetail = m_pCall->getElementAsString("faultdetail", 0);
  -				  throw AxisGenException(cFaultdetail);
  -		}
  -		else throw;
  +            int iExceptionCode = e.getExceptionCode();
  +                if(AXISC_NODE_VALUE_MISMATCH_EXCEPTION != iExceptionCode)
  +                {
  +                        throw;
  +                }
  +                ISoapFault* pSoapFault = (ISoapFault*) m_pCall->checkFault("Fault","http://127.0.0.1:8080/"
);
  +                if(pSoapFault)
  +                {
  +                        m_pCall->unInitialize();
  +                        throw AxisClientException(pSoapFault);
  +                }
  +                else throw;
   	}
   }
   
  @@ -624,10 +555,6 @@
   xsd__decimal InteropTestPortType::echoDecimal(xsd__decimal Value0)
   {
   	xsd__decimal Ret;
  -	char* cFaultcode;
  -	char* cFaultstring;
  -	char* cFaultactor;
  -	char* cFaultdetail;
   	try
   	{
   		if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL)) 
  @@ -649,20 +576,18 @@
   	}
   	catch(AxisGenException& e)
   	{
  -		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);
  -			cFaultactor = m_pCall->getElementAsString("faultactor", 0);
  -				  cFaultdetail = m_pCall->getElementAsString("faultdetail", 0);
  -				  throw AxisGenException(cFaultdetail);
  -		}
  -		else throw;
  +            int iExceptionCode = e.getExceptionCode();
  +                if(AXISC_NODE_VALUE_MISMATCH_EXCEPTION != iExceptionCode)
  +                {
  +                        throw;
  +                }
  +                ISoapFault* pSoapFault = (ISoapFault*) m_pCall->checkFault("Fault","http://127.0.0.1:8080/"
);
  +                if(pSoapFault)
  +                {
  +                        m_pCall->unInitialize();
  +                        throw AxisClientException(pSoapFault);
  +                }
  +                else throw;
   	}
   }
   
  @@ -673,10 +598,6 @@
   xsd__boolean InteropTestPortType::echoBoolean(xsd__boolean Value0)
   {
   	xsd__boolean Ret;
  -	char* cFaultcode;
  -	char* cFaultstring;
  -	char* cFaultactor;
  -	char* cFaultdetail;
   	try
   	{
   		if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL)) 
  @@ -698,20 +619,18 @@
   	}
   	catch(AxisGenException& e)
   	{
  -		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);
  -			cFaultactor = m_pCall->getElementAsString("faultactor", 0);
  -				  cFaultdetail = m_pCall->getElementAsString("faultdetail", 0);
  -				  throw AxisGenException(cFaultdetail);
  -		}
  -		else throw;
  +            int iExceptionCode = e.getExceptionCode();
  +                if(AXISC_NODE_VALUE_MISMATCH_EXCEPTION != iExceptionCode)
  +                {
  +                        throw;
  +                }
  +                ISoapFault* pSoapFault = (ISoapFault*) m_pCall->checkFault("Fault","http://127.0.0.1:8080/"
);
  +                if(pSoapFault)
  +                {
  +                        m_pCall->unInitialize();
  +                        throw AxisClientException(pSoapFault);
  +                }
  +                else throw;
   	}
   }
   
  
  
  
  1.2       +109 -0    ws-axis/c/tests/client/httpHeader/gen_src/rpc/AxisClientException.cpp
  
  
  
  
  1.2       +38 -0     ws-axis/c/tests/client/httpHeader/gen_src/rpc/AxisClientException.h
  
  
  
  
  1.2       +1 -1      ws-axis/c/tests/client/httpHeader/test1/rpc/Makefile.am
  
  Index: Makefile.am
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/client/httpHeader/test1/rpc/Makefile.am,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Makefile.am	26 Jun 2004 14:08:18 -0000	1.1
  +++ Makefile.am	7 Jul 2004 09:00:19 -0000	1.2
  @@ -1,7 +1,7 @@
   bin_PROGRAMS = httpHeaderTest1RPC
   SUBDIRS =
   AM_CPPFLAGS = $(CPPFLAGS)
  -httpHeaderTest1RPC_SOURCES = TestClient.cpp  ../../gen_src/rpc/InteropTestPortType.cpp
../../gen_src/rpc/SOAPStruct.cpp 
  +httpHeaderTest1RPC_SOURCES = TestClient.cpp  ../../gen_src/rpc/InteropTestPortType.cpp
../../gen_src/rpc/SOAPStruct.cpp ../../gen_src/rpc/AxisClientException.cpp 
   
   httpHeaderTest1RPC_LDADD   =  $(LDFLAGS) -laxiscpp_client
   INCLUDES = -I$(AXISCPP_HOME)/include
  
  
  
  1.3       +2 -0      ws-axis/c/tests/client/httpHeader/test1/rpc/TestClient.cpp
  
  Index: TestClient.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/client/httpHeader/test1/rpc/TestClient.cpp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- TestClient.cpp	28 Jun 2004 11:42:37 -0000	1.2
  +++ TestClient.cpp	7 Jul 2004 09:00:19 -0000	1.3
  @@ -27,6 +27,8 @@
   using namespace std;
   
   #include "../../gen_src/rpc/InteropTestPortType.h"
  +#include <axis/server/AxisException.h>
  +#include <stdio.h>
   
   #define ARRAYSIZE 2
   
  
  
  
  1.2       +1 -1      ws-axis/c/tests/client/httpHeader/test2/rpc/Makefile.am
  
  Index: Makefile.am
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/client/httpHeader/test2/rpc/Makefile.am,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Makefile.am	26 Jun 2004 14:08:18 -0000	1.1
  +++ Makefile.am	7 Jul 2004 09:00:19 -0000	1.2
  @@ -1,7 +1,7 @@
   bin_PROGRAMS = httpHeaderTest2RPC
   SUBDIRS =
   AM_CPPFLAGS = $(CPPFLAGS)
  -httpHeaderTest2RPC_SOURCES = TestClient.cpp  ../../gen_src/rpc/InteropTestPortType.cpp
../../gen_src/rpc/SOAPStruct.cpp 
  +httpHeaderTest2RPC_SOURCES = TestClient.cpp  ../../gen_src/rpc/InteropTestPortType.cpp
../../gen_src/rpc/SOAPStruct.cpp ../../gen_src/rpc/AxisClientException.cpp
   
   httpHeaderTest2RPC_LDADD   =  $(LDFLAGS) -laxiscpp_client
   INCLUDES = -I$(AXISCPP_HOME)/include
  
  
  
  1.2       +1 -0      ws-axis/c/tests/client/httpHeader/test2/rpc/TestClient.cpp
  
  Index: TestClient.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/client/httpHeader/test2/rpc/TestClient.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TestClient.cpp	26 Jun 2004 14:08:18 -0000	1.1
  +++ TestClient.cpp	7 Jul 2004 09:00:19 -0000	1.2
  @@ -27,6 +27,7 @@
   using namespace std;
   
   #include "../../gen_src/rpc/InteropTestPortType.h"
  +#include <axis/server/AxisException.h>
   
   #define ARRAYSIZE 2
   
  
  
  
  1.2       +1 -1      ws-axis/c/tests/client/httpHeader/test3/rpc/Makefile.am
  
  Index: Makefile.am
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/client/httpHeader/test3/rpc/Makefile.am,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Makefile.am	26 Jun 2004 14:08:18 -0000	1.1
  +++ Makefile.am	7 Jul 2004 09:00:19 -0000	1.2
  @@ -1,7 +1,7 @@
   bin_PROGRAMS = httpHeaderTest3RPC
   SUBDIRS =
   AM_CPPFLAGS = $(CPPFLAGS)
  -httpHeaderTest3RPC_SOURCES = TestClient.cpp  ../../gen_src/rpc/InteropTestPortType.cpp
../../gen_src/rpc/SOAPStruct.cpp 
  +httpHeaderTest3RPC_SOURCES = TestClient.cpp  ../../gen_src/rpc/InteropTestPortType.cpp
../../gen_src/rpc/SOAPStruct.cpp ../../gen_src/rpc/AxisClientException.cpp 
   
   httpHeaderTest3RPC_LDADD   =  $(LDFLAGS) -laxiscpp_client
   INCLUDES = -I$(AXISCPP_HOME)/include
  
  
  
  1.2       +1 -0      ws-axis/c/tests/client/httpHeader/test3/rpc/TestClient.cpp
  
  Index: TestClient.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/client/httpHeader/test3/rpc/TestClient.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TestClient.cpp	26 Jun 2004 14:08:18 -0000	1.1
  +++ TestClient.cpp	7 Jul 2004 09:00:19 -0000	1.2
  @@ -27,6 +27,7 @@
   using namespace std;
   
   #include "../../gen_src/rpc/InteropTestPortType.h"
  +#include <axis/server/AxisException.h>
   
   #define ARRAYSIZE 2
   
  
  
  
  1.2       +1 -1      ws-axis/c/tests/client/httpHeader/test4/rpc/Makefile.am
  
  Index: Makefile.am
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/client/httpHeader/test4/rpc/Makefile.am,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Makefile.am	28 Jun 2004 05:55:55 -0000	1.1
  +++ Makefile.am	7 Jul 2004 09:00:21 -0000	1.2
  @@ -1,7 +1,7 @@
   bin_PROGRAMS = httpHeaderTest4RPC
   SUBDIRS =
   AM_CPPFLAGS = $(CPPFLAGS)
  -httpHeaderTest4RPC_SOURCES = TestClient.cpp  ../../gen_src/rpc/InteropTestPortType.cpp
../../gen_src/rpc/SOAPStruct.cpp 
  +httpHeaderTest4RPC_SOURCES = TestClient.cpp  ../../gen_src/rpc/InteropTestPortType.cpp
../../gen_src/rpc/SOAPStruct.cpp ../../gen_src/rpc/AxisClientException.cpp 
   
   httpHeaderTest4RPC_LDADD   =  $(LDFLAGS) -laxiscpp_client
   INCLUDES = -I$(AXISCPP_HOME)/include
  
  
  
  1.2       +1 -0      ws-axis/c/tests/client/httpHeader/test4/rpc/TestClient.cpp
  
  Index: TestClient.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/client/httpHeader/test4/rpc/TestClient.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TestClient.cpp	28 Jun 2004 05:55:55 -0000	1.1
  +++ TestClient.cpp	7 Jul 2004 09:00:21 -0000	1.2
  @@ -27,6 +27,7 @@
   using namespace std;
   
   #include "../../gen_src/rpc/InteropTestPortType.h"
  +#include <axis/server/AxisException.h>
   
   #define ARRAYSIZE 2
   
  
  
  
  1.2       +1 -1      ws-axis/c/tests/client/httpHeader/test5/rpc/Makefile.am
  
  Index: Makefile.am
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/client/httpHeader/test5/rpc/Makefile.am,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Makefile.am	28 Jun 2004 05:55:55 -0000	1.1
  +++ Makefile.am	7 Jul 2004 09:00:21 -0000	1.2
  @@ -1,7 +1,7 @@
   bin_PROGRAMS = httpHeaderTest5RPC
   SUBDIRS =
   AM_CPPFLAGS = $(CPPFLAGS)
  -httpHeaderTest5RPC_SOURCES = TestClient.cpp  ../../gen_src/rpc/InteropTestPortType.cpp
../../gen_src/rpc/SOAPStruct.cpp 
  +httpHeaderTest5RPC_SOURCES = TestClient.cpp  ../../gen_src/rpc/InteropTestPortType.cpp
../../gen_src/rpc/SOAPStruct.cpp ../../gen_src/rpc/AxisClientException.cpp
   
   httpHeaderTest5RPC_LDADD   =  $(LDFLAGS) -laxiscpp_client
   INCLUDES = -I$(AXISCPP_HOME)/include
  
  
  
  1.2       +1 -0      ws-axis/c/tests/client/httpHeader/test5/rpc/TestClient.cpp
  
  Index: TestClient.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/client/httpHeader/test5/rpc/TestClient.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TestClient.cpp	28 Jun 2004 05:55:55 -0000	1.1
  +++ TestClient.cpp	7 Jul 2004 09:00:21 -0000	1.2
  @@ -27,6 +27,7 @@
   using namespace std;
   
   #include "../../gen_src/rpc/InteropTestPortType.h"
  +#include <axis/server/AxisException.h>
   
   #define ARRAYSIZE 2
   
  
  
  
  1.2       +1 -1      ws-axis/c/tests/client/httpHeader/test7/rpc/Makefile.am
  
  Index: Makefile.am
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/client/httpHeader/test7/rpc/Makefile.am,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Makefile.am	28 Jun 2004 05:55:55 -0000	1.1
  +++ Makefile.am	7 Jul 2004 09:00:21 -0000	1.2
  @@ -1,7 +1,7 @@
   bin_PROGRAMS = httpHeaderTest7RPC
   SUBDIRS =
   AM_CPPFLAGS = $(CPPFLAGS)
  -httpHeaderTest7RPC_SOURCES = TestClient.cpp  ../../gen_src/rpc/InteropTestPortType.cpp
../../gen_src/rpc/SOAPStruct.cpp 
  +httpHeaderTest7RPC_SOURCES = TestClient.cpp  ../../gen_src/rpc/InteropTestPortType.cpp
../../gen_src/rpc/SOAPStruct.cpp ../../gen_src/rpc/AxisClientException.cpp 
   
   httpHeaderTest7RPC_LDADD   =  $(LDFLAGS) -laxiscpp_client
   INCLUDES = -I$(AXISCPP_HOME)/include
  
  
  
  1.2       +1 -0      ws-axis/c/tests/client/httpHeader/test7/rpc/TestClient.cpp
  
  Index: TestClient.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/client/httpHeader/test7/rpc/TestClient.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TestClient.cpp	28 Jun 2004 05:55:55 -0000	1.1
  +++ TestClient.cpp	7 Jul 2004 09:00:21 -0000	1.2
  @@ -27,6 +27,7 @@
   using namespace std;
   
   #include "../../gen_src/rpc/InteropTestPortType.h"
  +#include <axis/server/AxisException.h>
   
   #define ARRAYSIZE 2
   
  
  
  
  1.2       +1 -1      ws-axis/c/tests/client/httpHeader/test8/rpc/Makefile.am
  
  Index: Makefile.am
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/client/httpHeader/test8/rpc/Makefile.am,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Makefile.am	28 Jun 2004 05:55:55 -0000	1.1
  +++ Makefile.am	7 Jul 2004 09:00:21 -0000	1.2
  @@ -1,7 +1,7 @@
   bin_PROGRAMS = httpHeaderTest8RPC
   SUBDIRS =
   AM_CPPFLAGS = $(CPPFLAGS)
  -httpHeaderTest8RPC_SOURCES = TestClient.cpp  ../../gen_src/rpc/InteropTestPortType.cpp
../../gen_src/rpc/SOAPStruct.cpp 
  +httpHeaderTest8RPC_SOURCES = TestClient.cpp  ../../gen_src/rpc/InteropTestPortType.cpp
../../gen_src/rpc/SOAPStruct.cpp ../../gen_src/rpc/AxisClientException.cpp 
   
   httpHeaderTest8RPC_LDADD   =  $(LDFLAGS) -laxiscpp_client
   INCLUDES = -I$(AXISCPP_HOME)/include
  
  
  
  1.2       +1 -0      ws-axis/c/tests/client/httpHeader/test8/rpc/TestClient.cpp
  
  Index: TestClient.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/client/httpHeader/test8/rpc/TestClient.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TestClient.cpp	28 Jun 2004 05:55:55 -0000	1.1
  +++ TestClient.cpp	7 Jul 2004 09:00:21 -0000	1.2
  @@ -27,6 +27,7 @@
   using namespace std;
   
   #include "../../gen_src/rpc/InteropTestPortType.h"
  +#include <axis/server/AxisException.h>
   
   #define ARRAYSIZE 2
   
  
  
  

Mime
View raw message