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/server/exceptionTest README
Date Thu, 24 Jun 2004 11:59:24 GMT
damitha     2004/06/24 04:59:24

  Modified:    c/tests/client/interop/round1/gen_src SimpleTestSoap.cpp
               c/tests/server/exceptionTest README
  Log:
  
  
  Revision  Changes    Path
  1.4       +0 -193    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.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- SimpleTestSoap.cpp	24 Jun 2004 11:43:14 -0000	1.3
  +++ SimpleTestSoap.cpp	24 Jun 2004 11:59:24 -0000	1.4
  @@ -105,7 +105,6 @@
   				Ret = m_pCall->getElementAsInt("return", 0);
   			}
   		}
  -<<<<<<< SimpleTestSoap.cpp
   		m_pCall->unInitialize();
   		return Ret;
   	}
  @@ -125,27 +124,6 @@
   				  throw AxisGenException(cFaultdetail);
   		}
   		else throw;
  -=======
  -		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;
  ->>>>>>> 1.2
   	}
   }
   
  @@ -188,19 +166,11 @@
   		}
   		else if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://127.0.0.1:8080/" ))//Exception
handling code goes here
   		{
  -<<<<<<< SimpleTestSoap.cpp
   			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);
  -=======
  -			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);
  ->>>>>>> 1.2
   		}
   		else throw;
   	}
  @@ -245,19 +215,11 @@
   		}
   		else if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://127.0.0.1:8080/" ))//Exception
handling code goes here
   		{
  -<<<<<<< SimpleTestSoap.cpp
   			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);
  -=======
  -			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);
  ->>>>>>> 1.2
   		}
   		else throw;
   	}
  @@ -290,7 +252,6 @@
   				Ret = m_pCall->getElementAsBase64Binary("return", 0);
   			}
   		}
  -<<<<<<< SimpleTestSoap.cpp
   		m_pCall->unInitialize();
   		return Ret;
   	}
  @@ -310,27 +271,6 @@
   				  throw AxisGenException(cFaultdetail);
   		}
   		else throw;
  -=======
  -		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;
  ->>>>>>> 1.2
   	}
   }
   
  @@ -361,7 +301,6 @@
   				Ret = m_pCall->getElementAsDateTime("return", 0);
   			}
   		}
  -<<<<<<< SimpleTestSoap.cpp
   		m_pCall->unInitialize();
   		return Ret;
   	}
  @@ -381,27 +320,6 @@
   				  throw AxisGenException(cFaultdetail);
   		}
   		else throw;
  -=======
  -		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;
  ->>>>>>> 1.2
   	}
   }
   
  @@ -444,19 +362,11 @@
   		}
   		else if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://127.0.0.1:8080/" ))//Exception
handling code goes here
   		{
  -<<<<<<< SimpleTestSoap.cpp
   			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);
  -=======
  -			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);
  ->>>>>>> 1.2
   		}
   		else throw;
   	}
  @@ -501,19 +411,11 @@
   		}
   		else if (AXIS_SUCCESS == m_pCall->checkFault("Fault","http://127.0.0.1:8080/" ))//Exception
handling code goes here
   		{
  -<<<<<<< SimpleTestSoap.cpp
   			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);
  -=======
  -			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);
  ->>>>>>> 1.2
   		}
   		else throw;
   	}
  @@ -556,7 +458,6 @@
   		{
   			throw;
   		}
  -<<<<<<< SimpleTestSoap.cpp
   		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);
  @@ -566,17 +467,6 @@
   				  throw AxisGenException(cFaultdetail);
   		}
   		else 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;
  ->>>>>>> 1.2
   	}
   }
   
  @@ -617,7 +507,6 @@
   		{
   			throw;
   		}
  -<<<<<<< SimpleTestSoap.cpp
   		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);
  @@ -627,17 +516,6 @@
   				  throw AxisGenException(cFaultdetail);
   		}
   		else 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;
  ->>>>>>> 1.2
   	}
   }
   
  @@ -678,7 +556,6 @@
   		{
   			throw;
   		}
  -<<<<<<< SimpleTestSoap.cpp
   		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);
  @@ -688,17 +565,6 @@
   				  throw AxisGenException(cFaultdetail);
   		}
   		else 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;
  ->>>>>>> 1.2
   	}
   }
   
  @@ -729,7 +595,6 @@
   				Ret = m_pCall->getElementAsDecimal("return", 0);
   			}
   		}
  -<<<<<<< SimpleTestSoap.cpp
   		m_pCall->unInitialize();
   		return Ret;
   	}
  @@ -749,27 +614,6 @@
   				  throw AxisGenException(cFaultdetail);
   		}
   		else throw;
  -=======
  -		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;
  ->>>>>>> 1.2
   	}
   }
   
  @@ -810,7 +654,6 @@
   		{
   			throw;
   		}
  -<<<<<<< SimpleTestSoap.cpp
   		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);
  @@ -820,17 +663,6 @@
   				  throw AxisGenException(cFaultdetail);
   		}
   		else 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;
  ->>>>>>> 1.2
   	}
   }
   
  @@ -864,7 +696,6 @@
   		m_pCall->unInitialize();
   		return Ret;
   	}
  -<<<<<<< SimpleTestSoap.cpp
   	catch(AxisException& e)
   	{
   		int iExceptionCode = e.getExceptionCode();
  @@ -887,29 +718,5 @@
   int SimpleTestSoap::getFaultDetail(char** ppcDetail)
   {
   	return m_pCall->getFaultDetail(ppcDetail);
  -=======
  -	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);
  ->>>>>>> 1.2
   }
   
  
  
  
  1.2       +14 -2     ws-axis/c/tests/server/exceptionTest/README
  
  Index: README
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/server/exceptionTest/README,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- README	24 Jun 2004 09:24:26 -0000	1.1
  +++ README	24 Jun 2004 11:59:24 -0000	1.2
  @@ -38,7 +38,19 @@
      In the MathOps service class I have a div method which accepts two parameters.
      In order to demonstrate the possible exceptions I have the following scenarios.
      
  -   When you generated the client side it will generate header and
  +   If the second parameter is zero div method throw an AxisDivByZeroException
  +   indicating that division by zero is not possible.
  +
  +   If the first parameter is 1000 div method throw an AxisNormalDetailException.
  +   Note that this limitation is only for demonstration purposes.
  +
  +   If any of the parameters are negative div method throw an AxisOutOfBoundException.
  +   Here too the limitation is only for demonstation purposes.
  +
  +   So obviously to test the fault mapping of these generated exceptions you need to
  +   pass the parameters from the client side accordingly.
  +   
  +   When you generated the server side it will generate header and
      implementation files for the following
   
      MathOps: Service class which have a div method which may throw possible
  @@ -67,5 +79,5 @@
      AxisNormalDetailException: Exception type corresponding to NormalDetail fault.
   
      
  -
  +   
   
  
  
  

Mime
View raw message