You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by sa...@apache.org on 2004/08/04 15:07:10 UTC

cvs commit: ws-axis/c/samples/server/interoptests/groupB InteropTestPortTypeBWrapper.cpp InteropTestPortTypeB.h InteropTestPortTypeB.cpp

sanjaya     2004/08/04 06:07:10

  Modified:    c/samples/server/interoptests/groupB Tag:
                        NamespaceTesting_branch
                        InteropTestPortTypeBWrapper.cpp
                        InteropTestPortTypeB.h InteropTestPortTypeB.cpp
  Log:
  Changed the parameter orders of groupb hand written server side sample
  to conform with WSDL2Ws changes
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.7.10.1  +6 -5      ws-axis/c/samples/server/interoptests/groupB/InteropTestPortTypeBWrapper.cpp
  
  Index: InteropTestPortTypeBWrapper.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/samples/server/interoptests/groupB/InteropTestPortTypeBWrapper.cpp,v
  retrieving revision 1.7
  retrieving revision 1.7.10.1
  diff -u -r1.7 -r1.7.10.1
  --- InteropTestPortTypeBWrapper.cpp	27 Apr 2004 03:23:07 -0000	1.7
  +++ InteropTestPortTypeBWrapper.cpp	4 Aug 2004 13:07:09 -0000	1.7.10.1
  @@ -91,9 +91,9 @@
   		, (void*)Axis_Create_SOAPStruct, (void*)Axis_Delete_SOAPStruct
   		, "inputStruct", Axis_URI_SOAPStruct);
   	if (AXIS_SUCCESS != (nStatus = pIWSDZ->getStatus())) return nStatus;
  -	float out0;
  +	xsd__string out0;
   	int out1;
  -	xsd__string out2;
  +	float out2;
   	pWs->echoStructAsSimpleTypes(v0,&out0,&out1,&out2);
   	pIWSSZ->addOutputParam("outputFloat", (void*)&out0, XSD_FLOAT);
   	pIWSSZ->addOutputParam("outputInteger", (void*)&out1, XSD_INT);
  @@ -118,9 +118,10 @@
   	/* check whether we have got correct message */
   	if (AXIS_SUCCESS != pIWSDZ->checkMessageBody("echoSimpleTypesAsStruct", "http://soapinterop.org/")) return AXIS_FAIL;
   	pIWSSZ->createSoapMethod("echoSimpleTypesAsStructResponse", "http://soapinterop.org/");
  -	float v0 = pIWSDZ->getElementAsFloat("inputFloat",0);
  -	int v1 = pIWSDZ->getElementAsInt("inputInteger",0);
  -	xsd__string v2 = pIWSDZ->getElementAsString("inputString",0);
  +	xsd__string v0 = pIWSDZ->getElementAsString("inputString",0);
  +   	int v1 = pIWSDZ->getElementAsInt("inputInteger",0);
  +	float v2 = pIWSDZ->getElementAsFloat("inputFloat",0);
  +
   	if (AXIS_SUCCESS != (nStatus = pIWSDZ->getStatus())) return nStatus;
   	SOAPStruct* ret = pWs->echoSimpleTypesAsStruct(v0,v1,v2);
   	return pIWSSZ->addOutputCmplxParam(ret, (void*)Axis_Serialize_SOAPStruct, (void*)Axis_Delete_SOAPStruct, "echoSimpleTypesAsStructReturn", Axis_URI_SOAPStruct);
  
  
  
  1.5.10.1  +2 -2      ws-axis/c/samples/server/interoptests/groupB/InteropTestPortTypeB.h
  
  Index: InteropTestPortTypeB.h
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/samples/server/interoptests/groupB/InteropTestPortTypeB.h,v
  retrieving revision 1.5
  retrieving revision 1.5.10.1
  diff -u -r1.5 -r1.5.10.1
  --- InteropTestPortTypeB.h	27 Apr 2004 03:23:07 -0000	1.5
  +++ InteropTestPortTypeB.h	4 Aug 2004 13:07:09 -0000	1.5.10.1
  @@ -19,8 +19,8 @@
   	public:
   		virtual ~InteropTestPortTypeB();
   	public: 
  -		void echoStructAsSimpleTypes(SOAPStruct* Value0, AXIS_OUT_PARAM float *OutValue0, AXIS_OUT_PARAM int *OutValue1, AXIS_OUT_PARAM xsd__string *OutValue2);
  -		SOAPStruct* echoSimpleTypesAsStruct(float Value0,int Value1,xsd__string Value2);
  +		void echoStructAsSimpleTypes(SOAPStruct* Value0, AXIS_OUT_PARAM xsd__string *OutValue0, AXIS_OUT_PARAM int *OutValue1, AXIS_OUT_PARAM float *OutValue2);
  +		SOAPStruct* echoSimpleTypesAsStruct(xsd__string Value0,int Value1, float Value2);
   		SOAPStructStruct* echoNestedStruct(SOAPStructStruct* Value0);
   		SOAPArrayStruct* echoNestedArray(SOAPArrayStruct* Value0);
   };
  
  
  
  1.3.12.1  +6 -6      ws-axis/c/samples/server/interoptests/groupB/InteropTestPortTypeB.cpp
  
  Index: InteropTestPortTypeB.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/samples/server/interoptests/groupB/InteropTestPortTypeB.cpp,v
  retrieving revision 1.3
  retrieving revision 1.3.12.1
  diff -u -r1.3 -r1.3.12.1
  --- InteropTestPortTypeB.cpp	1 Apr 2004 15:10:18 -0000	1.3
  +++ InteropTestPortTypeB.cpp	4 Aug 2004 13:07:09 -0000	1.3.12.1
  @@ -14,18 +14,18 @@
   {
   }
   
  -void InteropTestPortTypeB::echoStructAsSimpleTypes(SOAPStruct* Value0, AXIS_OUT_PARAM float *OutValue0, AXIS_OUT_PARAM int *OutValue1, AXIS_OUT_PARAM xsd__string *OutValue2)
  +void InteropTestPortTypeB::echoStructAsSimpleTypes(SOAPStruct* Value0, AXIS_OUT_PARAM xsd__string *OutValue0, AXIS_OUT_PARAM int *OutValue1, AXIS_OUT_PARAM float *OutValue2)
   {
  -	*OutValue0 = Value0->varFloat;
  +	*OutValue0 = Value0->varString;
   	*OutValue1 = Value0->varInt;
  -	*OutValue2 = Value0->varString;
  +	*OutValue2 = Value0->varFloat;
   }
  -SOAPStruct* InteropTestPortTypeB::echoSimpleTypesAsStruct(float Value0, int Value1, xsd__string Value2)
  +SOAPStruct* InteropTestPortTypeB::echoSimpleTypesAsStruct(xsd__string Value0, int Value1, float Value2)
   {
   	SOAPStruct* pRet = new SOAPStruct();
  -	pRet->varFloat = Value0;
  +	pRet->varString = Value0;
   	pRet->varInt = Value1;
  -	pRet->varString = Value2;
  +	pRet->varFloat = Value2;
   	return pRet;
   }
   SOAPStructStruct* InteropTestPortTypeB::echoNestedStruct(SOAPStructStruct* Value0)