axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject svn commit: r414510 - in /webservices/axis2/trunk/c/samples: ./ codegen/ codegen/client/ codegen/client/calculator/ codegen/client/interop_doc1/ codegen/client/interop_doc2/ codegen/server/ codegen/server/calculator/ codegen/server/interop_doc1/ codege...
Date Thu, 15 Jun 2006 08:48:51 GMT
Author: samisa
Date: Thu Jun 15 01:48:49 2006
New Revision: 414510

URL: http://svn.apache.org/viewvc?rev=414510&view=rev
Log:
Adding the samples related to codegen.


Added:
    webservices/axis2/trunk/c/samples/codegen/
    webservices/axis2/trunk/c/samples/codegen/client/
    webservices/axis2/trunk/c/samples/codegen/client/calculator/
    webservices/axis2/trunk/c/samples/codegen/client/calculator/.readme.swp   (with props)
    webservices/axis2/trunk/c/samples/codegen/client/calculator/Makefile.am
    webservices/axis2/trunk/c/samples/codegen/client/calculator/readme
    webservices/axis2/trunk/c/samples/codegen/client/calculator/test_Calcultor.c
    webservices/axis2/trunk/c/samples/codegen/client/interop_doc1/
    webservices/axis2/trunk/c/samples/codegen/client/interop_doc1/Makefile.am
    webservices/axis2/trunk/c/samples/codegen/client/interop_doc1/readme
    webservices/axis2/trunk/c/samples/codegen/client/interop_doc1/test_echo_date.c
    webservices/axis2/trunk/c/samples/codegen/client/interop_doc1/test_echo_struct_array.c
    webservices/axis2/trunk/c/samples/codegen/client/interop_doc2/
    webservices/axis2/trunk/c/samples/codegen/client/interop_doc2/Makefile.am
    webservices/axis2/trunk/c/samples/codegen/client/interop_doc2/readme
    webservices/axis2/trunk/c/samples/codegen/client/interop_doc2/test_echo_string.c
    webservices/axis2/trunk/c/samples/codegen/client/interop_doc2/test_echo_string_array.c
    webservices/axis2/trunk/c/samples/codegen/client/interop_doc2/test_echo_struct.c
    webservices/axis2/trunk/c/samples/codegen/server/
    webservices/axis2/trunk/c/samples/codegen/server/calculator/
    webservices/axis2/trunk/c/samples/codegen/server/calculator/Makefile.am
    webservices/axis2/trunk/c/samples/codegen/server/calculator/axis2_Calculator.c
    webservices/axis2/trunk/c/samples/codegen/server/calculator/readme
    webservices/axis2/trunk/c/samples/codegen/server/interop_doc1/
    webservices/axis2/trunk/c/samples/codegen/server/interop_doc1/Makefile.am
    webservices/axis2/trunk/c/samples/codegen/server/interop_doc1/axis2_InteropTestPortTypeDocService.c
    webservices/axis2/trunk/c/samples/codegen/server/interop_doc1/readme
    webservices/axis2/trunk/c/samples/codegen/server/interop_doc2/
    webservices/axis2/trunk/c/samples/codegen/server/interop_doc2/Makefile.am
    webservices/axis2/trunk/c/samples/codegen/server/interop_doc2/axis2_WSDLInteropTestDocLitService.c
    webservices/axis2/trunk/c/samples/codegen/server/interop_doc2/readme
Modified:
    webservices/axis2/trunk/c/samples/configure.ac

Added: webservices/axis2/trunk/c/samples/codegen/client/calculator/.readme.swp
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/codegen/client/calculator/.readme.swp?rev=414510&view=auto
==============================================================================
Binary file - no diff available.

Propchange: webservices/axis2/trunk/c/samples/codegen/client/calculator/.readme.swp
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: webservices/axis2/trunk/c/samples/codegen/client/calculator/Makefile.am
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/codegen/client/calculator/Makefile.am?rev=414510&view=auto
==============================================================================
--- webservices/axis2/trunk/c/samples/codegen/client/calculator/Makefile.am (added)
+++ webservices/axis2/trunk/c/samples/codegen/client/calculator/Makefile.am Thu Jun 15 01:48:49 2006
@@ -0,0 +1,27 @@
+prgbindir=$(prefix)/bin/samples
+prgbin_PROGRAMS = Calculator
+samplesdir=$(prefix)/samples/client/Calculator
+
+Calculator_SOURCES = \
+axis2_add.c            axis2_Calculator_stub.c  axis2_divResponse.c    axis2_mulResponse.c    axis2_subResponse.c \
+axis2_addRequest.c     axis2_div.c              axis2_mul.c            axis2_sub.c            test_Calcultor.c \
+axis2_addResponse20.c  axis2_divRequest.c       axis2_mulRequest.c     axis2_subRequest.c \
+axis2_addResponse.c    axis2_divResponse16.c    axis2_mulResponse14.c  axis2_subResponse12.c
+
+
+Calculator_LDADD   = $(LDFLAGS) \
+                    -L$(AXIS2C_HOME)/lib \
+                    -laxis2_util \
+                    -laxis2_axiom \
+                    -laxis2_wsdl \
+                    -laxis2_engine \
+                    -laxis2_parser \
+                    -lpthread \
+                    -laxis2_http_sender \
+                    -laxis2_http_receiver \
+                    $(GUTHTHILA_LIBS) \
+                    $(LIBXML2_LIBS)
+
+INCLUDES = -I$(AXIS2C_HOME)/include \
+			@UTILINC@ \
+			@AXIOMINC@

Added: webservices/axis2/trunk/c/samples/codegen/client/calculator/readme
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/codegen/client/calculator/readme?rev=414510&view=auto
==============================================================================
--- webservices/axis2/trunk/c/samples/codegen/client/calculator/readme (added)
+++ webservices/axis2/trunk/c/samples/codegen/client/calculator/readme Thu Jun 15 01:48:49 2006
@@ -0,0 +1,10 @@
+This sample demostrates the use of code generation using Axis2/Java WSDL2Java
+tool (Axis2/Java source revision 414253).
+
+sample source        test_Calcultor.c
+wsdl                 $AXIS2C_HOME/test/resources/wsdl/Calculator.wsdl
+
+Command to execute the code generation: 
+WSDL2Code 
+-Dorg.apache.adb.properties=/org/apache/axis2/schema/c-schema-compile.properties
+-uri <wsdl> -l  c -d adb -u

Added: webservices/axis2/trunk/c/samples/codegen/client/calculator/test_Calcultor.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/codegen/client/calculator/test_Calcultor.c?rev=414510&view=auto
==============================================================================
--- webservices/axis2/trunk/c/samples/codegen/client/calculator/test_Calcultor.c (added)
+++ webservices/axis2/trunk/c/samples/codegen/client/calculator/test_Calcultor.c Thu Jun 15 01:48:49 2006
@@ -0,0 +1,55 @@
+#include "axis2_Calculator_stub.h"
+
+int main(int argc, char** argv)
+{
+    axis2_env_t* env = NULL;
+    axis2_char_t* operation = NULL;
+    axis2_char_t* client_home = NULL;
+
+    axis2_char_t* endpoint_uri =NULL;
+
+    axis2_stub_t* stub= NULL;
+
+    /* variables use databinding */
+    axis2_addResponse_t* add_out = NULL;
+    axis2_add_t* add_in = NULL;
+    axis2_addRequest_t* add_req = NULL;
+    axis2_addResponse20_t* add_res = NULL;
+
+    int ret_val = 0;
+
+    int val1 = 8;
+    int val2 = 13;
+
+    endpoint_uri = "http://localhost:9090/axis2/services/calculator";
+
+    env = axis2_env_create_all( "codegen_utest_blocking.log", AXIS2_LOG_LEVEL_TRACE);
+
+    /* Set up deploy folder.*/
+    client_home = AXIS2_GETENV("AXIS2C_HOME");
+    if (!client_home)
+        client_home = "../../../deploy";
+    
+    stub = axis2_Calculator_stub_create( env, client_home , endpoint_uri); 
+
+
+    /* create the struct */
+    add_req = axis2_addRequest_create( env );
+    AXIS2_ADDREQUEST_SET_IN0 ( add_req, env, val1 );
+    AXIS2_ADDREQUEST_SET_IN1 ( add_req, env, val2 );
+    
+    /* create the input params using databinding */
+    add_in = axis2_add_create( env );
+    AXIS2_ADD_SET_ADD( add_in, env, add_req );
+
+    /* invoke the web service method*/
+    add_res = axis2_add(  stub, env, add_in );
+    
+    /* return the output params using databinding */
+    add_out = AXIS2_ADDRESPONSE20_GET_ADDRESPONSE( add_res, env );
+    ret_val = AXIS2_ADDRESPONSE_GET_ADDRETURN( add_out, env );
+
+    printf("finally: add (%d %d ) = %d\n", val1, val2, ret_val );
+
+    return 0;
+}

