You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by ro...@apache.org on 2004/07/07 08:39:11 UTC
cvs commit: ws-axis/c/tests/client/soapHeader/gen_src/rpc AxisClientException.cpp AxisClientException.h InteropTestPortType.cpp
roshan 2004/07/06 23:39:11
Modified: c/tests/client/soapHeader/test1/rpc TestClient.cpp
c/tests/client/soapHeader/gen_src/rpc
InteropTestPortType.cpp
Added: c/tests/client/soapHeader/gen_src/rpc
AxisClientException.cpp AxisClientException.h
Log:
Made changes to reflect the latest changes of Exception Handling Mechanism
Revision Changes Path
1.3 +2 -0 ws-axis/c/tests/client/soapHeader/test1/rpc/TestClient.cpp
Index: TestClient.cpp
===================================================================
RCS file: /home/cvs/ws-axis/c/tests/client/soapHeader/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 06:39:11 -0000 1.3
@@ -27,6 +27,8 @@
using namespace std;
#include "../../gen_src/rpc/InteropTestPortType.h"
+#include <axis/server/IHeaderBlock.h>
+#include <axis/server/AxisException.h>
#define ARRAYSIZE 2
1.3 +171 -252 ws-axis/c/tests/client/soapHeader/gen_src/rpc/InteropTestPortType.cpp
Index: InteropTestPortType.cpp
===================================================================
RCS file: /home/cvs/ws-axis/c/tests/client/soapHeader/gen_src/rpc/InteropTestPortType.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- InteropTestPortType.cpp 24 Jun 2004 10:26:15 -0000 1.2
+++ InteropTestPortType.cpp 7 Jul 2004 06:39:11 -0000 1.3
@@ -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/soapHeader/gen_src/rpc/AxisClientException.cpp
1.2 +38 -0 ws-axis/c/tests/client/soapHeader/gen_src/rpc/AxisClientException.h