axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dami...@apache.org
Subject cvs commit: ws-axis/c/tests/client/xsdAnyTest1/gen_src ExtensibilityQueryPortType.cpp ExtensibilityQueryPortType.h Makefile.am
Date Tue, 06 Jul 2004 14:07:58 GMT
damitha     2004/07/06 07:07:58

  Modified:    c/tests/client/interop/round1/gen_src Makefile.am
                        SimpleTestSoap.cpp SimpleTestSoap.h
               c/tests/client/threadSafe/gen_src InteropTestPortType.cpp
                        InteropTestPortType.h Makefile.am
               c/tests/client/xsdAnyTest1/gen_src
                        ExtensibilityQueryPortType.cpp
                        ExtensibilityQueryPortType.h Makefile.am
  Log:
  
  
  Revision  Changes    Path
  1.2       +1 -1      ws-axis/c/tests/client/interop/round1/gen_src/Makefile.am
  
  Index: Makefile.am
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/client/interop/round1/gen_src/Makefile.am,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Makefile.am	25 Jun 2004 09:28:38 -0000	1.1
  +++ Makefile.am	6 Jul 2004 14:07:58 -0000	1.2
  @@ -1,6 +1,6 @@
   bin_PROGRAMS = SimpleTest
   SUBDIRS =
   AM_CPPFLAGS = $(CPPFLAGS)
  -SimpleTest_SOURCES =  SOAPStruct.cpp SimpleTestSoap.cpp ../Client.cpp
  +SimpleTest_SOURCES =  SOAPStruct.cpp SimpleTestSoap.cpp AxisClientException.cpp ../Client.cpp
   SimpleTest_LDADD = $(LDFLAGS)
   INCLUDES = -I$(AXISCPP_HOME)/include
  
  
  
  1.5       +56 -141   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.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- SimpleTestSoap.cpp	24 Jun 2004 11:59:24 -0000	1.4
  +++ SimpleTestSoap.cpp	6 Jul 2004 14:07:58 -0000	1.5
  @@ -38,10 +38,6 @@
    */
   void SimpleTestSoap::echoVoid()
   {
  -	char* cFaultcode;
  -	char* cFaultstring;
  -	char* cFaultactor;
  -	char* cFaultdetail;
   	try
   	{
   		if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL)) 
  @@ -66,13 +62,11 @@
   		{
   			throw;
   		}
  -		else if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://127.0.0.1:8080/" ))//Exception
handling code goes here
  +		ISoapFault* pSoapFault = (ISoapFault*) m_pCall->checkFault("Fault","http://127.0.0.1:8080/"
);
  +		if(pSoapFault)
   		{
  -			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);
  +	                m_pCall->unInitialize();
  +		        throw AxisClientException(pSoapFault);
   		}
   		else throw;
   	}
  @@ -85,10 +79,6 @@
   int SimpleTestSoap::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)) 
  @@ -115,13 +105,11 @@
   		{
   			throw;
   		}
  -		else if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://127.0.0.1:8080/" ))//Exception
handling code goes here
  +		ISoapFault* pSoapFault = (ISoapFault*) m_pCall->checkFault("Fault","http://127.0.0.1:8080/"
);
  +		if(pSoapFault)
   		{
  -			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);
  +	                m_pCall->unInitialize();
  +		        throw AxisClientException(pSoapFault);
   		}
   		else throw;
   	}
  @@ -134,10 +122,6 @@
   float SimpleTestSoap::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)) 
  @@ -164,13 +148,11 @@
   		{
   			throw;
   		}
  -		else if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://127.0.0.1:8080/" ))//Exception