Added: webservices/axis2/trunk/c/samples/codegen/client/interop_doc1/Makefile.am
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/codegen/client/interop_doc1/Makefile.am?rev=414510&view=auto
==============================================================================
--- webservices/axis2/trunk/c/samples/codegen/client/interop_doc1/Makefile.am (added)
+++ webservices/axis2/trunk/c/samples/codegen/client/interop_doc1/Makefile.am Thu Jun 15 01:48:49 2006
@@ -0,0 +1,59 @@
+prgbindir=$(prefix)/bin/samples
+samplesdir=$(prefix)/samples/client/InteropTestPortTypeDocService
+prgbin_PROGRAMS = test_echo_date test_echo_struct_array
+test_echo_date_SOURCES = \
+axis2_echoBase64.c              axis2_echoFloat.c                 axis2_echoString.c \
+axis2_echoBase64Response.c      axis2_echoFloatResponse.c         axis2_echoStringResponse.c \
+axis2_echoBoolean.c             axis2_echoHexBinary.c             axis2_echoStructArray.c \
+axis2_echoBooleanResponse.c     axis2_echoHexBinaryResponse.c     axis2_echoStructArrayResponse.c \
+axis2_echoDate.c                axis2_echoIntegerArray.c          axis2_echoStruct.c \
+axis2_echoDateResponse.c        axis2_echoIntegerArrayResponse.c  axis2_echoStructResponse.c \
+axis2_echoDecimal.c             axis2_echoInteger.c               axis2_echoVoid.c \
+axis2_echoDecimalResponse.c     axis2_echoIntegerResponse.c       axis2_echoVoidResponse.c \
+axis2_echoFloatArray.c          axis2_echoStringArray.c           axis2_InteropTestPortTypeDocService_stub.c \
+axis2_echoFloatArrayResponse.c  axis2_echoStringArrayResponse.c   axis2_SOAPStruct.c \
+test_echo_date.c
+
+test_echo_date_LDADD   =  \
+                -L$(AXIS2C_HOME)/lib \
+                    -laxis2_util \
+                    -laxis2_axiom \
+                    -laxis2_wsdl \
+                    -laxis2_engine \
+                    -laxis2_parser \
+                    -lpthread \
+                    -laxis2_http_sender \
+                    -laxis2_http_receiver \
+                    $(GUTHTHILA_LIBS) \
+                    $(LIBXML2_LIBS)
+
+test_echo_struct_array_SOURCES = \
+axis2_echoBase64.c              axis2_echoFloat.c                 axis2_echoString.c \
+axis2_echoBase64Response.c      axis2_echoFloatResponse.c         axis2_echoStringResponse.c \
+axis2_echoBoolean.c             axis2_echoHexBinary.c             axis2_echoStructArray.c \
+axis2_echoBooleanResponse.c     axis2_echoHexBinaryResponse.c     axis2_echoStructArrayResponse.c \
+axis2_echoDate.c                axis2_echoIntegerArray.c          axis2_echoStruct.c \
+axis2_echoDateResponse.c        axis2_echoIntegerArrayResponse.c  axis2_echoStructResponse.c \
+axis2_echoDecimal.c             axis2_echoInteger.c               axis2_echoVoid.c \
+axis2_echoDecimalResponse.c     axis2_echoIntegerResponse.c       axis2_echoVoidResponse.c \
+axis2_echoFloatArray.c          axis2_echoStringArray.c           axis2_InteropTestPortTypeDocService_stub.c \
+axis2_echoFloatArrayResponse.c  axis2_echoStringArrayResponse.c   axis2_SOAPStruct.c \
+test_echo_struct_array.c
+
+test_echo_struct_array_LDADD   =  \
+                -L$(AXIS2C_HOME)/lib \
+                    -laxis2_util \
+                    -laxis2_axiom \
+                    -laxis2_wsdl \
+                    -laxis2_engine \
+                    -laxis2_parser \
+                    -lpthread \
+                    -laxis2_http_sender \
+                    -laxis2_http_receiver \
+                    $(GUTHTHILA_LIBS) \
+                    $(LIBXML2_LIBS)
+
+
+INCLUDES = -I$(AXIS2C_HOME)/include \
+            @UTILINC@ \
+            @AXIOMINC@

Added: webservices/axis2/trunk/c/samples/codegen/client/interop_doc1/readme
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/codegen/client/interop_doc1/readme?rev=414510&view=auto
==============================================================================
--- webservices/axis2/trunk/c/samples/codegen/client/interop_doc1/readme (added)
+++ webservices/axis2/trunk/c/samples/codegen/client/interop_doc1/readme Thu Jun 15 01:48:49 2006
@@ -0,0 +1,10 @@
+This sample demostrates the use of code generation using Axis2/Java WSDL2Java
+tool (Axis2/Java source revision 414253).
+
+sample sources       test_echo_date.c  test_echo_struct_array.c
+wsdl                 $AXIS2C_HOME/test/resources/wsdl/InteropTestRound1Doc.wsdl
+
+Command to execute the code generation: 
+WSDL2Code 
+-Dorg.apache.adb.properties=/org/apache/axis2/schema/c-schema-compile.properties
+-uri <wsdl> -l  c -d adb -u

Added: webservices/axis2/trunk/c/samples/codegen/client/interop_doc1/test_echo_date.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/codegen/client/interop_doc1/test_echo_date.c?rev=414510&view=auto
==============================================================================
--- webservices/axis2/trunk/c/samples/codegen/client/interop_doc1/test_echo_date.c (added)
+++ webservices/axis2/trunk/c/samples/codegen/client/interop_doc1/test_echo_date.c Thu Jun 15 01:48:49 2006
@@ -0,0 +1,55 @@
+#include "axis2_InteropTestPortTypeDocService_stub.h"
+
+int main(int argc, char** argv)
+{
+    axis2_env_t* env = NULL;
+    axis2_char_t* client_home = NULL;
+
+    axis2_char_t* endpoint_uri =NULL;
+
+    axis2_stub_t* stub= NULL;
+
+    /* variables use databinding */
+    axis2_echoDate_t* echo_in = NULL;
+    axis2_echoDateResponse_t* echo_out = NULL;
+
+    axis2_date_time_t* echo_date = NULL;
+    axis2_date_time_t* return_echo_date = NULL;
+
+    axis2_char_t* send_date_str = NULL;
+    axis2_char_t* return_date_str = NULL;
+         
+    endpoint_uri = 
+	    "http://localhost:9090/axis2/services/interop_doc1";
+
+    env = axis2_env_create_all( "codegen_utest_blocking.log",
+		       AXIS2_LOG_LEVEL_TRACE);
+
+    /* Set up deploy folder.*/
+    client_home = AXIS2_GETENV("AXIS2C_HOME");
+    if (!client_home)
+        client_home = "../../../deploy";
+    
+    stub = axis2_InteropTestPortTypeDocService_stub_create( env,
+		         client_home , endpoint_uri); 
+
+    /* create the struct */
+    echo_date = axis2_date_time_create (env); /* default to current date */
+    send_date_str = AXIS2_DATE_TIME_SERIALIZE_DATE_TIME(echo_date, env);
+    printf ("sending date %s\n", send_date_str );
+
+    /* create the input params using databinding */
+    echo_in = axis2_echoDate_create( env );
+    AXIS2_ECHODATE_SET_ARG_0_10( echo_in, env, echo_date );
+
+    /* invoke the web service method*/
+    echo_out = axis2_echoDate(  stub, env, echo_in );
+    
+    /* return the output params using databinding */
+    return_echo_date  = AXIS2_ECHODATERESPONSE_GET_ECHODATERETURN( echo_out, env );
+
+    return_date_str = AXIS2_DATE_TIME_SERIALIZE_DATE_TIME(return_echo_date, env);
+    printf ("returned date %s\n", return_date_str );
+
+    return 0;
+}

