axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nit...@apache.org
Subject cvs commit: ws-axis/c/samples/client/interoptests/base InteropTestPortType.cpp SOAPStruct.cpp
Date Tue, 22 Feb 2005 03:50:20 GMT
nithya      2005/02/21 19:50:20

  Modified:    c/samples/client/interoptests/base InteropTestPortType.cpp
                        SOAPStruct.cpp
  Log:
  updated the source with wsdl2ws tool generated source
  
  Revision  Changes    Path
  1.32      +52 -56    ws-axis/c/samples/client/interoptests/base/InteropTestPortType.cpp
  
  Index: InteropTestPortType.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/samples/client/interoptests/base/InteropTestPortType.cpp,v
  retrieving revision 1.31
  retrieving revision 1.32
  diff -u -r1.31 -r1.32
  --- InteropTestPortType.cpp	17 Feb 2005 16:28:40 -0000	1.31
  +++ InteropTestPortType.cpp	22 Feb 2005 03:50:20 -0000	1.32
  @@ -23,7 +23,7 @@
   InteropTestPortType::InteropTestPortType()
   :Stub(" ", APTHTTP1_1)
   {
  -	m_pCall->setEndpointURI("http://localhost/axis/InteropBase");
  +	m_pCall->setEndpointURI("http://localhost/axis/base");
   }
   
   InteropTestPortType::~InteropTestPortType()
  @@ -38,17 +38,17 @@
    */
   xsd__string InteropTestPortType::echoString(xsd__string Value0)
   {
  -	xsd__string Ret = NULL;
  +	xsd__string Ret;
   	const char* pcCmplxFaultName;
   	try
   	{
   		if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER)) 
   			return Ret;
  -		m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoString");
  +		m_pCall->setTransportProperty(SOAPACTION_HEADER , "base#echoString");
   		m_pCall->setSOAPVersion(SOAP_VER_1_1);
   		m_pCall->setOperation("echoString", "http://soapinterop.org/");
   		applyUserPreferences();
  -		m_pCall->addParameter((void*)&Value0, "inputString", XSD_STRING);
  +		m_pCall->addParameter((void*)Value0, "inputString", XSD_STRING);
   		if (AXIS_SUCCESS == m_pCall->invoke())
   		{
   			if(AXIS_SUCCESS == m_pCall->checkMessage("echoStringResponse", "http://soapinterop.org/"))
  @@ -67,7 +67,7 @@
   			throw SoapFaultException(e);
   		}
   		ISoapFault* pSoapFault = (ISoapFault*)
  -			m_pCall->checkFault("Fault","http://localhost/axis/InteropBase" );
  +			m_pCall->checkFault("Fault","http://localhost/axis/base" );
   		if(pSoapFault)
   		{
   			m_pCall->unInitialize();
  @@ -89,7 +89,7 @@
   	{
   		if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER)) 
   			return RetArray;
  -		m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoStringArray");
  +		m_pCall->setTransportProperty(SOAPACTION_HEADER , "base#echoStringArray");
   		m_pCall->setSOAPVersion(SOAP_VER_1_1);
   		m_pCall->setOperation("echoStringArray", "http://soapinterop.org/");
   		applyUserPreferences();
  @@ -112,7 +112,7 @@
   			throw SoapFaultException(e);
   		}
   		ISoapFault* pSoapFault = (ISoapFault*)
  -			m_pCall->checkFault("Fault","http://localhost/axis/InteropBase" );
  +			m_pCall->checkFault("Fault","http://localhost/axis/base" );
   		if(pSoapFault)
   		{
   			m_pCall->unInitialize();
  @@ -128,13 +128,13 @@
    */
   xsd__int InteropTestPortType::echoInteger(xsd__int Value0)
   {
  -	xsd__int Ret = 0;
  +	xsd__int* Ret = NULL;
   	const char* pcCmplxFaultName;
   	try
   	{
   		if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER)) 
  -			return Ret;
  -		m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoInteger");
  +			return *Ret;
  +		m_pCall->setTransportProperty(SOAPACTION_HEADER , "base#echoInteger");
   		m_pCall->setSOAPVersion(SOAP_VER_1_1);
   		m_pCall->setOperation("echoInteger", "http://soapinterop.org/");
   		applyUserPreferences();
  @@ -147,7 +147,7 @@
   			}
   		}
   	m_pCall->unInitialize();
  -		return Ret;
  +		return *Ret;
   	}
   	catch(AxisException& e)
   	{
  @@ -157,7 +157,7 @@
   			throw SoapFaultException(e);
   		}
   		ISoapFault* pSoapFault = (ISoapFault*)
  -			m_pCall->checkFault("Fault","http://localhost/axis/InteropBase" );
  +			m_pCall->checkFault("Fault","http://localhost/axis/base" );
   		if(pSoapFault)
   		{
   			m_pCall->unInitialize();
  @@ -179,7 +179,7 @@
   	{
   		if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER)) 
   			return RetArray;
  -		m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoIntegerArray");
  +		m_pCall->setTransportProperty(SOAPACTION_HEADER , "base#echoIntegerArray");
   		m_pCall->setSOAPVersion(SOAP_VER_1_1);
   		m_pCall->setOperation("echoIntegerArray", "http://soapinterop.org/");
   		applyUserPreferences();
  @@ -202,7 +202,7 @@
   			throw SoapFaultException(e);
   		}
   		ISoapFault* pSoapFault = (ISoapFault*)
  -			m_pCall->checkFault("Fault","http://localhost/axis/InteropBase" );
  +			m_pCall->checkFault("Fault","http://localhost/axis/base" );
   		if(pSoapFault)
   		{
   			m_pCall->unInitialize();
  @@ -218,13 +218,13 @@
    */
   xsd__float InteropTestPortType::echoFloat(xsd__float Value0)
   {
  -	xsd__float Ret = 0.0;
  +	xsd__float* Ret = NULL;
   	const char* pcCmplxFaultName;
   	try
   	{
   		if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER)) 
  -			return Ret;
  -		m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoFloat");
  +			return *Ret;
  +		m_pCall->setTransportProperty(SOAPACTION_HEADER , "base#echoFloat");
   		m_pCall->setSOAPVersion(SOAP_VER_1_1);
   		m_pCall->setOperation("echoFloat", "http://soapinterop.org/");
   		applyUserPreferences();
  @@ -237,7 +237,7 @@
   			}
   		}
   	m_pCall->unInitialize();
  -		return Ret;
  +		return *Ret;
   	}
   	catch(AxisException& e)
   	{
  @@ -247,7 +247,7 @@
   			throw SoapFaultException(e);
   		}
   		ISoapFault* pSoapFault = (ISoapFault*)
  -			m_pCall->checkFault("Fault","http://localhost/axis/InteropBase" );
  +			m_pCall->checkFault("Fault","http://localhost/axis/base" );
   		if(pSoapFault)
   		{
   			m_pCall->unInitialize();
  @@ -269,7 +269,7 @@
   	{
   		if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER)) 
   			return RetArray;
  -		m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoFloatArray");
  +		m_pCall->setTransportProperty(SOAPACTION_HEADER , "base#echoFloatArray");
   		m_pCall->setSOAPVersion(SOAP_VER_1_1);
   		m_pCall->setOperation("echoFloatArray", "http://soapinterop.org/");
   		applyUserPreferences();
  @@ -292,7 +292,7 @@
   			throw SoapFaultException(e);
   		}
   		ISoapFault* pSoapFault = (ISoapFault*)
  -			m_pCall->checkFault("Fault","http://localhost/axis/InteropBase" );
  +			m_pCall->checkFault("Fault","http://localhost/axis/base" );
   		if(pSoapFault)
   		{
   			m_pCall->unInitialize();
  @@ -314,7 +314,7 @@
   	{
   		if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER)) 
   			return pReturn;
  -		m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoStruct");
  +		m_pCall->setTransportProperty(SOAPACTION_HEADER , "base#echoStruct");
   		m_pCall->setSOAPVersion(SOAP_VER_1_1);
   		m_pCall->setOperation("echoStruct", "http://soapinterop.org/");
   		applyUserPreferences();
  @@ -337,7 +337,7 @@
   			throw SoapFaultException(e);
   		}
   		ISoapFault* pSoapFault = (ISoapFault*)
  -			m_pCall->checkFault("Fault","http://localhost/axis/InteropBase" );
  +			m_pCall->checkFault("Fault","http://localhost/axis/base" );
   		if(pSoapFault)
   		{
   			m_pCall->unInitialize();
  @@ -359,7 +359,7 @@
   	{
   		if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER)) 
   			return RetArray;
  -		m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoStructArray");
  +		m_pCall->setTransportProperty(SOAPACTION_HEADER , "base#echoStructArray");
   		m_pCall->setSOAPVersion(SOAP_VER_1_1);
   		m_pCall->setOperation("echoStructArray", "http://soapinterop.org/");
   		applyUserPreferences();
  @@ -382,7 +382,7 @@
   			throw SoapFaultException(e);
   		}
   		ISoapFault* pSoapFault = (ISoapFault*)
  -			m_pCall->checkFault("Fault","http://localhost/axis/InteropBase" );
  +			m_pCall->checkFault("Fault","http://localhost/axis/base" );
   		if(pSoapFault)
   		{
   			m_pCall->unInitialize();
  @@ -403,7 +403,7 @@
   	{
   		if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER)) 
   			return ;
  -		m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoVoid");
  +		m_pCall->setTransportProperty(SOAPACTION_HEADER , "base#echoVoid");
   		m_pCall->setSOAPVersion(SOAP_VER_1_1);
   		m_pCall->setOperation("echoVoid", "http://soapinterop.org/");
   		applyUserPreferences();
  @@ -424,7 +424,7 @@
   			throw SoapFaultException(e);
   		}
   		ISoapFault* pSoapFault = (ISoapFault*)
  -			m_pCall->checkFault("Fault","http://localhost/axis/InteropBase" );
  +			m_pCall->checkFault("Fault","http://localhost/axis/base" );
   		if(pSoapFault)
   		{
   			m_pCall->unInitialize();
  @@ -440,15 +440,13 @@
    */
   xsd__base64Binary InteropTestPortType::echoBase64(xsd__base64Binary Value0)
   {
  -	xsd__base64Binary Ret;
  -	Ret.__ptr = NULL;
  -	Ret.__size = 0;
  +	xsd__base64Binary* Ret;
   	const char* pcCmplxFaultName;
   	try
   	{
   		if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER)) 
  -			return Ret;
  -		m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoBase64");
  +			return *Ret;
  +		m_pCall->setTransportProperty(SOAPACTION_HEADER , "base#echoBase64");
   		m_pCall->setSOAPVersion(SOAP_VER_1_1);
   		m_pCall->setOperation("echoBase64", "http://soapinterop.org/");
   		applyUserPreferences();
  @@ -461,7 +459,7 @@
   			}
   		}
   	m_pCall->unInitialize();
  -		return Ret;
  +		return *Ret;
   	}
   	catch(AxisException& e)
   	{
  @@ -471,7 +469,7 @@
   			throw SoapFaultException(e);
   		}
   		ISoapFault* pSoapFault = (ISoapFault*)
  -			m_pCall->checkFault("Fault","http://localhost/axis/InteropBase" );
  +			m_pCall->checkFault("Fault","http://localhost/axis/base" );
   		if(pSoapFault)
   		{
   			m_pCall->unInitialize();
  @@ -487,13 +485,13 @@
    */
   xsd__dateTime InteropTestPortType::echoDate(xsd__dateTime Value0)
   {
  -	xsd__dateTime Ret;
  +	xsd__dateTime* Ret;
   	const char* pcCmplxFaultName;
   	try
   	{
   		if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER)) 
  -			return Ret;
  -		m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoDate");
  +			return *Ret;
  +		m_pCall->setTransportProperty(SOAPACTION_HEADER , "base#echoDate");
   		m_pCall->setSOAPVersion(SOAP_VER_1_1);
   		m_pCall->setOperation("echoDate", "http://soapinterop.org/");
   		applyUserPreferences();
  @@ -506,7 +504,7 @@
   			}
   		}
   	m_pCall->unInitialize();
  -		return Ret;
  +		return *Ret;
   	}
   	catch(AxisException& e)
   	{
  @@ -516,7 +514,7 @@
   			throw SoapFaultException(e);
   		}
   		ISoapFault* pSoapFault = (ISoapFault*)
  -			m_pCall->checkFault("Fault","http://localhost/axis/InteropBase" );
  +			m_pCall->checkFault("Fault","http://localhost/axis/base" );
   		if(pSoapFault)
   		{
   			m_pCall->unInitialize();
  @@ -532,15 +530,13 @@
    */
   xsd__hexBinary InteropTestPortType::echoHexBinary(xsd__hexBinary Value0)
   {
  -	xsd__hexBinary Ret;
  -	Ret.__ptr = NULL;
  -	Ret.__size = 0;
  +	xsd__hexBinary* Ret;
   	const char* pcCmplxFaultName;
   	try
   	{
   		if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER)) 
  -			return Ret;
  -		m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoHexBinary");
  +			return *Ret;
  +		m_pCall->setTransportProperty(SOAPACTION_HEADER , "base#echoHexBinary");
   		m_pCall->setSOAPVersion(SOAP_VER_1_1);
   		m_pCall->setOperation("echoHexBinary", "http://soapinterop.org/");
   		applyUserPreferences();
  @@ -553,7 +549,7 @@
   			}
   		}
   	m_pCall->unInitialize();
  -		return Ret;
  +		return *Ret;
   	}
   	catch(AxisException& e)
   	{
  @@ -563,7 +559,7 @@
   			throw SoapFaultException(e);
   		}
   		ISoapFault* pSoapFault = (ISoapFault*)
  -			m_pCall->checkFault("Fault","http://localhost/axis/InteropBase" );
  +			m_pCall->checkFault("Fault","http://localhost/axis/base" );
   		if(pSoapFault)
   		{
   			m_pCall->unInitialize();
  @@ -579,13 +575,13 @@
    */
   xsd__decimal InteropTestPortType::echoDecimal(xsd__decimal Value0)
   {
  -	xsd__decimal Ret = 0.0;
  +	xsd__decimal* Ret = NULL;
   	const char* pcCmplxFaultName;
   	try
   	{
   		if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER)) 
  -			return Ret;
  -		m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoDecimal");
  +			return *Ret;
  +		m_pCall->setTransportProperty(SOAPACTION_HEADER , "base#echoDecimal");
   		m_pCall->setSOAPVersion(SOAP_VER_1_1);
   		m_pCall->setOperation("echoDecimal", "http://soapinterop.org/");
   		applyUserPreferences();
  @@ -598,7 +594,7 @@
   			}
   		}
   	m_pCall->unInitialize();
  -		return Ret;
  +		return *Ret;
   	}
   	catch(AxisException& e)
   	{
  @@ -608,7 +604,7 @@
   			throw SoapFaultException(e);
   		}
   		ISoapFault* pSoapFault = (ISoapFault*)
  -			m_pCall->checkFault("Fault","http://localhost/axis/InteropBase" );
  +			m_pCall->checkFault("Fault","http://localhost/axis/base" );
   		if(pSoapFault)
   		{
   			m_pCall->unInitialize();
  @@ -624,13 +620,13 @@
    */
   xsd__boolean InteropTestPortType::echoBoolean(xsd__boolean Value0)
   {
  -	xsd__boolean Ret = false_;
  +	xsd__boolean* Ret = NULL;
   	const char* pcCmplxFaultName;
   	try
   	{
   		if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER)) 
  -			return Ret;
  -		m_pCall->setTransportProperty(SOAPACTION_HEADER , "InteropBase#echoBoolean");
  +			return *Ret;
  +		m_pCall->setTransportProperty(SOAPACTION_HEADER , "base#echoBoolean");
   		m_pCall->setSOAPVersion(SOAP_VER_1_1);
   		m_pCall->setOperation("echoBoolean", "http://soapinterop.org/");
   		applyUserPreferences();
  @@ -643,7 +639,7 @@
   			}
   		}
   	m_pCall->unInitialize();
  -		return Ret;
  +		return *Ret;
   	}
   	catch(AxisException& e)
   	{
  @@ -653,7 +649,7 @@
   			throw SoapFaultException(e);
   		}
   		ISoapFault* pSoapFault = (ISoapFault*)
  -			m_pCall->checkFault("Fault","http://localhost/axis/InteropBase" );
  +			m_pCall->checkFault("Fault","http://localhost/axis/base" );
   		if(pSoapFault)
   		{
   			m_pCall->unInitialize();
  
  
  
  1.11      +3 -3      ws-axis/c/samples/client/interoptests/base/SOAPStruct.cpp
  
  Index: SOAPStruct.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/samples/client/interoptests/base/SOAPStruct.cpp,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- SOAPStruct.cpp	22 Dec 2004 10:07:52 -0000	1.10
  +++ SOAPStruct.cpp	22 Feb 2005 03:50:20 -0000	1.11
  @@ -23,7 +23,7 @@
   			Axis_URI_SOAPStruct, "\">", NULL);
   	}
   
  -	pSZ->serializeAsElement("varString", (void*)&(param->varString), XSD_STRING);
  +	pSZ->serializeAsElement("varString", (void*)(param->varString), XSD_STRING);
   	pSZ->serializeAsElement("varInt", (void*)&(param->varInt), XSD_INT);
   	pSZ->serializeAsElement("varFloat", (void*)&(param->varFloat), XSD_FLOAT);
   
  @@ -37,8 +37,8 @@
   int Axis_DeSerialize_SOAPStruct(SOAPStruct* param, IWrapperSoapDeSerializer* pIWSDZ)
   {
   	param->varString = pIWSDZ->getElementAsString("varString",0);
  -	param->varInt = pIWSDZ->getElementAsInt("varInt",0);
  -	param->varFloat = pIWSDZ->getElementAsFloat("varFloat",0);
  +	param->varInt = *(pIWSDZ->getElementAsInt("varInt",0));
  +	param->varFloat = *(pIWSDZ->getElementAsFloat("varFloat",0));
   	return pIWSDZ->getStatus();
   }
   void* Axis_Create_SOAPStruct(SOAPStruct* pObj, bool bArray = false, int nSize=0)
  
  
  

Mime
View raw message