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 na...@apache.org on 2006/05/17 06:39:41 UTC

svn commit: r407149 - in /webservices/axis/trunk/c/tests/auto_build/testcases: client/c/NilValuesTestClient.c tests/NilValuesTestC.xml

Author: nadiramra
Date: Tue May 16 21:39:39 2006
New Revision: 407149

URL: http://svn.apache.org/viewcvs?rev=407149&view=rev
Log:
C support fixes/enhancements. Testcases for C bindings.

Added:
    webservices/axis/trunk/c/tests/auto_build/testcases/client/c/NilValuesTestClient.c
    webservices/axis/trunk/c/tests/auto_build/testcases/tests/NilValuesTestC.xml

Added: webservices/axis/trunk/c/tests/auto_build/testcases/client/c/NilValuesTestClient.c
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/c/NilValuesTestClient.c?rev=407149&view=auto
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/c/NilValuesTestClient.c (added)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/c/NilValuesTestClient.c Tue May 16 21:39:39 2006
@@ -0,0 +1,58 @@
+// Copyright 2003-2004 The Apache Software Foundation.
+// (c) Copyright IBM Corp. 2004, 2005 All Rights Reserved
+// 
+// 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.
+
+#include <stdlib.h>
+#include <stdio.h>
+#include <time.h>
+
+#include "CommonClientTestCode.h"
+#include "operations.h" 
+
+#define WSDL_DEFAULT_ENDPOINT "http://localhost:9080/ComplexTypeAll/services/Service"
+
+
+int main(int argc, char* argv[])
+{
+    AXISCHANDLE ws; 
+    
+    aRecord* input;
+    xsdc__boolean result = (xsdc__boolean)0;    
+
+    char *endpoint = WSDL_DEFAULT_ENDPOINT;
+    int returnValue = 1; // Assume Failure
+
+    axiscAxisRegisterExceptionHandler(exceptionHandler);
+
+    if (argc>2 && strcmp(argv[1], "-e") == 0)
+        endpoint = argv[2]; 
+
+    ws = get_operations_stub(endpoint);
+
+    input = Axis_Create_aRecord(0);
+    result = myOperation(ws, input);
+
+    Axis_Delete_aRecord(input, 0);
+    destroy_operations_stub(ws);
+
+    printf( "Result %d\n", result);
+
+    printf("---------------------- TEST COMPLETE -----------------------------\n");
+
+    returnValue = 0; // Success
+
+    return returnValue;
+
+}
+

Added: webservices/axis/trunk/c/tests/auto_build/testcases/tests/NilValuesTestC.xml
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/tests/NilValuesTestC.xml?rev=407149&view=auto
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/tests/NilValuesTestC.xml (added)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/tests/NilValuesTestC.xml Tue May 16 21:39:39 2006
@@ -0,0 +1,17 @@
+<test>
+    <name>NilValuesTestC</name>
+    <description>NilValuesTestC</description>
+    <clientLang>c</clientLang>
+    <clientCode>NilValuesTestClient.c</clientCode>
+    <wsdl>ComplexTypeAll.wsdl</wsdl>
+    <expected>
+        <output>
+            NilValuesTest.cpp.out
+        </output>
+		<request>
+			NilValuesTest.request
+		</request>
+		<serverResponse>NilValuesTest_ServerResponse.expected</serverResponse>
+    </expected>
+	<endpoint>-e http://localhost:80/axis/ComplexTypeAll</endpoint>
+</test>