Added: webservices/axis2/trunk/c/samples/codegen/client/interop_doc1/test_echo_struct_array.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/codegen/client/interop_doc1/test_echo_struct_array.c?rev=414510&view=auto
==============================================================================
--- webservices/axis2/trunk/c/samples/codegen/client/interop_doc1/test_echo_struct_array.c (added)
+++ webservices/axis2/trunk/c/samples/codegen/client/interop_doc1/test_echo_struct_array.c Thu Jun 15 01:48:49 2006
@@ -0,0 +1,76 @@
+#include "axis2_InteropTestPortTypeDocService_stub.h"
+
+int main(int argc, char** argv)
+{
+    axis2_env_t* env = NULL;
+    axis2_char_t* client_home = NULL;
+
+    axis2_char_t* endpoint_uri =NULL;
+
+    axis2_stub_t* stub= NULL;
+
+    /* variables use databinding */
+    axis2_echoStructArray_t* echo_in = NULL;
+    axis2_echoStructArrayResponse_t* echo_out = NULL;
+
+    axis2_SOAPStruct_t** echo_struct_arr = NULL;
+    int arr_size = 0;
+    axis2_SOAPStruct_t** ret_echo_struct_arr = NULL;
+    int ret_arr_size = 0;
+
+    int i = 0 ; /* for for loop */
+
+         
+    endpoint_uri = 
+	    "http://localhost:9090/axis2/services/interop_doc1";
+
+    env = axis2_env_create_all( "codegen_utest_blocking.log",
+		       AXIS2_LOG_LEVEL_TRACE);
+
+    /* Set up deploy folder.*/
+    client_home = AXIS2_GETENV("AXIS2C_HOME");
+    if (!client_home)
+        client_home = "../../../deploy";
+    
+    stub = axis2_InteropTestPortTypeDocService_stub_create( env,
+		         client_home , endpoint_uri); 
+
+    /* create the struct array */
+    arr_size = 3;
+    echo_struct_arr = ( axis2_SOAPStruct_t** ) malloc
+	    ( arr_size * sizeof ( axis2_SOAPStruct_t* ) );
+    
+    echo_struct_arr[0] = axis2_SOAPStruct_create ( env );
+    AXIS2_SOAPSTRUCT_SET_VARSTRING ( echo_struct_arr[0], env, "sturct0" );
+    AXIS2_SOAPSTRUCT_SET_VARINT ( echo_struct_arr[0], env, 0 );
+    AXIS2_SOAPSTRUCT_SET_VARFLOAT ( echo_struct_arr[0], env, 0 );
+   
+    echo_struct_arr[1] = axis2_SOAPStruct_create ( env );
+    AXIS2_SOAPSTRUCT_SET_VARSTRING ( echo_struct_arr[1], env, "sturct1" );
+    AXIS2_SOAPSTRUCT_SET_VARINT ( echo_struct_arr[1], env, 10 );
+    AXIS2_SOAPSTRUCT_SET_VARFLOAT ( echo_struct_arr[1], env, 100 );
+    
+    echo_struct_arr[2] = axis2_SOAPStruct_create ( env );
+    AXIS2_SOAPSTRUCT_SET_VARSTRING ( echo_struct_arr[2], env, "sturct2" );
+    AXIS2_SOAPSTRUCT_SET_VARINT ( echo_struct_arr[2], env, 20 );
+    AXIS2_SOAPSTRUCT_SET_VARFLOAT ( echo_struct_arr[2], env, 200 );
+
+    /* create the struct */
+    echo_in = axis2_echoStructArray_create (env );
+    AXIS2_ECHOSTRUCTARRAY_SET_ARG_0_7 ( echo_in, env, echo_struct_arr, arr_size );
+
+    /* invoke the web service method*/
+    echo_out = axis2_echoStructArray(  stub, env, echo_in );
+    
+    ret_echo_struct_arr = 
+	    AXIS2_ECHOSTRUCTARRAYRESPONSE_GET_ECHOSTRUCTARRAYRETURN 
+	    ( echo_out, env ,&ret_arr_size);
+    for ( i = 0;  i < ret_arr_size ; i ++ )
+    {
+      printf ( "recieved turn %d \n string %s\n int %d\n float %f\n\n", i,
+		       AXIS2_SOAPSTRUCT_GET_VARSTRING ( ret_echo_struct_arr[i], env ),
+		       AXIS2_SOAPSTRUCT_GET_VARINT ( ret_echo_struct_arr[i], env ),
+		       AXIS2_SOAPSTRUCT_GET_VARFLOAT ( ret_echo_struct_arr[i], env ) );
+    }
+    return 0;
+}

Added: webservices/axis2/trunk/c/samples/codegen/client/interop_doc2/Makefile.am
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/codegen/client/interop_doc2/Makefile.am?rev=414510&view=auto
==============================================================================
--- webservices/axis2/trunk/c/samples/codegen/client/interop_doc2/Makefile.am (added)
+++ webservices/axis2/trunk/c/samples/codegen/client/interop_doc2/Makefile.am Thu Jun 15 01:48:49 2006
@@ -0,0 +1,42 @@
+prgbindir = $(prefix)/bin/samples
+prgbin_PROGRAMS = test_echo_string test_echo_struct test_echo_string_array
+samplesdir = $(prefix)/samples/client/WSDLInteropTestDocLitService
+
+test_echo_string_SOURCES = \
+  axis2_ArrayOfstring_literal.c axis2_echoStringArray.c axis2_echoStringArrayResponse.c \
+  axis2_echoString.c axis2_echoStringResponse.c axis2_echoStruct.c axis2_echoStructResponse.c \
+  axis2_echoVoid.c axis2_echoVoidResponse.c axis2_SOAPStruct.c axis2_WSDLInteropTestDocLitService_stub.c \
+  test_echo_string.c
+test_echo_string_LDADD = \
+           $(LDFLAGS) -L$(AXIS2C_HOME)/lib -laxis2_util -laxis2_axiom \
+            -laxis2_wsdl -laxis2_engine -laxis2_parser -lpthread -laxis2_http_sender \
+            -laxis2_http_receiver \
+           $(GUTHTHILA_LIBS) $(LIBXML2_LIBS)
+
+test_echo_struct_SOURCES = \
+  axis2_ArrayOfstring_literal.c axis2_echoStringArray.c \
+  axis2_echoStringArrayResponse.c axis2_echoString.c \
+  axis2_echoStringResponse.c axis2_echoStruct.c axis2_echoStructResponse.c \
+  axis2_echoVoid.c axis2_echoVoidResponse.c axis2_SOAPStruct.c \
+  axis2_WSDLInteropTestDocLitService_stub.c test_echo_struct.c 
+test_echo_struct_LDADD = \
+           $(LDFLAGS) -L$(AXIS2C_HOME)/lib -laxis2_util -laxis2_axiom \
+            -laxis2_wsdl -laxis2_engine -laxis2_parser -lpthread -laxis2_http_sender \
+            -laxis2_http_receiver \
+           $(GUTHTHILA_LIBS) $(LIBXML2_LIBS)
+
+test_echo_string_array_SOURCES = \
+  axis2_ArrayOfstring_literal.c axis2_echoStringArray.c \
+  axis2_echoStringArrayResponse.c axis2_echoString.c \
+  axis2_echoStringResponse.c axis2_echoStruct.c axis2_echoStructResponse.c \
+  axis2_echoVoid.c axis2_echoVoidResponse.c axis2_SOAPStruct.c \
+  axis2_WSDLInteropTestDocLitService_stub.c test_echo_string_array.c 
+test_echo_string_array_LDADD = \
+           $(LDFLAGS) -L$(AXIS2C_HOME)/lib -laxis2_util -laxis2_axiom \
+            -laxis2_wsdl -laxis2_engine -laxis2_parser -lpthread -laxis2_http_sender \
+            -laxis2_http_receiver \
+           $(GUTHTHILA_LIBS) $(LIBXML2_LIBS)
+
+INCLUDES = -I$(AXIS2C_HOME)/include \
+               @UTILINC@ \
+               @AXIOMINC@