handling code goes here
  +		ISoapFault* pSoapFault = (ISoapFault*) m_pCall->checkFault("Fault","http://127.0.0.1:8080/"
);
  +		if(pSoapFault)
   		{
  -			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);
  +	                m_pCall->unInitialize();
  +		        throw AxisClientException(pSoapFault);
   		}
   		else throw;
   	}
  @@ -183,10 +165,6 @@
   xsd__string SimpleTestSoap::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)) 
  @@ -213,13 +191,11 @@
   		{
   			throw;
   		}
  -		else if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://127.0.0.1:8080/" ))//Exception
handling code goes here
  +		ISoapFault* pSoapFault = (ISoapFault*) m_pCall->checkFault("Fault","http://127.0.0.1:8080/"
);
  +		if(pSoapFault)
   		{
  -			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);
  +	                m_pCall->unInitialize();
  +		        throw AxisClientException(pSoapFault);
   		}
   		else throw;
   	}
  @@ -232,10 +208,6 @@
   xsd__base64Binary SimpleTestSoap::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)) 
  @@ -262,15 +234,12 @@
   		{
   			throw;
   		}
  -		else if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://127.0.0.1:8080/" ))//Exception
handling code goes here
  +		ISoapFault* pSoapFault = (ISoapFault*) m_pCall->checkFault("Fault","http://127.0.0.1:8080/"
);
  +		if(pSoapFault)
   		{
  -			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);
  +	                m_pCall->unInitialize();
  +		        throw AxisClientException(pSoapFault);
   		}
  -		else throw;
   	}
   }
   
  @@ -281,10 +250,6 @@
   xsd__dateTime SimpleTestSoap::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)) 
  @@ -311,13 +276,11 @@
   		{
   			throw;
   		}
  -		else if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://127.0.0.1:8080/" ))//Exception
handling code goes here
  +		ISoapFault* pSoapFault = (ISoapFault*) m_pCall->checkFault("Fault","http://127.0.0.1:8080/"
);
  +		if(pSoapFault)
   		{
  -			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);
  +	                m_pCall->unInitialize();
  +		        throw AxisClientException(pSoapFault);
   		}
   		else throw;
   	}
  @@ -330,10 +293,6 @@
   SOAPStruct* SimpleTestSoap::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)) 
  @@ -360,13 +319,11 @@
   		{
   			throw;
   		}
  -		else if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://127.0.0.1:8080/" ))//Exception
handling code goes here
  +		ISoapFault* pSoapFault = (ISoapFault*) m_pCall->checkFault("Fault","http://127.0.0.1:8080/"
);
  +		if(pSoapFault)
   		{
  -			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);
  +	                m_pCall->unInitialize();
  +		        throw AxisClientException(pSoapFault);
   		}
   		else throw;
   	}
  @@ -379,10 +336,6 @@
   xsd__int_Array SimpleTestSoap::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)) 
  @@ -409,13 +362,11 @@
   		{
   			throw;
   		}
  -		else if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://127.0.0.1:8080/" ))//Exception
handling code goes here
  +		ISoapFault* pSoapFault = (ISoapFault*) m_pCall->checkFault("Fault","http://127.0.0.1:8080/"
);
  +		if(pSoapFault)
   		{
  -			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);
  +	                m_pCall->unInitialize();
  +		        throw AxisClientException(pSoapFault);
   		}
   		else throw;
   	}
  @@ -428,10 +379,6 @@
   xsd__float_Array SimpleTestSoap::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)) 
  @@ -458,13 +405,11 @@
   		{
   			throw;
   		}
  -		else if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://127.0.0.1:8080/" ))//Exception
handling code goes here
  +		ISoapFault* pSoapFault = (ISoapFault*) m_pCall->checkFault("Fault","http://127.0.0.1:8080/"
);
  +		if(pSoapFault)
   		{
  -			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);
  +	                m_pCall->unInitialize();
  +		        throw AxisClientException(pSoapFault);
   		}
   		else throw;
   	}
  @@ -477,10 +422,6 @@
   xsd__string_Array SimpleTestSoap::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)) 
  @@ -507,13 +448,11 @@
   		{
   			throw;
   		}
  -		else if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://127.0.0.1:8080/" ))//Exception
