You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by da...@apache.org on 2004/06/24 13:43:14 UTC
cvs commit: ws-axis/c/tests/client/interop/round1/gen_src SimpleTestSoap.cpp
damitha 2004/06/24 04:43:14
Modified: c/tests/client/interop/round1 Client.cpp Makefile.am
c/tests/client/interop/round1/gen_src SimpleTestSoap.cpp
Log:
Revision Changes Path
1.3 +1 -1 ws-axis/c/tests/client/interop/round1/Client.cpp
Index: Client.cpp
===================================================================
RCS file: /home/cvs/ws-axis/c/tests/client/interop/round1/Client.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- Client.cpp 8 Jun 2004 12:02:03 -0000 1.2
+++ Client.cpp 24 Jun 2004 11:43:14 -0000 1.3
@@ -25,7 +25,7 @@
//endpoint for Axis Java sample
//sprintf(endpoint, "http://%s:%s/axis/services/echo", server, port);
- SimpleTestSoap ws(endpoint);
+ SimpleTestSoap ws(endpoint, APTHTTP);
//set end point (optional)
//ws.setEndPoint( "http://localhost:8080/axis/services/echo" );
1.2 +1 -7 ws-axis/c/tests/client/interop/round1/Makefile.am
Index: Makefile.am
===================================================================
RCS file: /home/cvs/ws-axis/c/tests/client/interop/round1/Makefile.am,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- Makefile.am 8 Jun 2004 09:57:18 -0000 1.1
+++ Makefile.am 24 Jun 2004 11:43:14 -0000 1.2
@@ -1,7 +1 @@
-bin_PROGRAMS = r1InteropTest
-SUBDIRS =
-AM_CPPFLAGS = $(CPPFLAGS)
-r1InteropTest_SOURCES = Client.cpp gen_src/SimpleTestSoap.cpp gen_src/SOAPStruct.cpp
-
-r1InteropTest_LDADD = $(LDFLAGS) -laxiscpp_client
-INCLUDES = -I$(AXISCPP_HOME)/include
+SUBDIRS = gen_src
1.3 +194 -1 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.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- SimpleTestSoap.cpp 24 Jun 2004 07:32:18 -0000 1.2
+++ SimpleTestSoap.cpp 24 Jun 2004 11:43:14 -0000 1.3
@@ -72,7 +72,7 @@
cFaultstring = m_pCall->getElementAsString("faultstring", 0);
cFaultactor = m_pCall->getElementAsString("faultactor", 0);
cFaultdetail = m_pCall->getElementAsString("faultdetail", 0);
- throw AxisException(cFaultdetail);
+ throw AxisGenException(cFaultdetail);
}
else throw;
}
@@ -105,6 +105,27 @@
Ret = m_pCall->getElementAsInt("return", 0);
}
}
+<<<<<<< SimpleTestSoap.cpp
+ 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 AxisGenException(cFaultdetail);
+ }
+ else throw;
+=======
m_pCall->unInitialize();
return Ret;
}
@@ -124,6 +145,7 @@
throw AxisException(cFaultdetail);
}
else throw;
+>>>>>>> 1.2
}
}
@@ -166,11 +188,19 @@
}
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;
}
@@ -215,11 +245,19 @@
}
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;
}
@@ -252,6 +290,27 @@
Ret = m_pCall->getElementAsBase64Binary("return", 0);
}
}
+<<<<<<< SimpleTestSoap.cpp
+ 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 AxisGenException(cFaultdetail);
+ }
+ else throw;
+=======
m_pCall->unInitialize();
return Ret;
}
@@ -271,6 +330,7 @@
throw AxisException(cFaultdetail);
}
else throw;
+>>>>>>> 1.2
}
}
@@ -301,6 +361,27 @@
Ret = m_pCall->getElementAsDateTime("return", 0);
}
}
+<<<<<<< SimpleTestSoap.cpp
+ 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 AxisGenException(cFaultdetail);
+ }
+ else throw;
+=======
m_pCall->unInitialize();
return Ret;
}
@@ -320,6 +401,7 @@
throw AxisException(cFaultdetail);
}
else throw;
+>>>>>>> 1.2
}
}
@@ -362,11 +444,19 @@
}
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;
}
@@ -411,11 +501,19 @@
}
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;
}
@@ -458,6 +556,17 @@
{
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);
+ cFaultstring = m_pCall->getElementAsString("faultstring", 0);
+ cFaultactor = m_pCall->getElementAsString("faultactor", 0);
+ cFaultdetail = m_pCall->getElementAsString("faultdetail", 0);
+ 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);
@@ -467,6 +576,7 @@
throw AxisException(cFaultdetail);
}
else throw;
+>>>>>>> 1.2
}
}
@@ -507,6 +617,17 @@
{
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);
+ cFaultstring = m_pCall->getElementAsString("faultstring", 0);
+ cFaultactor = m_pCall->getElementAsString("faultactor", 0);
+ cFaultdetail = m_pCall->getElementAsString("faultdetail", 0);
+ 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);
@@ -516,6 +637,7 @@
throw AxisException(cFaultdetail);
}
else throw;
+>>>>>>> 1.2
}
}
@@ -556,6 +678,17 @@
{
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);
+ cFaultstring = m_pCall->getElementAsString("faultstring", 0);
+ cFaultactor = m_pCall->getElementAsString("faultactor", 0);
+ cFaultdetail = m_pCall->getElementAsString("faultdetail", 0);
+ 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);
@@ -565,6 +698,7 @@
throw AxisException(cFaultdetail);
}
else throw;
+>>>>>>> 1.2
}
}
@@ -595,6 +729,27 @@
Ret = m_pCall->getElementAsDecimal("return", 0);
}
}
+<<<<<<< SimpleTestSoap.cpp
+ 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 AxisGenException(cFaultdetail);
+ }
+ else throw;
+=======
m_pCall->unInitialize();
return Ret;
}
@@ -614,6 +769,7 @@
throw AxisException(cFaultdetail);
}
else throw;
+>>>>>>> 1.2
}
}
@@ -654,6 +810,17 @@
{
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);
+ cFaultstring = m_pCall->getElementAsString("faultstring", 0);
+ cFaultactor = m_pCall->getElementAsString("faultactor", 0);
+ cFaultdetail = m_pCall->getElementAsString("faultdetail", 0);
+ 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);
@@ -663,6 +830,7 @@
throw AxisException(cFaultdetail);
}
else throw;
+>>>>>>> 1.2
}
}
@@ -696,6 +864,30 @@
m_pCall->unInitialize();
return Ret;
}
+<<<<<<< SimpleTestSoap.cpp
+ 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 AxisGenException(cFaultdetail);
+ }
+ else throw;
+ }
+}
+
+int SimpleTestSoap::getFaultDetail(char** ppcDetail)
+{
+ return m_pCall->getFaultDetail(ppcDetail);
+=======
catch(AxisException& e)
{
int iExceptionCode = e.getExceptionCode();
@@ -718,5 +910,6 @@
int SimpleTestSoap::getFaultDetail(char** ppcDetail)
{
return m_pCall->getFaultDetail(ppcDetail);
+>>>>>>> 1.2
}