Added: webservices/axis2/trunk/c/samples/codegen/client/interop_doc2/readme
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/codegen/client/interop_doc2/readme?rev=414510&view=auto
==============================================================================
--- webservices/axis2/trunk/c/samples/codegen/client/interop_doc2/readme (added)
+++ webservices/axis2/trunk/c/samples/codegen/client/interop_doc2/readme Thu Jun 15 01:48:49 2006
@@ -0,0 +1,10 @@
+This sample demostrates the use of code generation using Axis2/Java WSDL2Java
+tool (Axis2/Java source revision 414253).
+
+sample sources       test_echo_string_array.c  test_echo_string.c  test_echo_struct.c
+wsdl                 $AXIS2C_HOME/test/resources/wsdl/interoptestdoclitparameters.wsdl
+
+Command to execute the code generation: 
+WSDL2Code 
+-Dorg.apache.adb.properties=/org/apache/axis2/schema/c-schema-compile.properties
+-uri <wsdl> -l  c -d adb -u

Added: webservices/axis2/trunk/c/samples/codegen/client/interop_doc2/test_echo_string.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/codegen/client/interop_doc2/test_echo_string.c?rev=414510&view=auto
==============================================================================
--- webservices/axis2/trunk/c/samples/codegen/client/interop_doc2/test_echo_string.c (added)
+++ webservices/axis2/trunk/c/samples/codegen/client/interop_doc2/test_echo_string.c Thu Jun 15 01:48:49 2006
@@ -0,0 +1,46 @@
+#include "axis2_WSDLInteropTestDocLitService_stub.h"
+
+int main(int argc, char** argv)
+{
+    axis2_env_t* env = NULL;
+    axis2_char_t* client_home = NULL;
+
+    axis2_char_t* endpoint_uri =NULL;
+
+    axis2_stub_t* stub= NULL;
+
+    /* variables use databinding */
+    axis2_echoString_t* echo_in = NULL;
+    axis2_echoStringResponse_t* echo_out = NULL;
+
+    char* echo_str = "hello";
+    char* return_echo_str = NULL;
+         
+    endpoint_uri = "http://localhost:9090/axis2/services/interop_doc2";
+
+    env = axis2_env_create_all( "codegen_utest_blocking.log", AXIS2_LOG_LEVEL_TRACE);
+
+    /* Set up deploy folder.*/
+    client_home = AXIS2_GETENV("AXIS2C_HOME");
+    if (!client_home)
+        client_home = "../../../deploy";
+    
+    stub = axis2_WSDLInteropTestDocLitService_stub_create( env, client_home , endpoint_uri); 
+
+
+    /* create the struct */
+    
+    /* create the input params using databinding */
+    echo_in = axis2_echoString_create( env );
+    AXIS2_ECHOSTRING_SET_PARAM0( echo_in, env, echo_str );
+
+    /* invoke the web service method*/
+    echo_out = axis2_echoString(  stub, env, echo_in );
+    
+    /* return the output params using databinding */
+    return_echo_str  = AXIS2_ECHOSTRUCTRESPONSE_GET_RETURN( echo_out, env );
+
+    printf ( "returned string %s\n", return_echo_str );
+
+    return 0;
+}

Added: webservices/axis2/trunk/c/samples/codegen/client/interop_doc2/test_echo_string_array.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/codegen/client/interop_doc2/test_echo_string_array.c?rev=414510&view=auto
==============================================================================
--- webservices/axis2/trunk/c/samples/codegen/client/interop_doc2/test_echo_string_array.c (added)
+++ webservices/axis2/trunk/c/samples/codegen/client/interop_doc2/test_echo_string_array.c Thu Jun 15 01:48:49 2006
@@ -0,0 +1,63 @@
+#include "axis2_WSDLInteropTestDocLitService_stub.h"
+
+int main(int argc, char** argv)
+{
+    axis2_env_t* env = NULL;
+    axis2_char_t* client_home = NULL;
+
+    axis2_char_t* endpoint_uri =NULL;
+
+    axis2_stub_t* stub= NULL;
+    
+
+    /* variables use databinding */
+    axis2_echoStringArray_t* echo_in = NULL;
+    axis2_echoStringArrayResponse_t* echo_out = NULL;
+    axis2_ArrayOfstring_literal_t* array_in = NULL;
+    axis2_ArrayOfstring_literal_t* array_out = NULL;
+
+    char *string_array[]= { "test","this","array" };
+    int array_length = 3; 
+
+    char **string_return_string_array = NULL;
+    int return_array_length = 0;
+    int i = 0; /* for loops */
+
+    endpoint_uri = "http://localhost:9090/axis2/services/interop_doc2";
+
+    env = axis2_env_create_all( "codegen_utest_blocking.log", AXIS2_LOG_LEVEL_TRACE);
+
+    /* Set up deploy folder.*/
+    client_home = AXIS2_GETENV("AXIS2C_HOME");
+    if (!client_home)
+        client_home = "../../../deploy";
+    
+    stub = axis2_WSDLInteropTestDocLitService_stub_create( env, client_home , endpoint_uri); 
+
+
+    /* create the array */
+    array_in = axis2_ArrayOfstring_literal_create (env );
+
+    AXIS2_ARRAYOFSTRING_LITERAL_SET_STRING( array_in, env,
+		    string_array, array_length );
+    
+    /* create the input params using databinding */
+    echo_in = axis2_echoStringArray_create ( env );
+    AXIS2_ECHOSTRINGARRAY_SET_PARAM0( echo_in, env, array_in );
+
+    /* invoke the web service method*/
+    echo_out = axis2_echoStringArray(  stub, env, echo_in );
+    
+    /* return the output params using databinding */
+    array_out = AXIS2_ECHOSTRINGARRAYRESPONSE_GET_RETURN( echo_out, env );
+
+    string_return_string_array = AXIS2_ARRAYOFSTRING_LITERAL_GET_STRING
+	    ( array_out, env, &return_array_length );
+
+    for ( i = 0; i < return_array_length ; i ++ )
+    {
+        printf("value%d: %s \n", i, string_return_string_array[i] );
+    }
+
+    return 0;
+}