handling code goes here
  +		ISoapFault* pSoapFault = (ISoapFault*) m_pCall->checkFault("Fault","http://127.0.0.1:8080/"
);
  +		if(pSoapFault)
   		{
  -			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);
  +	                m_pCall->unInitialize();
  +		        throw AxisClientException(pSoapFault);
   		}
   		else throw;
   	}
  @@ -526,10 +465,6 @@
   SOAPStruct_Array SimpleTestSoap::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)) 
  @@ -556,13 +491,11 @@
   		{
   			throw;
   		}
  -		else if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://127.0.0.1:8080/" ))//Exception
handling code goes here
  +		ISoapFault* pSoapFault = (ISoapFault*) m_pCall->checkFault("Fault","http://127.0.0.1:8080/"
);
  +		if(pSoapFault)
   		{
  -			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);
  +	                m_pCall->unInitialize();
  +		        throw AxisClientException(pSoapFault);
   		}
   		else throw;
   	}
  @@ -575,10 +508,6 @@
   xsd__decimal SimpleTestSoap::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)) 
  @@ -605,13 +534,11 @@
   		{
   			throw;
   		}
  -		else if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://127.0.0.1:8080/" ))//Exception
handling code goes here
  +		ISoapFault* pSoapFault = (ISoapFault*) m_pCall->checkFault("Fault","http://127.0.0.1:8080/"
);
  +		if(pSoapFault)
   		{
  -			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);
  +	                m_pCall->unInitialize();
  +		        throw AxisClientException(pSoapFault);
   		}
   		else throw;
   	}
  @@ -624,10 +551,6 @@
   xsd__boolean SimpleTestSoap::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)) 
  @@ -654,13 +577,11 @@
   		{
   			throw;
   		}
  -		else if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://127.0.0.1:8080/" ))//Exception
handling code goes here
  +		ISoapFault* pSoapFault = (ISoapFault*) m_pCall->checkFault("Fault","http://127.0.0.1:8080/"
);
  +		if(pSoapFault)
   		{
  -			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);
  +	                m_pCall->unInitialize();
  +		        throw AxisClientException(pSoapFault);
   		}
   		else throw;
   	}
  @@ -673,10 +594,6 @@
   xsd__hexBinary SimpleTestSoap::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)) 
  @@ -703,13 +620,11 @@
   		{
   			throw;
   		}
  -		else if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://127.0.0.1:8080/" ))//Exception
