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 ja...@apache.org on 2005/11/14 07:14:09 UTC

svn commit: r344047 - /webservices/axis/trunk/c/tests/auto_build/testcases/dynamic/Combo_TTest/ArrayTestPortType.cpp

Author: jamejose
Date: Sun Nov 13 22:13:57 2005
New Revision: 344047

URL: http://svn.apache.org/viewcvs?rev=344047&view=rev
Log:
Updated the testcase with new Array APIs

Modified:
    webservices/axis/trunk/c/tests/auto_build/testcases/dynamic/Combo_TTest/ArrayTestPortType.cpp

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/dynamic/Combo_TTest/ArrayTestPortType.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/dynamic/Combo_TTest/ArrayTestPortType.cpp?rev=344047&r1=344046&r2=344047&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/dynamic/Combo_TTest/ArrayTestPortType.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/dynamic/Combo_TTest/ArrayTestPortType.cpp Sun Nov 13 22:13:57 2005
@@ -1,17 +1,3 @@
-// Copyright 2003-2004 The Apache Software Foundation.
-// 
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-// 
-//        http://www.apache.org/licenses/LICENSE-2.0
-// 
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
 /*
  * This file was auto-generated by the Axis C++ Web Service Generator (WSDL2Ws)
  * This file contains Client Stub implementation for remote web service.
@@ -20,12 +6,13 @@
 #include "ArrayTestPortType.hpp"
 
 #include <axis/AxisWrapperAPI.hpp>
+#include <axis/Axis.hpp>
 
-extern int Axis_DeSerialize_IntArrayType(IntArrayType* param, IWrapperSoapDeSerializer* pDZ);
-extern void* Axis_Create_IntArrayType(IntArrayType *Obj, bool bArray = false, int nSize=0);
-extern void Axis_Delete_IntArrayType(IntArrayType* param, bool bArray = false, int nSize=0);
-extern int Axis_Serialize_IntArrayType(IntArrayType* param, IWrapperSoapSerializer* pSZ, bool bArray = false);
-extern int Axis_GetSize_IntArrayType();
+extern int Axis_DeSerialize_intArrayType(intArrayType* param, IWrapperSoapDeSerializer* pDZ);
+extern void* Axis_Create_intArrayType(intArrayType *Obj, bool bArray = false, int nSize=0);
+extern void Axis_Delete_intArrayType(intArrayType* param, bool bArray = false, int nSize=0);
+extern int Axis_Serialize_intArrayType(intArrayType* param, IWrapperSoapSerializer* pSZ, bool bArray = false);
+extern int Axis_GetSize_intArrayType();
 
 ArrayTestPortType::ArrayTestPortType(const char* pcEndpointUri, AXIS_PROTOCOL_TYPE eProtocol):Stub(pcEndpointUri, eProtocol)
 {
@@ -47,9 +34,9 @@
 /*
  * This method wrap the service methodechoIntArray
  */
-IntArrayType* ArrayTestPortType::echoIntArray(IntArrayType* Value0)
+intArrayType* ArrayTestPortType::echoIntArray(intArrayType* Value0)
 {
-	IntArrayType* pReturn = NULL;
+	intArrayType* pReturn = NULL;
 	const char* pcCmplxFaultName;
 	pcCmplxFaultName = NULL;
 	try
@@ -64,12 +51,12 @@
 	applyUserPreferences();
 	char cPrefixAndParamName0[17];
 	sprintf( cPrefixAndParamName0, "%s:arg_0_0", m_pCall->getNamespacePrefix("http://soapinterop.org"));
-	m_pCall->addCmplxParameter(Value0, (void*)Axis_Serialize_IntArrayType, (void*)Axis_Delete_IntArrayType, cPrefixAndParamName0, Axis_URI_IntArrayType);
+	m_pCall->addCmplxParameter(Value0, (void*)Axis_Serialize_intArrayType, (void*)Axis_Delete_intArrayType, cPrefixAndParamName0, Axis_URI_intArrayType);
 	if (AXIS_SUCCESS == m_pCall->invoke())
 	{
 		if(AXIS_SUCCESS == m_pCall->checkMessage("echoIntArrayResponse", "http://soapinterop.org"))
 		{
-			pReturn = (IntArrayType*)m_pCall->getCmplxObject((void*) Axis_DeSerialize_IntArrayType, (void*) Axis_Create_IntArrayType, (void*) Axis_Delete_IntArrayType,"echoIntArrayReturn", 0);
+			pReturn = (intArrayType*)m_pCall->getCmplxObject((void*) Axis_DeSerialize_intArrayType, (void*) Axis_Create_intArrayType, (void*) Axis_Delete_intArrayType,"echoIntArrayReturn", 0);
 		}
 	}
 	m_pCall->unInitialize();
@@ -116,52 +103,15 @@
 				}
 
 				m_pCall->unInitialize();
+				delete pSoapFault;
 				throw ofe;
 		}
 		else
 		{
 			m_pCall->unInitialize();
+			delete pSoapFault;
 			throw;
 		}
 	}
 }
 
-/*Methods for supporting SecureChannel*/
-
-void ArrayTestPortType::SetSecure( char * pszArguments, ...)
-{
-	int		iArgIndex = 0;
-	va_list	args;
-	char *	pszArg = NULL;
-	
-	va_start( args, pszArguments);
-	
-	if( (pszArg = pszArguments) != NULL)
-	{
-		do
-		{
-			if( pszArg == (char *) 1)
-			{
-				sArguments[iArgIndex] = "true";
-			}
-			else
-			{
-				sArguments[iArgIndex] = pszArg;
-			}
-
-		iArgIndex++;
-		} while( (pszArg = va_arg( args, char *)) != NULL && iArgIndex < 8);
-
-		if( iArgIndex == 6)
-		{
-			sArguments[iArgIndex] = "false";
-		}
-	}
-
-	va_end( args);
-}
-
-void ArrayTestPortType::includeSecure()
-{
-	m_pCall->setTransportProperty( SECURE_PROPERTIES, (const char *) &sArguments);
-}