Added: webservices/axis2/trunk/c/samples/codegen/client/interop_doc2/test_echo_struct.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/codegen/client/interop_doc2/test_echo_struct.c?rev=414510&view=auto
==============================================================================
--- webservices/axis2/trunk/c/samples/codegen/client/interop_doc2/test_echo_struct.c (added)
+++ webservices/axis2/trunk/c/samples/codegen/client/interop_doc2/test_echo_struct.c Thu Jun 15 01:48:49 2006
@@ -0,0 +1,66 @@
+#include "axis2_WSDLInteropTestDocLitService_stub.h"
+
+int main(int argc, char** argv)
+{
+    axis2_env_t* env = NULL;
+    axis2_char_t* client_home = NULL;
+
+    axis2_char_t* endpoint_uri =NULL;
+
+    axis2_stub_t* stub= NULL;
+
+    /* variables use databinding */
+    axis2_echoStruct_t* echo_in = NULL;
+    axis2_echoStructResponse_t* echo_out = NULL;
+    axis2_SOAPStruct_t* struct_in = NULL;
+    axis2_SOAPStruct_t* struct_out = NULL;
+
+    
+    float float_val = 11;
+    int int_val = 10;
+    char* string_val = "hello struct";
+
+    int ret_int_val = 0;
+    float ret_float_val = 0;
+    char* ret_string_val = "";
+
+    endpoint_uri = "http://localhost:9090/axis2/services/interop_doc2";
+
+    env = axis2_env_create_all( "codegen_utest_blocking.log", AXIS2_LOG_LEVEL_TRACE);
+
+    /* Set up deploy folder.*/
+    client_home = AXIS2_GETENV("AXIS2C_HOME");
+    if (!client_home)
+        client_home = "../../../deploy";
+    
+    stub = axis2_WSDLInteropTestDocLitService_stub_create( env,
+		    client_home , endpoint_uri); 
+
+    /* create the struct */
+    struct_in = axis2_SOAPStruct_create( env );
+    AXIS2_SOAPSTRUCT_SET_VARFLOAT ( struct_in, env, float_val );
+    AXIS2_SOAPSTRUCT_SET_VARINT ( struct_in, env, int_val );
+    AXIS2_SOAPSTRUCT_SET_VARSTRING ( struct_in, env, string_val );
+    
+    /* create the input params using databinding */
+    echo_in = axis2_echoStruct_create( env );
+    AXIS2_ECHOSTRUCT_SET_PARAM0( echo_in, env, struct_in );
+
+    /* invoke the web service method*/
+    echo_out = axis2_echoStruct(  stub, env, echo_in );
+    
+    /* return the output params using databinding */
+    struct_out = AXIS2_ECHOSTRUCTRESPONSE_GET_RETURN( echo_out, env );
+    /*struct_out = AXIS2_ECHOSTRUCT_GET_PARAM0( ret_val, env ); */
+    
+    ret_float_val = AXIS2_SOAPSTRUCT_GET_VARFLOAT ( struct_out, env );
+    ret_int_val = AXIS2_SOAPSTRUCT_GET_VARINT ( struct_out, env );
+    ret_string_val = AXIS2_SOAPSTRUCT_GET_VARSTRING ( struct_out, env );
+
+    printf ( "returned values \n");
+    printf (" float %f\n", ret_float_val );
+    printf (" int %d \n", ret_int_val );
+    printf (" string %s \n", ret_string_val); 
+
+    return 0;
+}

Added: webservices/axis2/trunk/c/samples/codegen/server/calculator/Makefile.am
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/codegen/server/calculator/Makefile.am?rev=414510&view=auto
==============================================================================
--- webservices/axis2/trunk/c/samples/codegen/server/calculator/Makefile.am (added)
+++ webservices/axis2/trunk/c/samples/codegen/server/calculator/Makefile.am Thu Jun 15 01:48:49 2006
@@ -0,0 +1,15 @@
+prglibdir=$(prefix)/services/Calculator
+samplesdir=$(prefix)/samples/server/Calculator
+prglib_LTLIBRARIES = libCalculator.la
+prglib_DATA= services.xml
+EXTRA_DIST = services.xml
+SUBDIRS =
+libCalculator_la_SOURCES =  \
+axis2_add.c            axis2_Calculator.c               axis2_divResponse16.c  axis2_mulResponse14.c  axis2_subResponse12.c \
+axis2_addRequest.c     axis2_Calculator_svc_skeleton.c  axis2_divResponse.c    axis2_mulResponse.c    axis2_subResponse.c \
+axis2_addResponse20.c  axis2_div.c                      axis2_mul.c            axis2_sub.c \
+axis2_addResponse.c    axis2_divRequest.c               axis2_mulRequest.c     axis2_subRequest.c 
+libCalculator_la_LIBADD  =
+INCLUDES = -I$(AXIS2C_HOME)/include \
+			@UTILINC@ \
+			@AXIOMINC@

Added: webservices/axis2/trunk/c/samples/codegen/server/calculator/axis2_Calculator.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/codegen/server/calculator/axis2_Calculator.c?rev=414510&view=auto
==============================================================================
--- webservices/axis2/trunk/c/samples/codegen/server/calculator/axis2_Calculator.c (added)
+++ webservices/axis2/trunk/c/samples/codegen/server/calculator/axis2_Calculator.c Thu Jun 15 01:48:49 2006
@@ -0,0 +1,171 @@
+
+    /**
+     * axis2_Calculator.c 
+     *
+     * This file was auto-generated from WSDL 
+     * by the Apache Axis2/Java version: #axisVersion# #today#
+     * axis2_Calculator Axis2/C skeleton for the axisService
+     */
+
+     #include "axis2_Calculator.h"
+
+     
+
+		 
+        /**
+         * Auto generated function definition
+         
+          * @param param0
+         
+         */
+        axis2_addResponse20_t*axis2_Calculator_add (const axis2_env_t* env  ,axis2_add_t* param0 )
+
+        {
+          /* Todo fill this with the necessary business logic */
+          axis2_addResponse_t* add_out = NULL;
+    	  axis2_add_t* add_in = param0;
+          axis2_addRequest_t* add_req = NULL;
+          axis2_addResponse20_t* add_res = NULL;
+
+          int ret_val = 0;
+
+          int val1 = 0;
+          int val2 = 0;
+
+
+	  add_req = AXIS2_ADD_GET_ADD( add_in, env );
+         
+	  val1 = AXIS2_ADDREQUEST_GET_IN0 ( add_req, env );
+          val2 = AXIS2_ADDREQUEST_GET_IN1 ( add_req, env );
+
+          ret_val = val1 + val2;
+
+          add_out = axis2_addResponse_create ( env );
+	  AXIS2_ADDRESPONSE_SET_ADDRETURN ( add_out, env, ret_val );
+          
+	  add_res = axis2_addResponse20_create ( env );
+	  AXIS2_ADDRESPONSE20_SET_ADDRESPONSE ( add_res, env, add_out );
+	  
+          return add_res;
+        }
+     
+
+		 
+        /**
+         * Auto generated function definition
+         
+          * @param param2
+         
+         */
+        axis2_divResponse16_t*axis2_Calculator_div (const axis2_env_t* env  ,axis2_div_t* param2 )
+
+        {
+          /* Todo fill this with the necessary business logic */
+          axis2_addResponse_t* add_out = NULL;
+    	  axis2_add_t* add_in = param2;
+          axis2_addRequest_t* add_req = NULL;
+          axis2_addResponse20_t* add_res = NULL;
+
+          int ret_val = 0;
+
+          int val1 = 0;
+          int val2 = 0;
+
+
+	  add_req = AXIS2_ADD_GET_ADD( add_in, env );
+         
+	  val1 = AXIS2_ADDREQUEST_GET_IN0 ( add_req, env );
+          val2 = AXIS2_ADDREQUEST_GET_IN1 ( add_req, env );
+
+
+          ret_val = val1 / val2;
+
+          add_out = axis2_addResponse_create ( env );
+	  AXIS2_ADDRESPONSE_SET_ADDRETURN ( add_out, env, ret_val );
+          
+	  add_res = axis2_addResponse20_create ( env );
+	  AXIS2_ADDRESPONSE20_SET_ADDRESPONSE ( add_res, env, add_out );
+	  
+          return add_res;
+        }
+     
+
+		 
+        /**
+         * Auto generated function definition
+         
+          * @param param4
+         
+         */
+        axis2_subResponse12_t*axis2_Calculator_sub (const axis2_env_t* env  ,axis2_sub_t* param4 )
+
+        {
+          /* Todo fill this with the necessary business logic */
+          axis2_addResponse_t* add_out = NULL;
+    	  axis2_add_t* add_in = param4;
+          axis2_addRequest_t* add_req = NULL;
+          axis2_addResponse20_t* add_res = NULL;
+
+          int ret_val = 0;
+
+          int val1 = 0;
+          int val2 = 0;
+
+
+	  add_req = AXIS2_ADD_GET_ADD( add_in, env );
+         
+	  val1 = AXIS2_ADDREQUEST_GET_IN0 ( add_req, env );
+          val2 = AXIS2_ADDREQUEST_GET_IN1 ( add_req, env );
+
+
+          ret_val = val1 - val2;
+
+          add_out = axis2_addResponse_create ( env );
+	  AXIS2_ADDRESPONSE_SET_ADDRETURN ( add_out, env, ret_val );
+          
+	  add_res = axis2_addResponse20_create ( env );
+	  AXIS2_ADDRESPONSE20_SET_ADDRESPONSE ( add_res, env, add_out );
+	  
+          return add_res;
+        }
+     
+
+		 
+        /**
+         * Auto generated function definition
+         
+          * @param param6
+         
+         */
+        axis2_mulResponse14_t*axis2_Calculator_mul (const axis2_env_t* env  ,axis2_mul_t* param6 )
+
+        {
+          /* Todo fill this with the necessary business logic */
+          axis2_addResponse_t* add_out = NULL;
+    	  axis2_add_t* add_in = param6;
+          axis2_addRequest_t* add_req = NULL;
+          axis2_addResponse20_t* add_res = NULL;
+
+          int ret_val = 0;
+
+          int val1 = 0;
+          int val2 = 0;
+
+
+	  add_req = AXIS2_ADD_GET_ADD( add_in, env );
+         
+	  val1 = AXIS2_ADDREQUEST_GET_IN0 ( add_req, env );
+          val2 = AXIS2_ADDREQUEST_GET_IN1 ( add_req, env );
+
+
+          ret_val = val1 * val2;
+
+          add_out = axis2_addResponse_create ( env );
+	  AXIS2_ADDRESPONSE_SET_ADDRETURN ( add_out, env, ret_val );
+          
+	  add_res = axis2_addResponse20_create ( env );
+	  AXIS2_ADDRESPONSE20_SET_ADDRESPONSE ( add_res, env, add_out );
+	  
+          return add_res;
+        }
+     