handling code goes here
  +		ISoapFault* pSoapFault = (ISoapFault*) m_pCall->checkFault("Fault","http://127.0.0.1:8080/"
);
  +		if(pSoapFault)
   		{
  -			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);
  +	                m_pCall->unInitialize();
  +		        throw AxisClientException(pSoapFault);
   		}
   		else throw;
   	}
  
  
  
  1.3       +1 -14     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.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- SimpleTestSoap.h	24 Jun 2004 07:32:18 -0000	1.2
  +++ SimpleTestSoap.h	6 Jul 2004 14:07:58 -0000	1.3
  @@ -10,20 +10,7 @@
   /*include Exception header files here*/
   #include "SOAPStruct_Array.h"
   #include "SOAPStruct.h"
  -
  -
  -
  -
  -
  -
  -
  -
  -
  -
  -
  -
  -
  -
  +#include "AxisClientException.h"
   
   class SimpleTestSoap :public Stub
   {
  
  
  
  1.4       +99 -168   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.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- InteropTestPortType.cpp	24 Jun 2004 11:19:47 -0000	1.3
  +++ InteropTestPortType.cpp	6 Jul 2004 14:07:58 -0000	1.4
  @@ -39,10 +39,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)) 
  @@ -69,14 +65,14 @@
   		{
   			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);
  -		}
  +                ISoapFault* pSoapFault = (ISoapFault*) m_pCall->checkFault("Fault",
  +		    "http://localhost/axis/threadSafe");
  +		if(pSoapFault)
  +                {   
  +		    m_pCall->unInitialize();
  +                    throw AxisClientException(pSoapFault);     
  +                }
  +		 
   		else throw;
   	}
   }
  @@ -88,10 +84,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)) 
  @@ -118,14 +110,13 @@
   		{
   			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);
  -		}
  +                ISoapFault* pSoapFault = (ISoapFault*) m_pCall->checkFault("Fault",
  +		    "http://localhost/axis/threadSafe");
  +		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)) 
  @@ -167,14 +154,13 @@
   		{
   			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);
  -		}
  +                ISoapFault* pSoapFault = (ISoapFault*) m_pCall->checkFault("Fault",
  +		    "http://localhost/axis/threadSafe");
  +		if(pSoapFault)
  +                {   
  +		    m_pCall->unInitialize();
  +                    throw AxisClientException(pSoapFault);     
  +                }
   		else throw;
   	}
   }
  @@ -186,10 +172,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)) 
  @@ -216,14 +198,13 @@
   		{
   			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);
  -		}
  +                ISoapFault* pSoapFault = (ISoapFault*) m_pCall->checkFault("Fault",
  +		    "http://localhost/axis/threadSafe");
  +		if(pSoapFault)
  +                {   
  +		    m_pCall->unInitialize();
  +                    throw AxisClientException(pSoapFault);     
  +                }
   		else throw;
   	}
   }
  @@ -235,10 +216,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)) 
  @@ -265,14 +242,13 @@
   		{
   			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);
  -		}
  +                ISoapFault* pSoapFault = (ISoapFault*) m_pCall->checkFault("Fault",
  +		    "http://localhost/axis/threadSafe");
  +		if(pSoapFault)
  +                {   
  +		    m_pCall->unInitialize();
  +                    throw AxisClientException(pSoapFault);     
  +                }
   		else throw;
   	}
   }
  @@ -284,10 +260,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)) 
  @@ -314,14 +286,13 @@
   		{
   			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);
  -		}
  +                ISoapFault* pSoapFault = (ISoapFault*) m_pCall->checkFault("Fault",
  +		    "http://localhost/axis/threadSafe");
  +		if(pSoapFault)
  +                {   
  +		    m_pCall->unInitialize();
  +                    throw AxisClientException(pSoapFault);     
  +                }
   		else throw;
   	}
   }
  @@ -333,10 +304,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)) 
  @@ -363,14 +330,13 @@
   		{
   			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);
  -		}
  +                ISoapFault* pSoapFault = (ISoapFault*) m_pCall->checkFault("Fault",
  +		    "http://localhost/axis/threadSafe");
  +		if(pSoapFault)
  +                {   
  +		    m_pCall->unInitialize();
  +                    throw AxisClientException(pSoapFault);     
  +                }
   		else throw;
   	}
   }
  @@ -382,10 +348,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)) 
  @@ -412,14 +374,13 @@
   		{
   			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);
  -		}
  +                ISoapFault* pSoapFault = (ISoapFault*) m_pCall->checkFault("Fault",
  +		    "http://localhost/axis/threadSafe");
  +		if(pSoapFault)
  +                {   
  +		    m_pCall->unInitialize();
  +                    throw AxisClientException(pSoapFault);     
  +                }
   		else throw;
   	}
   }
  @@ -430,10 +391,6 @@
    */
   void InteropTestPortType::echoVoid()
   {
  -	char* cFaultcode;
  -	char* cFaultstring;
  -	char* cFaultactor;
  -	char* cFaultdetail;
   	try
   	{
   		if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL)) 
  @@ -458,14 +415,13 @@
   		{
   			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);
  -		}
  +                ISoapFault* pSoapFault = (ISoapFault*) m_pCall->checkFault("Fault",
  +		    "http://localhost/axis/threadSafe");
  +		if(pSoapFault)
  +                {   
  +		    m_pCall->unInitialize();
  +                    throw AxisClientException(pSoapFault);     
  +                }
   		else throw;
   	}
   }
  @@ -477,10 +433,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)) 
  @@ -507,14 +459,13 @@
   		{
   			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);
  -		}
  +                ISoapFault* pSoapFault = (ISoapFault*) m_pCall->checkFault("Fault",
  +		    "http://localhost/axis/threadSafe");
  +		if(pSoapFault)
  +                {   
  +		    m_pCall->unInitialize();
  +                    throw AxisClientException(pSoapFault);     
  +                }
   		else throw;
   	}
   }
  @@ -526,10 +477,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)) 
  @@ -556,14 +503,13 @@
   		{
   			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);
  -		}
  +                ISoapFault* pSoapFault = (ISoapFault*) m_pCall->checkFault("Fault",
  +		    "http://localhost/axis/threadSafe");
  +		if(pSoapFault)
  +                {   
  +		    m_pCall->unInitialize();
  +                    throw AxisClientException(pSoapFault);     
  +                }
   		else throw;
   	}
   }
  @@ -575,10 +521,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)) 
  @@ -605,14 +547,13 @@
   		{
   			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);
  -		}
  +                ISoapFault* pSoapFault = (ISoapFault*) m_pCall->checkFault("Fault",
  +		    "http://localhost/axis/threadSafe");
  +		if(pSoapFault)
  +                {   
  +		    m_pCall->unInitialize();
  +                    throw AxisClientException(pSoapFault);     
  +                }
   		else throw;
   	}
   }
  @@ -624,10 +565,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)) 
  @@ -654,14 +591,13 @@
   		{
   			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);
  -		}
  +                ISoapFault* pSoapFault = (ISoapFault*) m_pCall->checkFault("Fault",
  +		    "http://localhost/axis/threadSafe");
  +		if(pSoapFault)
  +                {   
  +		    m_pCall->unInitialize();
  +                    throw AxisClientException(pSoapFault);     
  +                }
   		else throw;
   	}
   }
  @@ -673,10 +609,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)) 
  @@ -703,14 +635,13 @@
   		{
   			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);
  -		}
  +                ISoapFault* pSoapFault = (ISoapFault*) m_pCall->checkFault("Fault",
  +		    "http://localhost/axis/threadSafe");
  +		if(pSoapFault)
  +                {   
  +		    m_pCall->unInitialize();
  +                    throw AxisClientException(pSoapFault);     
  +                }
   		else throw;
   	}
   }
  
  
  
  1.3       +1 -14     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.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- InteropTestPortType.h	24 Jun 2004 07:32:18 -0000	1.2
  +++ InteropTestPortType.h	6 Jul 2004 14:07:58 -0000	1.3
  @@ -10,20 +10,7 @@
   /*include Exception header files here*/
   #include "SOAPStruct_Array.h"
   #include "SOAPStruct.h"
  -
  -
  -
  -
  -
  -
  -
  -
  -
  -
  -
  -
  -
  -
  +#include "AxisClientException.h"
   
   class InteropTestPortType :public Stub
   {
  
  
  
  1.3       +1 -1      ws-axis/c/tests/client/threadSafe/gen_src/Makefile.am
  
  Index: Makefile.am
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/client/threadSafe/gen_src/Makefile.am,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Makefile.am	24 Jun 2004 11:43:33 -0000	1.2
  +++ Makefile.am	6 Jul 2004 14:07:58 -0000	1.3
  @@ -1,7 +1,7 @@
   bin_PROGRAMS = thSafeTest
   SUBDIRS =
   AM_CPPFLAGS = $(CPPFLAGS)
  -thSafeTest_SOURCES = InteropTestPortType.cpp SOAPStruct.cpp ../Client.cpp
  +thSafeTest_SOURCES = InteropTestPortType.cpp SOAPStruct.cpp AxisClientException.cpp ../Client.cpp
   
   thSafeTest_LDADD   =  $(LDFLAGS) -lpthread
   INCLUDES = -I$(AXISCPP_HOME)/include
  
  
  
  1.3       +7 -15     ws-axis/c/tests/client/xsdAnyTest1/gen_src/ExtensibilityQueryPortType.cpp
  
  Index: ExtensibilityQueryPortType.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/client/xsdAnyTest1/gen_src/ExtensibilityQueryPortType.cpp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ExtensibilityQueryPortType.cpp	28 Jun 2004 08:11:43 -0000	1.2
  +++ ExtensibilityQueryPortType.cpp	6 Jul 2004 14:07:58 -0000	1.3
  @@ -38,10 +38,6 @@
   AnyType* ExtensibilityQueryPortType::query(AnyType* Value0)
   {
   	AnyType* pReturn = NULL;
  -	char* cFaultcode;
  -	char* cFaultstring;
  -	char* cFaultactor;
  -	char* cFaultdetail;
   	try
   	{	if (AXIS_SUCCESS != m_pCall->initialize(CPP_DOC_PROVIDER, NORMAL_CHANNEL)) return
pReturn;
   		m_pCall->setTransportProperty(SOAPACTION_HEADER , "testXSDANY#query");
  @@ -66,17 +62,13 @@
   		{
   			throw;
   		}
  -		else if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://localhost:8080/axis/ExtensibilityQuery"
))//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);
  -			if(cFaultdetail)
  -			    throw AxisGenException(cFaultdetail);
  -			else
  -			    throw AxisGenException(SERVER_UNKNOWN_ERROR);
  -		}
  +                ISoapFault* pSoapFault = (ISoapFault*) m_pCall->checkFault("Fault",
  +		    "http://localhost:8080/axis/ExtensibilityQuery");
  +		if(pSoapFault)
  +                {   
  +		    m_pCall->unInitialize();
  +                    throw AxisClientException(pSoapFault);     
  +                }
   		else throw;
   	}
   }
  
  
  
  1.3       +1 -0      ws-axis/c/tests/client/xsdAnyTest1/gen_src/ExtensibilityQueryPortType.h
  
  Index: ExtensibilityQueryPortType.h
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/client/xsdAnyTest1/gen_src/ExtensibilityQueryPortType.h,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ExtensibilityQueryPortType.h	27 Jun 2004 04:53:47 -0000	1.2
  +++ ExtensibilityQueryPortType.h	6 Jul 2004 14:07:58 -0000	1.3
  @@ -8,6 +8,7 @@
   
   #include <axis/client/Stub.h>
   #include "ExtensibilityType.h"
  +#include "AxisClientException.h"
   
   
   class ExtensibilityQueryPortType  :public Stub
  
  
  
  1.2       +1 -1      ws-axis/c/tests/client/xsdAnyTest1/gen_src/Makefile.am
  
  Index: Makefile.am
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/client/xsdAnyTest1/gen_src/Makefile.am,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Makefile.am	24 Jun 2004 12:47:15 -0000	1.1
  +++ Makefile.am	6 Jul 2004 14:07:58 -0000	1.2
  @@ -1,6 +1,6 @@
   bin_PROGRAMS = ExtensibilityQuery
   SUBDIRS =
   AM_CPPFLAGS = $(CPPFLAGS)
  -ExtensibilityQuery_SOURCES =  ../ExtensibilityQueryMain.cpp ExtensibilityType.cpp ExtensibilityQueryPortType.cpp
  +ExtensibilityQuery_SOURCES =  ../ExtensibilityQueryMain.cpp ExtensibilityType.cpp ExtensibilityQueryPortType.cpp
AxisClientException.cpp
   ExtensibilityQuery_LDADD = $(LDFLAGS)
   INCLUDES = -I$(AXISCPP_HOME)/include
  
  
  

Mime
View raw message