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 sa...@apache.org on 2005/01/10 11:06:32 UTC
cvs commit: ws-axis/c/tests/client/xsdAnyTest1/gen_src ExtensibilityQueryPortType.cpp
samisa 2005/01/10 02:06:32
Modified: c/tests/client/httpHeader/gen_src/rpc
InteropTestPortType.cpp
c/tests/client/soapHeader/gen_src/rpc
InteropTestPortType.cpp
c/tests/client/threadSafe/WinClient Calculator.cpp
c/tests/client/xsdAnyTest1/gen_src
ExtensibilityQueryPortType.cpp
Log:
Fixed problems dew to the removal of secure in Call initialize.
Revision Changes Path
1.7 +1115 -149 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.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- InteropTestPortType.cpp 29 Nov 2004 12:39:31 -0000 1.6
+++ InteropTestPortType.cpp 10 Jan 2005 10:06:32 -0000 1.7
@@ -44,7 +44,76 @@
xsd__string Ret;
try
{
- if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL))
+ if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+))
return Ret;
m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoString");
m_pCall->setSOAPVersion(SOAP_VER_1_1);
@@ -87,7 +156,76 @@
xsd__string_Array RetArray = {NULL, 0};
try
{
- if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL))
+ if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+))
return RetArray;
m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoStringArray");
m_pCall->setSOAPVersion(SOAP_VER_1_1);
@@ -130,7 +268,76 @@
int Ret;
try
{
- if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL))
+ if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+))
return Ret;
m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoInteger");
m_pCall->setSOAPVersion(SOAP_VER_1_1);
@@ -173,71 +380,209 @@
xsd__int_Array RetArray = {NULL, 0};
try
{
- if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL))
- return RetArray;
- m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoIntegerArray");
- m_pCall->setSOAPVersion(SOAP_VER_1_1);
- m_pCall->setOperation("echoIntegerArray", "http://soapinterop.org/");
- applyUserPreferences();
- m_pCall->addBasicArrayParameter((Axis_Array*)(&Value0), XSD_INT, "inputIntegerArray");
- if (AXIS_SUCCESS == m_pCall->invoke())
- {
- if(AXIS_SUCCESS == m_pCall->checkMessage("echoIntegerArrayResponse", "http://soapinterop.org/"))
- {
- RetArray = (xsd__int_Array&)m_pCall->getBasicArray(XSD_INT, "return", 0);
- }
- }
- m_pCall->unInitialize();
- return RetArray;
- }
- catch(AxisException& e)
- {
- 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;
- }
-}
+ if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER
-/*
- * This method wrap the service method echoFloat
- */
-float InteropTestPortType::echoFloat(float Value0)
-{
- float Ret;
- try
- {
- if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL))
- return Ret;
- m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoFloat");
- m_pCall->setSOAPVersion(SOAP_VER_1_1);
- m_pCall->setOperation("echoFloat", "http://soapinterop.org/");
- applyUserPreferences();
- m_pCall->addParameter((void*)&Value0, "inputFloat", XSD_FLOAT);
- if (AXIS_SUCCESS == m_pCall->invoke())
- {
- if(AXIS_SUCCESS == m_pCall->checkMessage("echoFloatResponse", "http://soapinterop.org/"))
- {
- Ret = m_pCall->getElementAsFloat("return", 0);
- }
- }
- m_pCall->unInitialize();
- return Ret;
- }
- catch(AxisException& e)
- {
- int iExceptionCode = e.getExceptionCode();
- if(AXISC_NODE_VALUE_MISMATCH_EXCEPTION != iExceptionCode)
- {
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+))
+ return RetArray;
+ m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoIntegerArray");
+ m_pCall->setSOAPVersion(SOAP_VER_1_1);
+ m_pCall->setOperation("echoIntegerArray", "http://soapinterop.org/");
+ applyUserPreferences();
+ m_pCall->addBasicArrayParameter((Axis_Array*)(&Value0), XSD_INT, "inputIntegerArray");
+ if (AXIS_SUCCESS == m_pCall->invoke())
+ {
+ if(AXIS_SUCCESS == m_pCall->checkMessage("echoIntegerArrayResponse", "http://soapinterop.org/"))
+ {
+ RetArray = (xsd__int_Array&)m_pCall->getBasicArray(XSD_INT, "return", 0);
+ }
+ }
+ m_pCall->unInitialize();
+ return RetArray;
+ }
+ catch(AxisException& e)
+ {
+ 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;
+ }
+}
+
+
+/*
+ * This method wrap the service method echoFloat
+ */
+float InteropTestPortType::echoFloat(float Value0)
+{
+ float Ret;
+ try
+ {
+ if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+))
+ return Ret;
+ m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoFloat");
+ m_pCall->setSOAPVersion(SOAP_VER_1_1);
+ m_pCall->setOperation("echoFloat", "http://soapinterop.org/");
+ applyUserPreferences();
+ m_pCall->addParameter((void*)&Value0, "inputFloat", XSD_FLOAT);
+ if (AXIS_SUCCESS == m_pCall->invoke())
+ {
+ if(AXIS_SUCCESS == m_pCall->checkMessage("echoFloatResponse", "http://soapinterop.org/"))
+ {
+ Ret = m_pCall->getElementAsFloat("return", 0);
+ }
+ }
+ m_pCall->unInitialize();
+ return Ret;
+ }
+ catch(AxisException& e)
+ {
+ 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/" );
@@ -259,18 +604,311 @@
xsd__float_Array RetArray = {NULL, 0};
try
{
- if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL))
+ if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+))
return RetArray;
m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoFloatArray");
m_pCall->setSOAPVersion(SOAP_VER_1_1);
m_pCall->setOperation("echoFloatArray", "http://soapinterop.org/");
applyUserPreferences();
- m_pCall->addBasicArrayParameter((Axis_Array*)(&Value0), XSD_FLOAT, "inputFloatArray");
+ m_pCall->addBasicArrayParameter((Axis_Array*)(&Value0), XSD_FLOAT, "inputFloatArray");
+ if (AXIS_SUCCESS == m_pCall->invoke())
+ {
+ if(AXIS_SUCCESS == m_pCall->checkMessage("echoFloatArrayResponse", "http://soapinterop.org/"))
+ {
+ RetArray = (xsd__float_Array&)m_pCall->getBasicArray(XSD_FLOAT, "return", 0);
+ }
+ }
+ m_pCall->unInitialize();
+ return RetArray;
+ }
+ catch(AxisException& e)
+ {
+ 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;
+ }
+}
+
+
+/*
+ * This method wrap the service method echoStruct
+ */
+SOAPStruct* InteropTestPortType::echoStruct(SOAPStruct* Value0)
+{
+ SOAPStruct* pReturn = NULL;
+ try
+ {
+ if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+))
+ return pReturn;
+ m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoStruct");
+ m_pCall->setSOAPVersion(SOAP_VER_1_1);
+ m_pCall->setOperation("echoStruct", "http://soapinterop.org/");
+ applyUserPreferences();
+ m_pCall->addCmplxParameter(Value0, (void*)Axis_Serialize_SOAPStruct, (void*)Axis_Delete_SOAPStruct, "inputStruct", Axis_URI_SOAPStruct);
+ if (AXIS_SUCCESS == m_pCall->invoke())
+ {
+ if(AXIS_SUCCESS == m_pCall->checkMessage("echoStructResponse", "http://soapinterop.org/"))
+ {
+ pReturn = (SOAPStruct*)m_pCall->getCmplxObject((void*) Axis_DeSerialize_SOAPStruct, (void*) Axis_Create_SOAPStruct, (void*) Axis_Delete_SOAPStruct,"return", 0);
+ }
+ }
+ m_pCall->unInitialize();
+ return pReturn;
+ }
+ catch(AxisException& e)
+ {
+ 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;
+ }
+}
+
+
+/*
+ * This method wrap the service method echoStructArray
+ */
+SOAPStruct_Array InteropTestPortType::echoStructArray(SOAPStruct_Array Value0)
+{
+ SOAPStruct_Array RetArray = {NULL, 0};
+ try
+ {
+ if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+))
+ return RetArray;
+ m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoStructArray");
+ m_pCall->setSOAPVersion(SOAP_VER_1_1);
+ m_pCall->setOperation("echoStructArray", "http://soapinterop.org/");
+ applyUserPreferences();
+ m_pCall->addCmplxArrayParameter((Axis_Array*)(&Value0), (void*)Axis_Serialize_SOAPStruct, (void*)Axis_Delete_SOAPStruct, (void*) Axis_GetSize_SOAPStruct, "inputStructArray", Axis_URI_SOAPStruct);
if (AXIS_SUCCESS == m_pCall->invoke())
{
- if(AXIS_SUCCESS == m_pCall->checkMessage("echoFloatArrayResponse", "http://soapinterop.org/"))
+ if(AXIS_SUCCESS == m_pCall->checkMessage("echoStructArrayResponse", "http://soapinterop.org/"))
{
- RetArray = (xsd__float_Array&)m_pCall->getBasicArray(XSD_FLOAT, "return", 0);
+ RetArray = (SOAPStruct_Array&)m_pCall->getCmplxArray((void*) Axis_DeSerialize_SOAPStruct, (void*) Axis_Create_SOAPStruct, (void*) Axis_Delete_SOAPStruct, (void*) Axis_GetSize_SOAPStruct, "return", Axis_URI_SOAPStruct);
}
}
m_pCall->unInitialize();
@@ -295,29 +933,95 @@
/*
- * This method wrap the service method echoStruct
+ * This method wrap the service method echoVoid
*/
-SOAPStruct* InteropTestPortType::echoStruct(SOAPStruct* Value0)
+void InteropTestPortType::echoVoid()
{
- SOAPStruct* pReturn = NULL;
try
{
- if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL))
- return pReturn;
- m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoStruct");
+ if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+))
+ return ;
+ m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoVoid");
m_pCall->setSOAPVersion(SOAP_VER_1_1);
- m_pCall->setOperation("echoStruct", "http://soapinterop.org/");
+ m_pCall->setOperation("echoVoid", "http://soapinterop.org/");
applyUserPreferences();
- m_pCall->addCmplxParameter(Value0, (void*)Axis_Serialize_SOAPStruct, (void*)Axis_Delete_SOAPStruct, "inputStruct", Axis_URI_SOAPStruct);
if (AXIS_SUCCESS == m_pCall->invoke())
{
- if(AXIS_SUCCESS == m_pCall->checkMessage("echoStructResponse", "http://soapinterop.org/"))
+ if(AXIS_SUCCESS == m_pCall->checkMessage("echoVoidResponse", "http://soapinterop.org/"))
{
- pReturn = (SOAPStruct*)m_pCall->getCmplxObject((void*) Axis_DeSerialize_SOAPStruct, (void*) Axis_Create_SOAPStruct, (void*) Axis_Delete_SOAPStruct,"return", 0);
+ /*not successful*/
}
}
m_pCall->unInitialize();
- return pReturn;
}
catch(AxisException& e)
{
@@ -338,29 +1042,98 @@
/*
- * This method wrap the service method echoStructArray
+ * This method wrap the service method echoBase64
*/
-SOAPStruct_Array InteropTestPortType::echoStructArray(SOAPStruct_Array Value0)
+xsd__base64Binary InteropTestPortType::echoBase64(xsd__base64Binary Value0)
{
- SOAPStruct_Array RetArray = {NULL, 0};
+ xsd__base64Binary Ret;
try
{
- if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL))
- return RetArray;
- m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoStructArray");
+ if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+))
+ return Ret;
+ m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoBase64");
m_pCall->setSOAPVersion(SOAP_VER_1_1);
- m_pCall->setOperation("echoStructArray", "http://soapinterop.org/");
+ m_pCall->setOperation("echoBase64", "http://soapinterop.org/");
applyUserPreferences();
- m_pCall->addCmplxArrayParameter((Axis_Array*)(&Value0), (void*)Axis_Serialize_SOAPStruct, (void*)Axis_Delete_SOAPStruct, (void*) Axis_GetSize_SOAPStruct, "inputStructArray", Axis_URI_SOAPStruct);
+ m_pCall->addParameter((void*)&Value0, "inputBase64", XSD_BASE64BINARY);
if (AXIS_SUCCESS == m_pCall->invoke())
{
- if(AXIS_SUCCESS == m_pCall->checkMessage("echoStructArrayResponse", "http://soapinterop.org/"))
+ if(AXIS_SUCCESS == m_pCall->checkMessage("echoBase64Response", "http://soapinterop.org/"))
{
- RetArray = (SOAPStruct_Array&)m_pCall->getCmplxArray((void*) Axis_DeSerialize_SOAPStruct, (void*) Axis_Create_SOAPStruct, (void*) Axis_Delete_SOAPStruct, (void*) Axis_GetSize_SOAPStruct, "return", Axis_URI_SOAPStruct);
+ Ret = m_pCall->getElementAsBase64Binary("return", 0);
}
}
m_pCall->unInitialize();
- return RetArray;
+ return Ret;
}
catch(AxisException& e)
{
@@ -381,97 +1154,83 @@
/*
- * This method wrap the service method echoVoid
+ * This method wrap the service method echoDate
*/
-void InteropTestPortType::echoVoid()
+xsd__dateTime InteropTestPortType::echoDate(xsd__dateTime Value0)
{
+ xsd__dateTime Ret;
try
{
- if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL))
- return ;
- m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoVoid");
- m_pCall->setSOAPVersion(SOAP_VER_1_1);
- m_pCall->setOperation("echoVoid", "http://soapinterop.org/");
- applyUserPreferences();
- if (AXIS_SUCCESS == m_pCall->invoke())
- {
- if(AXIS_SUCCESS == m_pCall->checkMessage("echoVoidResponse", "http://soapinterop.org/"))
- {
- /*not successful*/
- }
- }
- m_pCall->unInitialize();
- }
- catch(AxisException& e)
- {
- 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;
- }
-}
+ if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-/*
- * This method wrap the service method echoBase64
- */
-xsd__base64Binary InteropTestPortType::echoBase64(xsd__base64Binary Value0)
-{
- xsd__base64Binary Ret;
- try
- {
- if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL))
- return Ret;
- m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoBase64");
- m_pCall->setSOAPVersion(SOAP_VER_1_1);
- m_pCall->setOperation("echoBase64", "http://soapinterop.org/");
- applyUserPreferences();
- m_pCall->addParameter((void*)&Value0, "inputBase64", XSD_BASE64BINARY);
- if (AXIS_SUCCESS == m_pCall->invoke())
- {
- if(AXIS_SUCCESS == m_pCall->checkMessage("echoBase64Response", "http://soapinterop.org/"))
- {
- Ret = m_pCall->getElementAsBase64Binary("return", 0);
- }
- }
- m_pCall->unInitialize();
- return Ret;
- }
- catch(AxisException& e)
- {
- 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;
- }
-}
+
-/*
- * This method wrap the service method echoDate
- */
-xsd__dateTime InteropTestPortType::echoDate(xsd__dateTime Value0)
-{
- xsd__dateTime Ret;
- try
- {
- if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL))
+
+
+
+
+
+
+
+
+
+
+
+
+
+))
return Ret;
m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoDate");
m_pCall->setSOAPVersion(SOAP_VER_1_1);
@@ -514,7 +1273,76 @@
xsd__hexBinary Ret;
try
{
- if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL))
+ if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+))
return Ret;
m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoHexBinary");
m_pCall->setSOAPVersion(SOAP_VER_1_1);
@@ -557,7 +1385,76 @@
xsd__decimal Ret;
try
{
- if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL))
+ if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+))
return Ret;
m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoDecimal");
m_pCall->setSOAPVersion(SOAP_VER_1_1);
@@ -600,7 +1497,76 @@
xsd__boolean Ret;
try
{
- if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL))
+ if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+))
return Ret;
m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoBoolean");
m_pCall->setSOAPVersion(SOAP_VER_1_1);
1.8 +4437 -531 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.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- InteropTestPortType.cpp 29 Nov 2004 12:39:31 -0000 1.7
+++ InteropTestPortType.cpp 10 Jan 2005 10:06:32 -0000 1.8
@@ -44,18 +44,4158 @@
xsd__string Ret;
try
{
- if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL))
+ if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+))
+ return Ret;
+ m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoString");
+ m_pCall->setSOAPVersion(SOAP_VER_1_1);
+ m_pCall->setOperation("echoString", "http://soapinterop.org/");
+ applyUserPreferences();
+ m_pCall->addParameter((void*)&Value0, "inputString", XSD_STRING);
+ if (AXIS_SUCCESS == m_pCall->invoke())
+ {
+ if(AXIS_SUCCESS == m_pCall->checkMessage("echoStringResponse", "http://soapinterop.org/"))
+ {
+ Ret = m_pCall->getElementAsString("return", 0);
+ }
+ }
+ m_pCall->unInitialize();
+ return Ret;
+ }
+ catch(AxisException& e)
+ {
+ 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;
+ }
+}
+
+
+/*
+ * This method wrap the service method echoStringArray
+ */
+xsd__string_Array InteropTestPortType::echoStringArray(xsd__string_Array Value0)
+{
+ xsd__string_Array RetArray = {NULL, 0};
+ try
+ {
+ if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+))
+ return RetArray;
+ m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoStringArray");
+ m_pCall->setSOAPVersion(SOAP_VER_1_1);
+ m_pCall->setOperation("echoStringArray", "http://soapinterop.org/");
+ applyUserPreferences();
+ m_pCall->addBasicArrayParameter((Axis_Array*)(&Value0), XSD_STRING, "inputStringArray");
+ if (AXIS_SUCCESS == m_pCall->invoke())
+ {
+ if(AXIS_SUCCESS == m_pCall->checkMessage("echoStringArrayResponse", "http://soapinterop.org/"))
+ {
+ RetArray = (xsd__string_Array&)m_pCall->getBasicArray(XSD_STRING, "return", 0);
+ }
+ }
+ m_pCall->unInitialize();
+ return RetArray;
+ }
+ catch(AxisException& e)
+ {
+ 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;
+ }
+}
+
+
+/*
+ * This method wrap the service method echoInteger
+ */
+int InteropTestPortType::echoInteger(int Value0)
+{
+ int Ret;
+ try
+ {
+ if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+))
+ return Ret;
+ m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoInteger");
+ m_pCall->setSOAPVersion(SOAP_VER_1_1);
+ m_pCall->setOperation("echoInteger", "http://soapinterop.org/");
+ applyUserPreferences();
+ m_pCall->addParameter((void*)&Value0, "inputInteger", XSD_INT);
+ if (AXIS_SUCCESS == m_pCall->invoke())
+ {
+ if(AXIS_SUCCESS == m_pCall->checkMessage("echoIntegerResponse", "http://soapinterop.org/"))
+ {
+ Ret = m_pCall->getElementAsInt("return", 0);
+ }
+ }
+ m_pCall->unInitialize();
+ return Ret;
+ }
+ catch(AxisException& e)
+ {
+ 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;
+ }
+}
+
+
+/*
+ * This method wrap the service method echoIntegerArray
+ */
+xsd__int_Array InteropTestPortType::echoIntegerArray(xsd__int_Array Value0)
+{
+ xsd__int_Array RetArray = {NULL, 0};
+ try
+ {
+ if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+))
+ return RetArray;
+ m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoIntegerArray");
+ m_pCall->setSOAPVersion(SOAP_VER_1_1);
+ m_pCall->setOperation("echoIntegerArray", "http://soapinterop.org/");
+ applyUserPreferences();
+ m_pCall->addBasicArrayParameter((Axis_Array*)(&Value0), XSD_INT, "inputIntegerArray");
+ if (AXIS_SUCCESS == m_pCall->invoke())
+ {
+ if(AXIS_SUCCESS == m_pCall->checkMessage("echoIntegerArrayResponse", "http://soapinterop.org/"))
+ {
+ RetArray = (xsd__int_Array&)m_pCall->getBasicArray(XSD_INT, "return", 0);
+ }
+ }
+ m_pCall->unInitialize();
+ return RetArray;
+ }
+ catch(AxisException& e)
+ {
+ 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;
+ }
+}
+
+
+/*
+ * This method wrap the service method echoFloat
+ */
+float InteropTestPortType::echoFloat(float Value0)
+{
+ float Ret;
+ try
+ {
+ if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+))
+ return Ret;
+ m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoFloat");
+ m_pCall->setSOAPVersion(SOAP_VER_1_1);
+ m_pCall->setOperation("echoFloat", "http://soapinterop.org/");
+ applyUserPreferences();
+ m_pCall->addParameter((void*)&Value0, "inputFloat", XSD_FLOAT);
+ if (AXIS_SUCCESS == m_pCall->invoke())
+ {
+ if(AXIS_SUCCESS == m_pCall->checkMessage("echoFloatResponse", "http://soapinterop.org/"))
+ {
+ Ret = m_pCall->getElementAsFloat("return", 0);
+ }
+ }
+ m_pCall->unInitialize();
+ return Ret;
+ }
+ catch(AxisException& e)
+ {
+ 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;
+ }
+}
+
+
+/*
+ * This method wrap the service method echoFloatArray
+ */
+xsd__float_Array InteropTestPortType::echoFloatArray(xsd__float_Array Value0)
+{
+ xsd__float_Array RetArray = {NULL, 0};
+ try
+ {
+ if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+))
+ return RetArray;
+ m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoFloatArray");
+ m_pCall->setSOAPVersion(SOAP_VER_1_1);
+ m_pCall->setOperation("echoFloatArray", "http://soapinterop.org/");
+ applyUserPreferences();
+ m_pCall->addBasicArrayParameter((Axis_Array*)(&Value0), XSD_FLOAT, "inputFloatArray");
+ if (AXIS_SUCCESS == m_pCall->invoke())
+ {
+ if(AXIS_SUCCESS == m_pCall->checkMessage("echoFloatArrayResponse", "http://soapinterop.org/"))
+ {
+ RetArray = (xsd__float_Array&)m_pCall->getBasicArray(XSD_FLOAT, "return", 0);
+ }
+ }
+ m_pCall->unInitialize();
+ return RetArray;
+ }
+ catch(AxisException& e)
+ {
+ 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;
+ }
+}
+
+
+/*
+ * This method wrap the service method echoStruct
+ */
+SOAPStruct* InteropTestPortType::echoStruct(SOAPStruct* Value0)
+{
+ SOAPStruct* pReturn = NULL;
+ try
+ {
+ if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+))
+ return pReturn;
+ m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoStruct");
+ m_pCall->setSOAPVersion(SOAP_VER_1_1);
+ m_pCall->setOperation("echoStruct", "http://soapinterop.org/");
+ applyUserPreferences();
+ m_pCall->addCmplxParameter(Value0, (void*)Axis_Serialize_SOAPStruct, (void*)Axis_Delete_SOAPStruct, "inputStruct", Axis_URI_SOAPStruct);
+ if (AXIS_SUCCESS == m_pCall->invoke())
+ {
+ if(AXIS_SUCCESS == m_pCall->checkMessage("echoStructResponse", "http://soapinterop.org/"))
+ {
+ pReturn = (SOAPStruct*)m_pCall->getCmplxObject((void*) Axis_DeSerialize_SOAPStruct, (void*) Axis_Create_SOAPStruct, (void*) Axis_Delete_SOAPStruct,"return", 0);
+ }
+ }
+ m_pCall->unInitialize();
+ return pReturn;
+ }
+ catch(AxisException& e)
+ {
+ 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;
+ }
+}
+
+
+/*
+ * This method wrap the service method echoStructArray
+ */
+SOAPStruct_Array InteropTestPortType::echoStructArray(SOAPStruct_Array Value0)
+{
+ SOAPStruct_Array RetArray = {NULL, 0};
+ try
+ {
+ if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+))
+ return RetArray;
+ m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoStructArray");
+ m_pCall->setSOAPVersion(SOAP_VER_1_1);
+ m_pCall->setOperation("echoStructArray", "http://soapinterop.org/");
+ applyUserPreferences();
+ m_pCall->addCmplxArrayParameter((Axis_Array*)(&Value0), (void*)Axis_Serialize_SOAPStruct, (void*)Axis_Delete_SOAPStruct, (void*) Axis_GetSize_SOAPStruct, "inputStructArray", Axis_URI_SOAPStruct);
+ if (AXIS_SUCCESS == m_pCall->invoke())
+ {
+ if(AXIS_SUCCESS == m_pCall->checkMessage("echoStructArrayResponse", "http://soapinterop.org/"))
+ {
+ RetArray = (SOAPStruct_Array&)m_pCall->getCmplxArray((void*) Axis_DeSerialize_SOAPStruct, (void*) Axis_Create_SOAPStruct, (void*) Axis_Delete_SOAPStruct, (void*) Axis_GetSize_SOAPStruct, "return", Axis_URI_SOAPStruct);
+ }
+ }
+ m_pCall->unInitialize();
+ return RetArray;
+ }
+ catch(AxisException& e)
+ {
+ 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;
+ }
+}
+
+
+/*
+ * This method wrap the service method echoVoid
+ */
+void InteropTestPortType::echoVoid()
+{
+ try
+ {
+ if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+))
+ return ;
+ m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoVoid");
+ m_pCall->setSOAPVersion(SOAP_VER_1_1);
+ m_pCall->setOperation("echoVoid", "http://soapinterop.org/");
+ applyUserPreferences();
+ if (AXIS_SUCCESS == m_pCall->invoke())
+ {
+ if(AXIS_SUCCESS == m_pCall->checkMessage("echoVoidResponse", "http://soapinterop.org/"))
+ {
+ /*not successful*/
+ }
+ }
+ m_pCall->unInitialize();
+ }
+ catch(AxisException& e)
+ {
+ 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;
+ }
+}
+
+
+/*
+ * This method wrap the service method echoBase64
+ */
+xsd__base64Binary InteropTestPortType::echoBase64(xsd__base64Binary Value0)
+{
+ xsd__base64Binary Ret;
+ try
+ {
+ if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+))
+ return Ret;
+ m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoBase64");
+ m_pCall->setSOAPVersion(SOAP_VER_1_1);
+ m_pCall->setOperation("echoBase64", "http://soapinterop.org/");
+ applyUserPreferences();
+ m_pCall->addParameter((void*)&Value0, "inputBase64", XSD_BASE64BINARY);
+ if (AXIS_SUCCESS == m_pCall->invoke())
+ {
+ if(AXIS_SUCCESS == m_pCall->checkMessage("echoBase64Response", "http://soapinterop.org/"))
+ {
+ Ret = m_pCall->getElementAsBase64Binary("return", 0);
+ }
+ }
+ m_pCall->unInitialize();
+ return Ret;
+ }
+ catch(AxisException& e)
+ {
+ 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;
+ }
+}
+
+
+/*
+ * This method wrap the service method echoDate
+ */
+xsd__dateTime InteropTestPortType::echoDate(xsd__dateTime Value0)
+{
+ xsd__dateTime Ret;
+ try
+ {
+ if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+))
+ return Ret;
+ m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoDate");
+ m_pCall->setSOAPVersion(SOAP_VER_1_1);
+ m_pCall->setOperation("echoDate", "http://soapinterop.org/");
+ applyUserPreferences();
+ m_pCall->addParameter((void*)&Value0, "inputDate", XSD_DATETIME);
+ if (AXIS_SUCCESS == m_pCall->invoke())
+ {
+ if(AXIS_SUCCESS == m_pCall->checkMessage("echoDateResponse", "http://soapinterop.org/"))
+ {
+ Ret = m_pCall->getElementAsDateTime("return", 0);
+ }
+ }
+ m_pCall->unInitialize();
+ return Ret;
+ }
+ catch(AxisException& e)
+ {
+ 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;
+ }
+}
+
+
+/*
+ * This method wrap the service method echoHexBinary
+ */
+xsd__hexBinary InteropTestPortType::echoHexBinary(xsd__hexBinary Value0)
+{
+ xsd__hexBinary Ret;
+ try
+ {
+ if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+))
+ return Ret;
+ m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoHexBinary");
+ m_pCall->setSOAPVersion(SOAP_VER_1_1);
+ m_pCall->setOperation("echoHexBinary", "http://soapinterop.org/");
+ applyUserPreferences();
+ m_pCall->addParameter((void*)&Value0, "inputHexBinary", XSD_HEXBINARY);
+ if (AXIS_SUCCESS == m_pCall->invoke())
+ {
+ if(AXIS_SUCCESS == m_pCall->checkMessage("echoHexBinaryResponse", "http://soapinterop.org/"))
+ {
+ Ret = m_pCall->getElementAsHexBinary("return", 0);
+ }
+ }
+ m_pCall->unInitialize();
+ return Ret;
+ }
+ catch(AxisException& e)
+ {
+ 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;
+ }
+}
+
+
+/*
+ * This method wrap the service method echoDecimal
+ */
+xsd__decimal InteropTestPortType::echoDecimal(xsd__decimal Value0)
+{
+ xsd__decimal Ret;
+ try
+ {
+ if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+))
return Ret;
- m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoString");
+ m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoDecimal");
m_pCall->setSOAPVersion(SOAP_VER_1_1);
- m_pCall->setOperation("echoString", "http://soapinterop.org/");
+ m_pCall->setOperation("echoDecimal", "http://soapinterop.org/");
applyUserPreferences();
- m_pCall->addParameter((void*)&Value0, "inputString", XSD_STRING);
+ m_pCall->addParameter((void*)&Value0, "inputDecimal", XSD_DECIMAL);
if (AXIS_SUCCESS == m_pCall->invoke())
{
- if(AXIS_SUCCESS == m_pCall->checkMessage("echoStringResponse", "http://soapinterop.org/"))
+ if(AXIS_SUCCESS == m_pCall->checkMessage("echoDecimalResponse", "http://soapinterop.org/"))
{
- Ret = m_pCall->getElementAsString("return", 0);
+ Ret = m_pCall->getElementAsDecimal("return", 0);
}
}
m_pCall->unInitialize();
@@ -79,528 +4219,294 @@
}
-/*
- * This method wrap the service method echoStringArray
- */
-xsd__string_Array InteropTestPortType::echoStringArray(xsd__string_Array Value0)
-{
- xsd__string_Array RetArray = {NULL, 0};
- try
- {
- if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL))
- return RetArray;
- m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoStringArray");
- m_pCall->setSOAPVersion(SOAP_VER_1_1);
- m_pCall->setOperation("echoStringArray", "http://soapinterop.org/");
- applyUserPreferences();
- m_pCall->addBasicArrayParameter((Axis_Array*)(&Value0), XSD_STRING, "inputStringArray");
- if (AXIS_SUCCESS == m_pCall->invoke())
- {
- if(AXIS_SUCCESS == m_pCall->checkMessage("echoStringArrayResponse", "http://soapinterop.org/"))
- {
- RetArray = (xsd__string_Array&)m_pCall->getBasicArray(XSD_STRING, "return", 0);
- }
- }
- m_pCall->unInitialize();
- return RetArray;
- }
- catch(AxisException& e)
- {
- 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;
- }
-}
+/*
+ * This method wrap the service method echoBoolean
+ */
+xsd__boolean InteropTestPortType::echoBoolean(xsd__boolean Value0)
+{
+ xsd__boolean Ret;
+ try
+ {
+ if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-/*
- * This method wrap the service method echoInteger
- */
-int InteropTestPortType::echoInteger(int Value0)
-{
- int Ret;
- try
- {
- if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL))
- return Ret;
- m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoInteger");
- m_pCall->setSOAPVersion(SOAP_VER_1_1);
- m_pCall->setOperation("echoInteger", "http://soapinterop.org/");
- applyUserPreferences();
- m_pCall->addParameter((void*)&Value0, "inputInteger", XSD_INT);
- if (AXIS_SUCCESS == m_pCall->invoke())
- {
- if(AXIS_SUCCESS == m_pCall->checkMessage("echoIntegerResponse", "http://soapinterop.org/"))
- {
- Ret = m_pCall->getElementAsInt("return", 0);
- }
- }
- m_pCall->unInitialize();
- return Ret;
- }
- catch(AxisException& e)
- {
- 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;
- }
-}
-/*
- * This method wrap the service method echoIntegerArray
- */
-xsd__int_Array InteropTestPortType::echoIntegerArray(xsd__int_Array Value0)
-{
- xsd__int_Array RetArray = {NULL, 0};
- try
- {
- if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL))
- return RetArray;
- m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoIntegerArray");
- m_pCall->setSOAPVersion(SOAP_VER_1_1);
- m_pCall->setOperation("echoIntegerArray", "http://soapinterop.org/");
- applyUserPreferences();
- m_pCall->addBasicArrayParameter((Axis_Array*)(&Value0), XSD_INT, "inputIntegerArray");
- if (AXIS_SUCCESS == m_pCall->invoke())
- {
- if(AXIS_SUCCESS == m_pCall->checkMessage("echoIntegerArrayResponse", "http://soapinterop.org/"))
- {
- RetArray = (xsd__int_Array&)m_pCall->getBasicArray(XSD_INT, "return", 0);
- }
- }
- m_pCall->unInitialize();
- return RetArray;
- }
- catch(AxisException& e)
- {
- 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;
- }
-}
-/*
- * This method wrap the service method echoFloat
- */
-float InteropTestPortType::echoFloat(float Value0)
-{
- float Ret;
- try
- {
- if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL))
- return Ret;
- m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoFloat");
- m_pCall->setSOAPVersion(SOAP_VER_1_1);
- m_pCall->setOperation("echoFloat", "http://soapinterop.org/");
- applyUserPreferences();
- m_pCall->addParameter((void*)&Value0, "inputFloat", XSD_FLOAT);
- if (AXIS_SUCCESS == m_pCall->invoke())
- {
- if(AXIS_SUCCESS == m_pCall->checkMessage("echoFloatResponse", "http://soapinterop.org/"))
- {
- Ret = m_pCall->getElementAsFloat("return", 0);
- }
- }
- m_pCall->unInitialize();
- return Ret;
- }
- catch(AxisException& e)
- {
- 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;
- }
-}
-/*
- * This method wrap the service method echoFloatArray
- */
-xsd__float_Array InteropTestPortType::echoFloatArray(xsd__float_Array Value0)
-{
- xsd__float_Array RetArray = {NULL, 0};
- try
- {
- if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL))
- return RetArray;
- m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoFloatArray");
- m_pCall->setSOAPVersion(SOAP_VER_1_1);
- m_pCall->setOperation("echoFloatArray", "http://soapinterop.org/");
- applyUserPreferences();
- m_pCall->addBasicArrayParameter((Axis_Array*)(&Value0), XSD_FLOAT, "inputFloatArray");
- if (AXIS_SUCCESS == m_pCall->invoke())
- {
- if(AXIS_SUCCESS == m_pCall->checkMessage("echoFloatArrayResponse", "http://soapinterop.org/"))
- {
- RetArray = (xsd__float_Array&)m_pCall->getBasicArray(XSD_FLOAT, "return", 0);
- }
- }
- m_pCall->unInitialize();
- return RetArray;
- }
- catch(AxisException& e)
- {
- 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;
- }
-}
-/*
- * This method wrap the service method echoStruct
- */
-SOAPStruct* InteropTestPortType::echoStruct(SOAPStruct* Value0)
-{
- SOAPStruct* pReturn = NULL;
- try
- {
- if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL))
- return pReturn;
- m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoStruct");
- m_pCall->setSOAPVersion(SOAP_VER_1_1);
- m_pCall->setOperation("echoStruct", "http://soapinterop.org/");
- applyUserPreferences();
- m_pCall->addCmplxParameter(Value0, (void*)Axis_Serialize_SOAPStruct, (void*)Axis_Delete_SOAPStruct, "inputStruct", Axis_URI_SOAPStruct);
- if (AXIS_SUCCESS == m_pCall->invoke())
- {
- if(AXIS_SUCCESS == m_pCall->checkMessage("echoStructResponse", "http://soapinterop.org/"))
- {
- pReturn = (SOAPStruct*)m_pCall->getCmplxObject((void*) Axis_DeSerialize_SOAPStruct, (void*) Axis_Create_SOAPStruct, (void*) Axis_Delete_SOAPStruct,"return", 0);
- }
- }
- m_pCall->unInitialize();
- return pReturn;
- }
- catch(AxisException& e)
- {
- 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;
- }
-}
-/*
- * This method wrap the service method echoStructArray
- */
-SOAPStruct_Array InteropTestPortType::echoStructArray(SOAPStruct_Array Value0)
-{
- SOAPStruct_Array RetArray = {NULL, 0};
- try
- {
- if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL))
- return RetArray;
- m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoStructArray");
- m_pCall->setSOAPVersion(SOAP_VER_1_1);
- m_pCall->setOperation("echoStructArray", "http://soapinterop.org/");
- applyUserPreferences();
- m_pCall->addCmplxArrayParameter((Axis_Array*)(&Value0), (void*)Axis_Serialize_SOAPStruct, (void*)Axis_Delete_SOAPStruct, (void*) Axis_GetSize_SOAPStruct, "inputStructArray", Axis_URI_SOAPStruct);
- if (AXIS_SUCCESS == m_pCall->invoke())
- {
- if(AXIS_SUCCESS == m_pCall->checkMessage("echoStructArrayResponse", "http://soapinterop.org/"))
- {
- RetArray = (SOAPStruct_Array&)m_pCall->getCmplxArray((void*) Axis_DeSerialize_SOAPStruct, (void*) Axis_Create_SOAPStruct, (void*) Axis_Delete_SOAPStruct, (void*) Axis_GetSize_SOAPStruct, "return", Axis_URI_SOAPStruct);
- }
- }
- m_pCall->unInitialize();
- return RetArray;
- }
- catch(AxisException& e)
- {
- 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;
- }
-}
-/*
- * This method wrap the service method echoVoid
- */
-void InteropTestPortType::echoVoid()
-{
- try
- {
- if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL))
- return ;
- m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoVoid");
- m_pCall->setSOAPVersion(SOAP_VER_1_1);
- m_pCall->setOperation("echoVoid", "http://soapinterop.org/");
- applyUserPreferences();
- if (AXIS_SUCCESS == m_pCall->invoke())
- {
- if(AXIS_SUCCESS == m_pCall->checkMessage("echoVoidResponse", "http://soapinterop.org/"))
- {
- /*not successful*/
- }
- }
- m_pCall->unInitialize();
- }
- catch(AxisException& e)
- {
- 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;
- }
-}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-/*
- * This method wrap the service method echoBase64
- */
-xsd__base64Binary InteropTestPortType::echoBase64(xsd__base64Binary Value0)
-{
- xsd__base64Binary Ret;
- try
- {
- if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL))
- return Ret;
- m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoBase64");
- m_pCall->setSOAPVersion(SOAP_VER_1_1);
- m_pCall->setOperation("echoBase64", "http://soapinterop.org/");
- applyUserPreferences();
- m_pCall->addParameter((void*)&Value0, "inputBase64", XSD_BASE64BINARY);
- if (AXIS_SUCCESS == m_pCall->invoke())
- {
- if(AXIS_SUCCESS == m_pCall->checkMessage("echoBase64Response", "http://soapinterop.org/"))
- {
- Ret = m_pCall->getElementAsBase64Binary("return", 0);
- }
- }
- m_pCall->unInitialize();
- return Ret;
- }
- catch(AxisException& e)
- {
- 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;
- }
-}
-/*
- * This method wrap the service method echoDate
- */
-xsd__dateTime InteropTestPortType::echoDate(xsd__dateTime Value0)
-{
- xsd__dateTime Ret;
- try
- {
- if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL))
- return Ret;
- m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoDate");
- m_pCall->setSOAPVersion(SOAP_VER_1_1);
- m_pCall->setOperation("echoDate", "http://soapinterop.org/");
- applyUserPreferences();
- m_pCall->addParameter((void*)&Value0, "inputDate", XSD_DATETIME);
- if (AXIS_SUCCESS == m_pCall->invoke())
- {
- if(AXIS_SUCCESS == m_pCall->checkMessage("echoDateResponse", "http://soapinterop.org/"))
- {
- Ret = m_pCall->getElementAsDateTime("return", 0);
- }
- }
- m_pCall->unInitialize();
- return Ret;
- }
- catch(AxisException& e)
- {
- 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;
- }
-}
-/*
- * This method wrap the service method echoHexBinary
- */
-xsd__hexBinary InteropTestPortType::echoHexBinary(xsd__hexBinary Value0)
-{
- xsd__hexBinary Ret;
- try
- {
- if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL))
- return Ret;
- m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoHexBinary");
- m_pCall->setSOAPVersion(SOAP_VER_1_1);
- m_pCall->setOperation("echoHexBinary", "http://soapinterop.org/");
- applyUserPreferences();
- m_pCall->addParameter((void*)&Value0, "inputHexBinary", XSD_HEXBINARY);
- if (AXIS_SUCCESS == m_pCall->invoke())
- {
- if(AXIS_SUCCESS == m_pCall->checkMessage("echoHexBinaryResponse", "http://soapinterop.org/"))
- {
- Ret = m_pCall->getElementAsHexBinary("return", 0);
- }
- }
- m_pCall->unInitialize();
- return Ret;
- }
- catch(AxisException& e)
- {
- 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;
- }
-}
-/*
- * This method wrap the service method echoDecimal
- */
-xsd__decimal InteropTestPortType::echoDecimal(xsd__decimal Value0)
-{
- xsd__decimal Ret;
- try
- {
- if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL))
- return Ret;
- m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoDecimal");
- m_pCall->setSOAPVersion(SOAP_VER_1_1);
- m_pCall->setOperation("echoDecimal", "http://soapinterop.org/");
- applyUserPreferences();
- m_pCall->addParameter((void*)&Value0, "inputDecimal", XSD_DECIMAL);
- if (AXIS_SUCCESS == m_pCall->invoke())
- {
- if(AXIS_SUCCESS == m_pCall->checkMessage("echoDecimalResponse", "http://soapinterop.org/"))
- {
- Ret = m_pCall->getElementAsDecimal("return", 0);
- }
- }
- m_pCall->unInitialize();
- return Ret;
- }
- catch(AxisException& e)
- {
- 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;
- }
-}
-/*
- * This method wrap the service method echoBoolean
- */
-xsd__boolean InteropTestPortType::echoBoolean(xsd__boolean Value0)
-{
- xsd__boolean Ret;
- try
- {
- if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL))
+
+
+
+
+
+
+
+
+
+
+
+))
return Ret;
m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoBoolean");
m_pCall->setSOAPVersion(SOAP_VER_1_1);
1.6 +2050 -70 ws-axis/c/tests/client/threadSafe/WinClient/Calculator.cpp
Index: Calculator.cpp
===================================================================
RCS file: /home/cvs/ws-axis/c/tests/client/threadSafe/WinClient/Calculator.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- Calculator.cpp 24 Nov 2004 13:25:21 -0000 1.5
+++ Calculator.cpp 10 Jan 2005 10:06:32 -0000 1.6
@@ -33,18 +33,1553 @@
int Calculator::add(int Value0, int Value1)
{
int Ret;
- if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL)) return Ret;
+ if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+)) return Ret;
m_pCall->setTransportProperty(SOAPACTION_HEADER , "Calculator#add");
m_pCall->setSOAPVersion(SOAP_VER_1_1);
- m_pCall->setOperation("add", "http://localhost/axis/Calculator");
+ m_pCall->setOperation("add", "http://localhost/axis/Calculator");
+ m_pCall->addParameter((void*)&Value0, "in0", XSD_INT);
+ m_pCall->addParameter((void*)&Value1, "in1", XSD_INT);
+ if (AXIS_SUCCESS == m_pCall->invoke())
+ {
+ if(AXIS_SUCCESS == m_pCall->checkMessage("addResponse", "http://localhost/axis/Calculator"))
+ {
+ Ret = m_pCall->getElementAsInt("addReturn", 0);
+ printf("Ret:%d\n", Ret);
+ }
+ }
+ m_pCall->unInitialize();
+ return Ret;
+}
+
+
+/*
+ * This method wrap the service methodsub
+ */
+int Calculator::sub(int Value0, int Value1)
+{
+ int Ret;
+ if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+)) return Ret;
+ m_pCall->setTransportProperty(SOAPACTION_HEADER , "Calculator#sub");
+ m_pCall->setSOAPVersion(SOAP_VER_1_1);
+ m_pCall->setOperation("sub", "http://localhost/axis/Calculator");
+ m_pCall->addParameter((void*)&Value0, "in0", XSD_INT);
+ m_pCall->addParameter((void*)&Value1, "in1", XSD_INT);
+ if (AXIS_SUCCESS == m_pCall->invoke())
+ {
+ if(AXIS_SUCCESS == m_pCall->checkMessage("subResponse", "http://localhost/axis/Calculator"))
+ {
+ Ret = m_pCall->getElementAsInt("subReturn", 0);
+ printf("Ret:%d\n", Ret);
+ }
+ }
+ m_pCall->unInitialize();
+ return Ret;
+}
+
+
+/*
+ * This method wrap the service methodmul
+ */
+int Calculator::mul(int Value0, int Value1)
+{
+ int Ret;
+ if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+)) return Ret;
+ m_pCall->setTransportProperty(SOAPACTION_HEADER , "Calculator#mul");
+ m_pCall->setSOAPVersion(SOAP_VER_1_1);
+ m_pCall->setOperation("mul", "http://localhost/axis/Calculator");
m_pCall->addParameter((void*)&Value0, "in0", XSD_INT);
m_pCall->addParameter((void*)&Value1, "in1", XSD_INT);
if (AXIS_SUCCESS == m_pCall->invoke())
{
- if(AXIS_SUCCESS == m_pCall->checkMessage("addResponse", "http://localhost/axis/Calculator"))
+ if(AXIS_SUCCESS == m_pCall->checkMessage("mulResponse", "http://localhost/axis/Calculator"))
{
Ret = m_pCall->getElementAsInt("addReturn", 0);
- printf("Ret:%d\n", Ret);
+ printf("Ret:%d\n", Ret);
}
}
m_pCall->unInitialize();
@@ -52,63 +1587,508 @@
}
-/*
- * This method wrap the service methodsub
- */
-int Calculator::sub(int Value0, int Value1)
-{
- int Ret;
- if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL)) return Ret;
- m_pCall->setTransportProperty(SOAPACTION_HEADER , "Calculator#sub");
- m_pCall->setSOAPVersion(SOAP_VER_1_1);
- m_pCall->setOperation("sub", "http://localhost/axis/Calculator");
- m_pCall->addParameter((void*)&Value0, "in0", XSD_INT);
- m_pCall->addParameter((void*)&Value1, "in1", XSD_INT);
- if (AXIS_SUCCESS == m_pCall->invoke())
- {
- if(AXIS_SUCCESS == m_pCall->checkMessage("subResponse", "http://localhost/axis/Calculator"))
- {
- Ret = m_pCall->getElementAsInt("subReturn", 0);
- printf("Ret:%d\n", Ret);
- }
- }
- m_pCall->unInitialize();
- return Ret;
-}
+/*
+ * This method wrap the service methoddiv
+ */
+int Calculator::div(int Value0, int Value1)
+{
+ int Ret;
+ if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-/*
- * This method wrap the service methodmul
- */
-int Calculator::mul(int Value0, int Value1)
-{
- int Ret;
- if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL)) return Ret;
- m_pCall->setTransportProperty(SOAPACTION_HEADER , "Calculator#mul");
- m_pCall->setSOAPVersion(SOAP_VER_1_1);
- m_pCall->setOperation("mul", "http://localhost/axis/Calculator");
- m_pCall->addParameter((void*)&Value0, "in0", XSD_INT);
- m_pCall->addParameter((void*)&Value1, "in1", XSD_INT);
- if (AXIS_SUCCESS == m_pCall->invoke())
- {
- if(AXIS_SUCCESS == m_pCall->checkMessage("mulResponse", "http://localhost/axis/Calculator"))
- {
- Ret = m_pCall->getElementAsInt("addReturn", 0);
- printf("Ret:%d\n", Ret);
- }
- }
- m_pCall->unInitialize();
- return Ret;
-}
-/*
- * This method wrap the service methoddiv
- */
-int Calculator::div(int Value0, int Value1)
-{
- int Ret;
- if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL)) return Ret;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+)) return Ret;
m_pCall->setTransportProperty(SOAPACTION_HEADER , "Calculator#div");
m_pCall->setSOAPVersion(SOAP_VER_1_1);
m_pCall->setOperation("div", "http://localhost/axis/Calculator");
1.7 +1 -1 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.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- ExtensibilityQueryPortType.cpp 24 Nov 2004 13:25:22 -0000 1.6
+++ ExtensibilityQueryPortType.cpp 10 Jan 2005 10:06:32 -0000 1.7
@@ -39,7 +39,7 @@
{
AnyType* pReturn = NULL;
try
- { if (AXIS_SUCCESS != m_pCall->initialize(CPP_DOC_PROVIDER, NORMAL_CHANNEL)) return pReturn;
+ { if (AXIS_SUCCESS != m_pCall->initialize(CPP_DOC_PROVIDER)) return pReturn;
m_pCall->setTransportProperty(SOAPACTION_HEADER , "testXSDANY#query");
m_pCall->setSOAPVersion(SOAP_VER_1_1);
m_pCall->setOperation("query", "urn:ExtensibilityQuery");