Added: webservices/axis2/trunk/c/samples/codegen/server/calculator/readme
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/codegen/server/calculator/readme?rev=414510&view=auto
==============================================================================
--- webservices/axis2/trunk/c/samples/codegen/server/calculator/readme (added)
+++ webservices/axis2/trunk/c/samples/codegen/server/calculator/readme Thu Jun 15 01:48:49 2006
@@ -0,0 +1,9 @@
+This sample demostrates the use of code generation using Axis2/Java WSDL2Java
+tool (Axis2/Java source revision 414253).
+
+wsdl                 $AXIS2C_HOME/test/resources/wsdl/Calculator.wsdl
+
+Command to execute the code generation: 
+WSDL2Code 
+-Dorg.apache.adb.properties=/org/apache/axis2/schema/c-schema-compile.properties
+-uri <wsdl> -l  c -d adb -u -ss -sd

Added: webservices/axis2/trunk/c/samples/codegen/server/interop_doc1/Makefile.am
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/codegen/server/interop_doc1/Makefile.am?rev=414510&view=auto
==============================================================================
--- webservices/axis2/trunk/c/samples/codegen/server/interop_doc1/Makefile.am (added)
+++ webservices/axis2/trunk/c/samples/codegen/server/interop_doc1/Makefile.am Thu Jun 15 01:48:49 2006
@@ -0,0 +1,23 @@
+prglibdir=$(prefix)/services/interop_doc1
+samplesdir=$(prefix)/samples/server/interop_doc1
+prglib_LTLIBRARIES = libInteropTestPortTypeDocService.la
+prglib_DATA= services.xml
+EXTRA_DIST = services.xml
+SUBDIRS =
+libInteropTestPortTypeDocService_la_SOURCES =  \
+axis2_echoBase64.c              axis2_echoFloatResponse.c         axis2_echoStructArray.c \
+axis2_echoBase64Response.c      axis2_echoHexBinary.c             axis2_echoStructArrayResponse.c \
+axis2_echoBoolean.c             axis2_echoHexBinaryResponse.c     axis2_echoStruct.c \
+axis2_echoBooleanResponse.c     axis2_echoIntegerArray.c          axis2_echoStructResponse.c \
+axis2_echoDate.c                axis2_echoIntegerArrayResponse.c  axis2_echoVoid.c \
+axis2_echoDateResponse.c        axis2_echoInteger.c               axis2_echoVoidResponse.c \
+axis2_echoDecimal.c             axis2_echoIntegerResponse.c       axis2_InteropTestPortTypeDocService.c \
+axis2_echoDecimalResponse.c     axis2_echoStringArray.c           axis2_InteropTestPortTypeDocService_svc_skeleton.c \
+axis2_echoFloatArray.c          axis2_echoStringArrayResponse.c   axis2_SOAPStruct.c \
+axis2_echoFloatArrayResponse.c  axis2_echoString.c \
+axis2_echoFloat.c               axis2_echoStringResponse.c
+
+libInteropTestPortTypeDocService_la_LIBADD  =
+INCLUDES = -I$(AXIS2C_HOME)/include \
+			@UTILINC@ \
+			@AXIOMINC@

Added: webservices/axis2/trunk/c/samples/codegen/server/interop_doc1/axis2_InteropTestPortTypeDocService.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/codegen/server/interop_doc1/axis2_InteropTestPortTypeDocService.c?rev=414510&view=auto
==============================================================================
--- webservices/axis2/trunk/c/samples/codegen/server/interop_doc1/axis2_InteropTestPortTypeDocService.c (added)
+++ webservices/axis2/trunk/c/samples/codegen/server/interop_doc1/axis2_InteropTestPortTypeDocService.c Thu Jun 15 01:48:49 2006
@@ -0,0 +1,259 @@
+
+    /**
+     * axis2_InteropTestPortTypeDocService.c 
+     *
+     * This file was auto-generated from WSDL 
+     * by the Apache Axis2/Java version: #axisVersion# #today#
+     * axis2_InteropTestPortTypeDocService Axis2/C skeleton for the axisService
+     */
+
+     #include "axis2_InteropTestPortTypeDocService.h"
+
+     
+
+		 
+        /**
+         * Auto generated function definition
+         
+          * @param param0
+         
+         */
+        axis2_echoFloatResponse_t*axis2_InteropTestPortTypeDocService_echoFloat (const axis2_env_t* env  ,axis2_echoFloat_t* param0 )
+
+        {
+          /* Todo fill this with the necessary business logic */
+          return NULL;
+        }
+     
+
+		 
+        /**
+         * Auto generated function definition
+         
+          * @param param2
+         
+         */
+        axis2_echoVoidResponse_t*axis2_InteropTestPortTypeDocService_echoVoid (const axis2_env_t* env  ,axis2_echoVoid_t* param2 )
+
+        {
+          /* Todo fill this with the necessary business logic */
+          return NULL;
+        }
+     
+
+		 
+        /**
+         * Auto generated function definition
+         
+          * @param param4
+         
+         */
+        axis2_echoDateResponse_t*axis2_InteropTestPortTypeDocService_echoDate (const axis2_env_t* env  ,axis2_echoDate_t* param4 )
+
+        {
+          /* Todo fill this with the necessary business logic */
+          axis2_echoDate_t* echo_in =  param4;
+          axis2_echoDateResponse_t* echo_out = NULL;
+          
+          axis2_date_time_t* echo_date = NULL;  
+	  axis2_char_t* recieved_date_str  = NULL;
+
+	  echo_date = AXIS2_ECHODATE_GET_ARG_0_10 ( echo_in, env );
+
+          recieved_date_str = AXIS2_DATE_TIME_SERIALIZE_DATE_TIME(echo_date, env);
+          printf ("echoing date %s\n", recieved_date_str );
+
+          echo_out = axis2_echoDateResponse_create ( env );
+	  AXIS2_ECHODATERESPONSE_SET_ECHODATERETURN ( echo_out, env , echo_date);
+
+          return echo_out;
+        }
+     
+
+		 
+        /**
+         * Auto generated function definition
+         
+          * @param param6
+         
+         */
+        axis2_echoDecimalResponse_t*axis2_InteropTestPortTypeDocService_echoDecimal (const axis2_env_t* env  ,axis2_echoDecimal_t* param6 )
+
+        {
+          /* Todo fill this with the necessary business logic */
+          return NULL;
+        }
+     
+
+		 
+        /**
+         * Auto generated function definition
+         
+          * @param param8
+         
+         */
+        axis2_echoStringResponse_t*axis2_InteropTestPortTypeDocService_echoString (const axis2_env_t* env  ,axis2_echoString_t* param8 )
+
+        {
+          /* Todo fill this with the necessary business logic */
+          return NULL;
+        }
+     
+
+		 
+        /**
+         * Auto generated function definition
+         
+          * @param param10
+         
+         */
+        axis2_echoBase64Response_t*axis2_InteropTestPortTypeDocService_echoBase64 (const axis2_env_t* env  ,axis2_echoBase64_t* param10 )
+
+        {
+          /* Todo fill this with the necessary business logic */
+          return NULL;
+        }
+     
+
+		 
+        /**
+         * Auto generated function definition
+         
+          * @param param12
+         
+         */
+        axis2_echoFloatArrayResponse_t*axis2_InteropTestPortTypeDocService_echoFloatArray (const axis2_env_t* env  ,axis2_echoFloatArray_t* param12 )
+
+        {
+          /* Todo fill this with the necessary business logic */
+          return NULL;
+        }
+     
+
+		 
+        /**
+         * Auto generated function definition
+         
+          * @param param14
+         
+         */
+        axis2_echoIntegerArrayResponse_t*axis2_InteropTestPortTypeDocService_echoIntegerArray (const axis2_env_t* env  ,axis2_echoIntegerArray_t* param14 )
+
+        {
+          /* Todo fill this with the necessary business logic */
+          return NULL;
+        }
+     
+
+		 
+        /**
+         * Auto generated function definition
+         
+          * @param param16
+         
+         */
+        axis2_echoHexBinaryResponse_t*axis2_InteropTestPortTypeDocService_echoHexBinary (const axis2_env_t* env  ,axis2_echoHexBinary_t* param16 )
+
+        {
+          /* Todo fill this with the necessary business logic */
+          return NULL;
+        }
+     
+
+		 
+        /**
+         * Auto generated function definition
+         
+          * @param param18
+         
+         */
+        axis2_echoIntegerResponse_t*axis2_InteropTestPortTypeDocService_echoInteger (const axis2_env_t* env  ,axis2_echoInteger_t* param18 )
+
+        {
+          /* Todo fill this with the necessary business logic */
+          return NULL;
+        }
+     
+
+		 
+        /**
+         * Auto generated function definition
+         
+          * @param param20
+         
+         */
+        axis2_echoBooleanResponse_t*axis2_InteropTestPortTypeDocService_echoBoolean (const axis2_env_t* env  ,axis2_echoBoolean_t* param20 )
+
+        {
+          /* Todo fill this with the necessary business logic */
+          return NULL;
+        }
+     
+
+		 
+        /**
+         * Auto generated function definition
+         
+          * @param param22
+         
+         */
+        axis2_echoStringArrayResponse_t*axis2_InteropTestPortTypeDocService_echoStringArray (const axis2_env_t* env  ,axis2_echoStringArray_t* param22 )
+
+        {
+          /* Todo fill this with the necessary business logic */
+          return NULL;
+        }
+     
+
+		 
+        /**
+         * Auto generated function definition
+         
+          * @param param24
+         
+         */
+        axis2_echoStructArrayResponse_t*axis2_InteropTestPortTypeDocService_echoStructArray (const axis2_env_t* env  ,axis2_echoStructArray_t* param24 )
+
+        {
+          /* Todo fill this with the necessary business logic */
+         axis2_echoStructArray_t* echo_in =  param24;
+         axis2_echoStructArrayResponse_t* echo_out = NULL;
+
+	 axis2_SOAPStruct_t** echo_struct_arr = NULL;
+	 int arr_size = 0;
+
+	 int i = 0;
+
+	 echo_struct_arr = 
+		 AXIS2_ECHOSTRUCTARRAY_GET_ARG_0_7 ( echo_in, env, &arr_size );
+
+	 for ( i = 0;  i < arr_size ; i ++ )
+	 {
+	      printf ( "echoing turn %d\n string %s\n int %d\n float %f\n\n", i,
+					AXIS2_SOAPSTRUCT_GET_VARSTRING ( echo_struct_arr[i], env ),
+					AXIS2_SOAPSTRUCT_GET_VARINT ( echo_struct_arr[i], env ),
+					AXIS2_SOAPSTRUCT_GET_VARFLOAT ( echo_struct_arr[i], env ) );
+         }
+
+	 echo_out = axis2_echoStructArrayResponse_create (env );
+	 AXIS2_ECHOSTRUCTARRAYRESPONSE_SET_ECHOSTRUCTARRAYRETURN 
+		 ( echo_out, env, echo_struct_arr, arr_size );
+         return echo_out;
+
+        }
+     
+
+		 
+        /**
+         * Auto generated function definition
+         
+          * @param param26
+         
+         */
+        axis2_echoStructResponse_t*axis2_InteropTestPortTypeDocService_echoStruct (const axis2_env_t* env  ,axis2_echoStruct_t* param26 )
+
+        {
+          /* Todo fill this with the necessary business logic */
+          return NULL;
+        }
+     

Added: webservices/axis2/trunk/c/samples/codegen/server/interop_doc1/readme
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/codegen/server/interop_doc1/readme?rev=414510&view=auto
==============================================================================
--- webservices/axis2/trunk/c/samples/codegen/server/interop_doc1/readme (added)
+++ webservices/axis2/trunk/c/samples/codegen/server/interop_doc1/readme Thu Jun 15 01:48:49 2006
@@ -0,0 +1,9 @@
+This sample demostrates the use of code generation using Axis2/Java WSDL2Java
+tool (Axis2/Java source revision 414253).
+
+wsdl                 $AXIS2C_HOME/test/resources/wsdl/InteropTestRound1Doc.wsdl
+
+Command to execute the code generation: 
+WSDL2Code 
+-Dorg.apache.adb.properties=/org/apache/axis2/schema/c-schema-compile.properties
+-uri <wsdl> -l  c -d adb -u -ss -sd

Added: webservices/axis2/trunk/c/samples/codegen/server/interop_doc2/Makefile.am
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/codegen/server/interop_doc2/Makefile.am?rev=414510&view=auto
==============================================================================
--- webservices/axis2/trunk/c/samples/codegen/server/interop_doc2/Makefile.am (added)
+++ webservices/axis2/trunk/c/samples/codegen/server/interop_doc2/Makefile.am Thu Jun 15 01:48:49 2006
@@ -0,0 +1,16 @@
+prglibdir=$(prefix)/services/interop_doc2
+samplesdir=$(prefix)/samples/server/interop_doc2
+prglib_LTLIBRARIES = libWSDLInteropTestDocLitService.la
+prglib_DATA= services.xml
+EXTRA_DIST = services.xml
+SUBDIRS =
+libWSDLInteropTestDocLitService_la_SOURCES =  \
+axis2_ArrayOfstring_literal.c    axis2_echoStringResponse.c  axis2_echoVoidResponse.c \
+axis2_echoStringArray.c          axis2_echoStruct.c          axis2_SOAPStruct.c \
+axis2_echoStringArrayResponse.c  axis2_echoStructResponse.c  axis2_WSDLInteropTestDocLitService.c \
+axis2_echoString.c               axis2_echoVoid.c            axis2_WSDLInteropTestDocLitService_svc_skeleton.c
+
+libWSDLInteropTestDocLitService_la_LIBADD  =
+INCLUDES = -I$(AXIS2C_HOME)/include \
+			@UTILINC@ \
+			@AXIOMINC@

Added: webservices/axis2/trunk/c/samples/codegen/server/interop_doc2/axis2_WSDLInteropTestDocLitService.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/codegen/server/interop_doc2/axis2_WSDLInteropTestDocLitService.c?rev=414510&view=auto
==============================================================================
--- webservices/axis2/trunk/c/samples/codegen/server/interop_doc2/axis2_WSDLInteropTestDocLitService.c (added)
+++ webservices/axis2/trunk/c/samples/codegen/server/interop_doc2/axis2_WSDLInteropTestDocLitService.c Thu Jun 15 01:48:49 2006
@@ -0,0 +1,124 @@
+
+    /**
+     * axis2_WSDLInteropTestDocLitService.c 
+     *
+     * This file was auto-generated from WSDL 
+     * by the Apache Axis2/Java version: #axisVersion# #today#
+     * axis2_WSDLInteropTestDocLitService Axis2/C skeleton for the axisService
+     */
+
+     #include "axis2_WSDLInteropTestDocLitService.h"
+
+     
+
+		 
+        /**
+         * Auto generated function definition
+         
+          * @param param0
+         
+         */
+        axis2_echoVoidResponse_t*axis2_WSDLInteropTestDocLitService_echoVoid (const axis2_env_t* env  ,axis2_echoVoid_t* param0 )
+
+        {
+          /* Todo fill this with the necessary business logic */
+          return NULL;
+        }
+     
+
+		 
+        /**
+         * Auto generated function definition
+         
+          * @param param2
+         
+         */
+        axis2_echoStringArrayResponse_t*axis2_WSDLInteropTestDocLitService_echoStringArray (const axis2_env_t* env  ,axis2_echoStringArray_t* param2 )
+
+        {
+          /* Todo fill this with the necessary business logic */
+          axis2_echoStringArray_t* echo_in = param2;
+          axis2_echoStringArrayResponse_t* echo_out = NULL;
+          axis2_ArrayOfstring_literal_t* array_in = NULL;
+          axis2_ArrayOfstring_literal_t* array_out = NULL;
+	  char ** string_array = NULL;
+	  int string_array_length = 0;
+
+	  array_in = AXIS2_ECHOSTRINGARRAY_GET_PARAM0( echo_in, env);
+	  string_array =AXIS2_ARRAYOFSTRING_LITERAL_GET_STRING (  array_in, env,
+			                      &string_array_length );
+
+	  array_out = axis2_ArrayOfstring_literal_create ( env );
+	  AXIS2_ARRAYOFSTRING_LITERAL_SET_STRING( array_out, env,
+			                       string_array, string_array_length );
+	  echo_out = axis2_echoStringArrayResponse_create ( env );
+
+	  AXIS2_ECHOSTRINGARRAYRESPONSE_SET_RETURN ( echo_out, env , array_out );
+
+          return echo_out;
+
+        }
+     
+
+		 
+        /**
+         * Auto generated function definition
+         
+          * @param param4
+         
+         */
+        axis2_echoStructResponse_t*axis2_WSDLInteropTestDocLitService_echoStruct (const axis2_env_t* env  ,axis2_echoStruct_t* param4 )
+
+        {
+          /* Todo fill this with the necessary business logic */
+         axis2_echoStruct_t* echo_in = param4;
+         axis2_echoStructResponse_t* echo_out = NULL;
+         axis2_SOAPStruct_t* struct_in = NULL;
+         axis2_SOAPStruct_t* struct_out = NULL;
+
+	 float float_val = 0;
+	 int int_val = 0;
+	 char* string_val = NULL;
+
+	 struct_in = AXIS2_ECHOSTRUCT_GET_PARAM0( echo_in, env);
+
+     	 float_val = AXIS2_SOAPSTRUCT_GET_VARFLOAT ( struct_in, env);
+         int_val = AXIS2_SOAPSTRUCT_GET_VARINT ( struct_in, env);
+         string_val = AXIS2_SOAPSTRUCT_GET_VARSTRING ( struct_in, env);    
+
+	 struct_out = axis2_SOAPStruct_create( env );
+         AXIS2_SOAPSTRUCT_SET_VARFLOAT ( struct_out, env, float_val );
+         AXIS2_SOAPSTRUCT_SET_VARINT ( struct_out, env, int_val );
+         AXIS2_SOAPSTRUCT_SET_VARSTRING ( struct_out, env, string_val );
+
+	 echo_out = axis2_echoStructResponse_create ( env );
+	 AXIS2_ECHOSTRUCTRESPONSE_SET_RETURN ( echo_out, env, struct_out );
+
+          return echo_out;	  
+        }
+     
+
+		 
+        /**
+         * Auto generated function definition
+         
+          * @param param6
+         
+         */
+        axis2_echoStringResponse_t*axis2_WSDLInteropTestDocLitService_echoString (const axis2_env_t* env  ,axis2_echoString_t* param6 )
+
+        {
+          /* Todo fill this with the necessary business logic */
+          axis2_echoString_t* echo_in = param6;
+          axis2_echoStringResponse_t* echo_out = NULL;
+
+          char* echo_string = NULL;
+
+	  echo_string = AXIS2_ECHOSTRING_GET_PARAM0 ( echo_in, env );
+
+	  echo_out = axis2_echoStringResponse_create ( env );
+	  AXIS2_ECHOSTRUCTRESPONSE_SET_RETURN ( echo_out, env, echo_string );
+
+	  return echo_out;
+        }
+     

Added: webservices/axis2/trunk/c/samples/codegen/server/interop_doc2/readme
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/codegen/server/interop_doc2/readme?rev=414510&view=auto
==============================================================================
--- webservices/axis2/trunk/c/samples/codegen/server/interop_doc2/readme (added)
+++ webservices/axis2/trunk/c/samples/codegen/server/interop_doc2/readme Thu Jun 15 01:48:49 2006
@@ -0,0 +1,9 @@
+This sample demostrates the use of code generation using Axis2/Java WSDL2Java
+tool (Axis2/Java source revision 414253).
+
+wsdl                 $AXIS2C_HOME/test/resources/wsdl/interoptestdoclitparameters.wsdl
+
+Command to execute the code generation: 
+WSDL2Code 
+-Dorg.apache.adb.properties=/org/apache/axis2/schema/c-schema-compile.properties
+-uri <wsdl> -l  c -d adb -u -ss -sd

Modified: webservices/axis2/trunk/c/samples/configure.ac
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/configure.ac?rev=414510&r1=414509&r2=414510&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/configure.ac (original)
+++ webservices/axis2/trunk/c/samples/configure.ac Thu Jun 15 01:48:49 2006
@@ -124,6 +124,9 @@
     server/notify/Makefile \
     server/sg_math/Makefile \
     server/mtom/Makefile \
+    server/WSDLInteropTestDocLitService/Makefile \
+    server/InteropTestPortTypeDocService/Makefile \
+    server/Calculator/Makefile \
     client/Makefile \
     client/echo/Makefile \
     client/math/Makefile \
@@ -131,6 +134,9 @@
     client/mtom/resources/Makefile \
     client/notify/Makefile \
     client/google/Makefile \
+    client/WSDLInteropTestDocLitService/Makefile \
+    client/InteropTestPortTypeDocService/Makefile \
+    client/Calculator/Makefile \
     user_guide/Makefile \
     user_guide/clients/Makefile \
     ])



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message