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 sa...@apache.org on 2007/09/28 12:29:43 UTC

svn commit: r580289 [14/20] - in /webservices/axis2/trunk/c: guththila/include/ guththila/samples/ guththila/src/ guththila/tests/ neethi/include/ neethi/src/ neethi/src/secpolicy/builder/ neethi/src/secpolicy/model/ neethi/test/ samples/client/echo/ s...

Modified: webservices/axis2/trunk/c/samples/client/math/math_client.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/client/math/math_client.c?rev=580289&r1=580288&r2=580289&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/client/math/math_client.c (original)
+++ webservices/axis2/trunk/c/samples/client/math/math_client.c Fri Sep 28 03:29:16 2007
@@ -1,3 +1,4 @@
+
 /*
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
@@ -22,13 +23,16 @@
 #include <axiom_soap.h>
 #include <axis2_client.h>
 
-axiom_node_t *
-build_om_programatically(const axutil_env_t *env,
-        const axis2_char_t *operation,
-        const axis2_char_t *param1,
-        const axis2_char_t *param2);
-
-int main(int argc, char** argv)
+axiom_node_t *build_om_programatically(
+    const axutil_env_t * env,
+    const axis2_char_t * operation,
+    const axis2_char_t * param1,
+    const axis2_char_t * param2);
+
+int
+main(
+    int argc,
+    char **argv)
 {
     axis2_stub_t *stub = NULL;
     axiom_node_t *node = NULL;
@@ -45,7 +49,7 @@
     env = axutil_env_create_all("math_blocking.log", AXIS2_LOG_LEVEL_TRACE);
 
     client_home = AXIS2_GETENV("AXIS2C_HOME");
-    if (!client_home || !strcmp (client_home, ""))
+    if (!client_home || !strcmp(client_home, ""))
         client_home = "../..";
 
     address = "http://localhost:9090/axis2/services/math";
@@ -53,13 +57,15 @@
         operation = argv[1];
     if (axutil_strcmp(operation, "-h") == 0)
     {
-        printf("Usage : %s [operation] [param1] [param2] [endpoint_url]\n", argv[0]);
+        printf("Usage : %s [operation] [param1] [param2] [endpoint_url]\n",
+               argv[0]);
         printf("use -h for help\n");
         printf("default operation add\n");
         printf("default param1 %s\n", param1);
         printf("default param2 %s\n", param2);
         printf("default endpoint_url %s\n", address);
-        printf("NOTE: command line arguments must appear in given order, with trailing ones being optional\n");
+        printf
+            ("NOTE: command line arguments must appear in given order, with trailing ones being optional\n");
         return 0;
     }
     if (argc > 2)
@@ -70,24 +76,27 @@
         address = argv[4];
 
     printf("Using endpoint : %s\n", address);
-    printf("\nInvoking operation %s with params %s and %s\n", operation, param1, param2);
+    printf("\nInvoking operation %s with params %s and %s\n", operation, param1,
+           param2);
 
     node = build_om_programatically(env, operation, param1, param2);
     stub =
-        axis2_math_stub_create_with_endpoint_uri_and_client_home(env, address,   client_home);
-        
+        axis2_math_stub_create_with_endpoint_uri_and_client_home(env, address,
+                                                                 client_home);
+
     /* create node and invoke math */
     if (stub)
     {
         ret_node = axis2_math_stub_add(stub, env, node);
     }
-    
+
     if (ret_node)
     {
         if (axiom_node_get_node_type(ret_node, env) == AXIOM_ELEMENT)
         {
             axis2_char_t *result = NULL;
-            axiom_element_t *result_ele = (axiom_element_t*)axiom_node_get_data_element(ret_node, env);
+            axiom_element_t *result_ele =
+                (axiom_element_t *) axiom_node_get_data_element(ret_node, env);
 
             result = axiom_element_get_text(result_ele, env, ret_node);
             printf("\nResult = %s\n", result);
@@ -97,12 +106,13 @@
             axiom_xml_writer_t *writer = NULL;
             axiom_output_t *om_output = NULL;
             axis2_char_t *buffer = NULL;
-            writer = axiom_xml_writer_create_for_memory(env, NULL, AXIS2_TRUE, 0,
-                    AXIS2_XML_PARSER_TYPE_BUFFER);
+            writer =
+                axiom_xml_writer_create_for_memory(env, NULL, AXIS2_TRUE, 0,
+                                                   AXIS2_XML_PARSER_TYPE_BUFFER);
             om_output = axiom_output_create(env, writer);
 
             axiom_node_serialize(ret_node, env, om_output);
-            buffer = (axis2_char_t*)axiom_xml_writer_get_xml(writer, env);
+            buffer = (axis2_char_t *) axiom_xml_writer_get_xml(writer, env);
             printf("\nReceived invalid OM as result : %s\n", buffer);
             if (buffer)
             {
@@ -119,9 +129,10 @@
     }
     else
     {
-        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Stub invoke FAILED: Error code:"
-                " %d :: %s", env->error->error_number,
-                AXIS2_ERROR_GET_MESSAGE(env->error));
+        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
+                        "Stub invoke FAILED: Error code:" " %d :: %s",
+                        env->error->error_number,
+                        AXIS2_ERROR_GET_MESSAGE(env->error));
         printf("math stub invoke FAILED!\n");
     }
 
@@ -135,44 +146,51 @@
         axutil_env_free((axutil_env_t *) env);
         env = NULL;
     }
-    
+
     return status;
 }
 
 axiom_node_t *
-build_om_programatically(const axutil_env_t *env,
-        const axis2_char_t *operation,
-        const axis2_char_t *param1,
-        const axis2_char_t *param2)
+build_om_programatically(
+    const axutil_env_t * env,
+    const axis2_char_t * operation,
+    const axis2_char_t * param1,
+    const axis2_char_t * param2)
 {
     axiom_node_t *math_om_node = NULL;
-    axiom_element_t* math_om_ele = NULL;
-    axiom_node_t* text_om_node = NULL;
-    axiom_element_t * text_om_ele = NULL;
+    axiom_element_t *math_om_ele = NULL;
+    axiom_node_t *text_om_node = NULL;
+    axiom_element_t *text_om_ele = NULL;
     axiom_namespace_t *ns1 = NULL;
 
-
     axiom_xml_writer_t *xml_writer = NULL;
     axiom_output_t *om_output = NULL;
     axis2_char_t *buffer = NULL;
 
-    ns1 = axiom_namespace_create(env, "http://ws.apache.org/axis2/services/math", "ns1");
+    ns1 =
+        axiom_namespace_create(env, "http://ws.apache.org/axis2/services/math",
+                               "ns1");
 
-    math_om_ele = axiom_element_create(env, NULL, operation, ns1, &math_om_node);
+    math_om_ele =
+        axiom_element_create(env, NULL, operation, ns1, &math_om_node);
 
-    text_om_ele = axiom_element_create(env, math_om_node, "param1", NULL, &text_om_node);
+    text_om_ele =
+        axiom_element_create(env, math_om_node, "param1", NULL, &text_om_node);
     axiom_element_set_text(text_om_ele, env, param1, text_om_node);
 
-    text_om_ele = axiom_element_create(env, math_om_node, "param2", NULL, &text_om_node);
+    text_om_ele =
+        axiom_element_create(env, math_om_node, "param2", NULL, &text_om_node);
     axiom_element_set_text(text_om_ele, env, param2, text_om_node);
 
-    xml_writer = axiom_xml_writer_create_for_memory(env, NULL, AXIS2_FALSE, AXIS2_FALSE,
-            AXIS2_XML_PARSER_TYPE_BUFFER);
+    xml_writer =
+        axiom_xml_writer_create_for_memory(env, NULL, AXIS2_FALSE, AXIS2_FALSE,
+                                           AXIS2_XML_PARSER_TYPE_BUFFER);
     om_output = axiom_output_create(env, xml_writer);
 
     axiom_node_serialize(math_om_node, env, om_output);
-    buffer = (axis2_char_t*)axiom_xml_writer_get_xml(xml_writer, env);
-    AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI, "\nSending OM node in XML : %s \n",  buffer);
+    buffer = (axis2_char_t *) axiom_xml_writer_get_xml(xml_writer, env);
+    AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI, "\nSending OM node in XML : %s \n",
+                    buffer);
     if (om_output)
     {
         axiom_output_free(om_output, env);

Modified: webservices/axis2/trunk/c/samples/client/mtom/mtom_client.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/client/mtom/mtom_client.c?rev=580289&r1=580288&r2=580289&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/client/mtom/mtom_client.c (original)
+++ webservices/axis2/trunk/c/samples/client/mtom/mtom_client.c Fri Sep 28 03:29:16 2007
@@ -1,3 +1,4 @@
+
 /*
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
@@ -21,27 +22,29 @@
 #include <axiom_soap.h>
 #include <axis2_client.h>
 
-axiom_node_t *
-build_om_programatically(const axutil_env_t *env,
-        const axis2_char_t *image_name,
-        const axis2_char_t *to_save_name,
-        axis2_bool_t optimized);
-
-int main(int argc, char** argv)
+axiom_node_t *build_om_programatically(
+    const axutil_env_t * env,
+    const axis2_char_t * image_name,
+    const axis2_char_t * to_save_name,
+    axis2_bool_t optimized);
+
+int
+main(
+    int argc,
+    char **argv)
 {
     const axutil_env_t *env = NULL;
     const axis2_char_t *address = NULL;
-    axis2_endpoint_ref_t* endpoint_ref = NULL;
+    axis2_endpoint_ref_t *endpoint_ref = NULL;
     axis2_options_t *options = NULL;
     const axis2_char_t *client_home = NULL;
-    axis2_svc_client_t* svc_client = NULL;
+    axis2_svc_client_t *svc_client = NULL;
     axiom_node_t *payload = NULL;
     axiom_node_t *ret_node = NULL;
     const axis2_char_t *image_name = "resources/axis2.jpg";
     const axis2_char_t *to_save_name = "test.jpg";
     axis2_bool_t optimized = AXIS2_TRUE;
 
-
     /* Set up the environment */
     env = axutil_env_create_all("mtom.log", AXIS2_LOG_LEVEL_TRACE);
 
@@ -51,7 +54,9 @@
         address = argv[1];
     if (axutil_strcmp(address, "-h") == 0)
     {
-        printf("Usage : %s [endpoint_url] [image_name] [to_save_name] [do_not_optimize]\n", argv[0]);
+        printf
+            ("Usage : %s [endpoint_url] [image_name] [to_save_name] [do_not_optimize]\n",
+             argv[0]);
         printf("use -h for help\n");
         return 0;
     }
@@ -71,7 +76,7 @@
     options = axis2_options_create(env);
     axis2_options_set_to(options, env, endpoint_ref);
     axis2_options_set_action(options, env,
-            "http://ws.apache.org/axis2/c/samples/mtomSample");
+                             "http://ws.apache.org/axis2/c/samples/mtomSample");
 
     axis2_options_set_soap_version(options, env, AXIOM_SOAP11);
     axis2_options_set_enable_mtom(options, env, AXIS2_TRUE);
@@ -84,18 +89,20 @@
      * modules that the client uses
      */
     client_home = AXIS2_GETENV("AXIS2C_HOME");
-    if (!client_home || !strcmp (client_home, ""))
+    if (!client_home || !strcmp(client_home, ""))
         client_home = "../..";
 
     /* Create service client */
     svc_client = axis2_svc_client_create(env, client_home);
     if (!svc_client)
     {
-        printf("Error creating service client, Please check AXIS2C_HOME again\n");
-        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Stub invoke FAILED: Error code:"
-                " %d :: %s", env->error->error_number,
-                AXIS2_ERROR_GET_MESSAGE(env->error));
-		  return -1;
+        printf
+            ("Error creating service client, Please check AXIS2C_HOME again\n");
+        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
+                        "Stub invoke FAILED: Error code:" " %d :: %s",
+                        env->error->error_number,
+                        AXIS2_ERROR_GET_MESSAGE(env->error));
+        return -1;
     }
 
     /* Set service client options */
@@ -104,8 +111,9 @@
     /* Engage addressing module */
     axis2_svc_client_engage_module(svc_client, env, AXIS2_MODULE_ADDRESSING);
 
-    /* Build the SOAP request message payload using OM API.*/
-    payload = build_om_programatically(env, image_name, to_save_name, optimized);
+    /* Build the SOAP request message payload using OM API. */
+    payload =
+        build_om_programatically(env, image_name, to_save_name, optimized);
 
     /* Send request */
     ret_node = axis2_svc_client_send_receive(svc_client, env, payload);
@@ -123,9 +131,10 @@
     }
     else
     {
-        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Stub invoke FAILED: Error code:"
-                " %d :: %s", env->error->error_number,
-                AXIS2_ERROR_GET_MESSAGE(env->error));
+        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
+                        "Stub invoke FAILED: Error code:" " %d :: %s",
+                        env->error->error_number,
+                        AXIS2_ERROR_GET_MESSAGE(env->error));
         printf("\nmtom client invoke FAILED!\n");
     }
 
@@ -147,34 +156,42 @@
 
 /* build SOAP request message content using OM */
 axiom_node_t *
-build_om_programatically(const axutil_env_t *env,
-        const axis2_char_t *image_name,
-        const axis2_char_t *to_save_name,
-        axis2_bool_t optimized)
+build_om_programatically(
+    const axutil_env_t * env,
+    const axis2_char_t * image_name,
+    const axis2_char_t * to_save_name,
+    axis2_bool_t optimized)
 {
     axiom_node_t *mtom_om_node = NULL;
-    axiom_element_t* mtom_om_ele = NULL;
-    axiom_node_t* image_om_node = NULL;
-    axiom_element_t * image_om_ele = NULL;
-    axiom_node_t* file_om_node = NULL;
-    axiom_element_t * file_om_ele = NULL;
-    axiom_node_t* data_om_node = NULL;
-    axiom_text_t * data_text = NULL;
+    axiom_element_t *mtom_om_ele = NULL;
+    axiom_node_t *image_om_node = NULL;
+    axiom_element_t *image_om_ele = NULL;
+    axiom_node_t *file_om_node = NULL;
+    axiom_element_t *file_om_ele = NULL;
+    axiom_node_t *data_om_node = NULL;
+    axiom_text_t *data_text = NULL;
     axiom_namespace_t *ns1 = NULL;
     axis2_char_t *om_str = NULL;
 
     axiom_data_handler_t *data_handler = NULL;
 
-    ns1 = axiom_namespace_create(env, "http://ws.apache.org/axis2/c/samples/mtom", "ns1");
-    mtom_om_ele = axiom_element_create(env, NULL, "mtomSample", ns1, &mtom_om_node);
+    ns1 =
+        axiom_namespace_create(env, "http://ws.apache.org/axis2/c/samples/mtom",
+                               "ns1");
+    mtom_om_ele =
+        axiom_element_create(env, NULL, "mtomSample", ns1, &mtom_om_node);
 
-    file_om_ele = axiom_element_create(env, mtom_om_node, "fileName", ns1, &file_om_node);
+    file_om_ele =
+        axiom_element_create(env, mtom_om_node, "fileName", ns1, &file_om_node);
     axiom_element_set_text(file_om_ele, env, to_save_name, file_om_node);
 
-    image_om_ele = axiom_element_create(env, mtom_om_node, "image", ns1, &image_om_node);
+    image_om_ele =
+        axiom_element_create(env, mtom_om_node, "image", ns1, &image_om_node);
 
     data_handler = axiom_data_handler_create(env, image_name, "image/jpeg");
-    data_text = axiom_text_create_with_data_handler(env, image_om_node, data_handler, &data_om_node);
+    data_text =
+        axiom_text_create_with_data_handler(env, image_om_node, data_handler,
+                                            &data_om_node);
     axiom_text_set_optimize(data_text, env, optimized);
     om_str = axiom_node_to_string(mtom_om_node, env);
     if (om_str)

Modified: webservices/axis2/trunk/c/samples/client/notify/notify_client.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/client/notify/notify_client.c?rev=580289&r1=580288&r2=580289&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/client/notify/notify_client.c (original)
+++ webservices/axis2/trunk/c/samples/client/notify/notify_client.c Fri Sep 28 03:29:16 2007
@@ -1,3 +1,4 @@
+
 /*
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
@@ -21,17 +22,20 @@
 #include <axiom_soap.h>
 #include <axis2_client.h>
 
-axiom_node_t *
-build_om_programatically(const axutil_env_t *env);
+axiom_node_t *build_om_programatically(
+    const axutil_env_t * env);
 
-int main(int argc, char** argv)
+int
+main(
+    int argc,
+    char **argv)
 {
     const axutil_env_t *env = NULL;
     const axis2_char_t *address = NULL;
-    axis2_endpoint_ref_t* endpoint_ref = NULL;
+    axis2_endpoint_ref_t *endpoint_ref = NULL;
     axis2_options_t *options = NULL;
     const axis2_char_t *client_home = NULL;
-    axis2_svc_client_t* svc_client = NULL;
+    axis2_svc_client_t *svc_client = NULL;
     axiom_node_t *payload = NULL;
     axis2_status_t status = AXIS2_FAILURE;
 
@@ -56,8 +60,7 @@
     /* Setup options */
     options = axis2_options_create(env);
     axis2_options_set_to(options, env, endpoint_ref);
-    axis2_options_set_action(options, env,
-            "http://example.org/action/notify");
+    axis2_options_set_action(options, env, "http://example.org/action/notify");
 
     /* Set up deploy folder. It is from the deploy folder, the configuration is picked up
      * using the axis2.xml file.
@@ -67,18 +70,20 @@
      * modules that the client uses
      */
     client_home = AXIS2_GETENV("AXIS2C_HOME");
-    if (!client_home || !strcmp (client_home, ""))
+    if (!client_home || !strcmp(client_home, ""))
         client_home = "../..";
 
     /* Create service client */
     svc_client = axis2_svc_client_create(env, client_home);
     if (!svc_client)
     {
-        printf("Error creating service client, Please check AXIS2C_HOME again\n");
-        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Stub invoke FAILED: Error code:"
-                " %d :: %s", env->error->error_number,
-                AXIS2_ERROR_GET_MESSAGE(env->error));
-		  return -1;
+        printf
+            ("Error creating service client, Please check AXIS2C_HOME again\n");
+        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
+                        "Stub invoke FAILED: Error code:" " %d :: %s",
+                        env->error->error_number,
+                        AXIS2_ERROR_GET_MESSAGE(env->error));
+        return -1;
     }
 
     /* Set service client options */
@@ -87,7 +92,7 @@
     /* Engage addressing module */
     axis2_svc_client_engage_module(svc_client, env, AXIS2_MODULE_ADDRESSING);
 
-    /* Build the SOAP request message payload using OM API.*/
+    /* Build the SOAP request message payload using OM API. */
     payload = build_om_programatically(env);
 
     /* Send request */
@@ -99,9 +104,10 @@
     }
     else
     {
-        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Stub invoke FAILED: Error code:"
-                " %d :: %s", env->error->error_number,
-                AXIS2_ERROR_GET_MESSAGE(env->error));
+        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
+                        "Stub invoke FAILED: Error code:" " %d :: %s",
+                        env->error->error_number,
+                        AXIS2_ERROR_GET_MESSAGE(env->error));
         printf("notify client invoke FAILED!\n");
     }
 
@@ -122,21 +128,23 @@
 
 /* build SOAP request message content using OM */
 axiom_node_t *
-build_om_programatically(const axutil_env_t *env)
+build_om_programatically(
+    const axutil_env_t * env)
 {
     axiom_node_t *notify_om_node = NULL;
-    axiom_element_t* notify_om_ele = NULL;
+    axiom_element_t *notify_om_ele = NULL;
     axiom_namespace_t *ns1 = NULL;
     axis2_char_t *buffer = NULL;
 
     ns1 = axiom_namespace_create(env, "http://example.org/notify", "m");
-    notify_om_ele = axiom_element_create(env, NULL, "notify", ns1, &notify_om_node);
+    notify_om_ele =
+        axiom_element_create(env, NULL, "notify", ns1, &notify_om_node);
     axiom_element_set_text(notify_om_ele, env, "notify5", notify_om_node);
 
     buffer = axiom_node_to_string(notify_om_node, env);
     if (buffer)
     {
-        printf("\nSending OM node in XML : %s \n",  buffer);
+        printf("\nSending OM node in XML : %s \n", buffer);
         AXIS2_FREE(env->allocator, buffer);
     }
 

Modified: webservices/axis2/trunk/c/samples/client/yahoo/yahoo_client.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/client/yahoo/yahoo_client.c?rev=580289&r1=580288&r2=580289&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/client/yahoo/yahoo_client.c (original)
+++ webservices/axis2/trunk/c/samples/client/yahoo/yahoo_client.c Fri Sep 28 03:29:16 2007
@@ -1,3 +1,4 @@
+
 /*
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
@@ -20,45 +21,51 @@
 #include <axis2_client.h>
 #include <axis2_http_transport.h>
 
-axiom_node_t *
-build_yahoo_rest_payload (const axutil_env_t *env, axis2_char_t *string);
-
-void 
-format_output (const axutil_env_t *env, axiom_node_t *ret_node);
+axiom_node_t *build_yahoo_rest_payload(
+    const axutil_env_t * env,
+    axis2_char_t * string);
+
+void format_output(
+    const axutil_env_t * env,
+    axiom_node_t * ret_node);
+
+void format_output_one(
+    const axutil_env_t * env,
+    axiom_node_t * child_node);
 
-void 
-format_output_one (const axutil_env_t *env, axiom_node_t *child_node);
+int print_help(
+    );
 
 int
-print_help ();
-
-int main (int argc, char *argv[])
+main(
+    int argc,
+    char *argv[])
 {
     const axutil_env_t *env = NULL;
     const axis2_char_t *address = NULL;
-    axis2_endpoint_ref_t* endpoint_ref = NULL;
+    axis2_endpoint_ref_t *endpoint_ref = NULL;
     axis2_options_t *options = NULL;
     const axis2_char_t *client_home = NULL;
-    axis2_svc_client_t* svc_client = NULL;
+    axis2_svc_client_t *svc_client = NULL;
     axiom_node_t *payload = NULL;
     axiom_node_t *ret_node = NULL;
-	axis2_char_t *search_string = NULL;
+    axis2_char_t *search_string = NULL;
 
-	if (argc > 1)
-	{
+    if (argc > 1)
+    {
 
-		if (!strcmp (argv[1], "-h") || !strcmp (argv[1], "--help"))
-		{
-			print_help ();
-		}
-		else
-			search_string = argv[1];
-	}
+        if (!strcmp(argv[1], "-h") || !strcmp(argv[1], "--help"))
+        {
+            print_help();
+        }
+        else
+            search_string = argv[1];
+    }
 
     env = axutil_env_create_all("yahoo_rest_search.log", AXIS2_LOG_LEVEL_TRACE);
-	address = "http://search.yahooapis.com/WebSearchService/V1/webSearch";
+    address = "http://search.yahooapis.com/WebSearchService/V1/webSearch";
 
-	printf ("using endpoint %s \n", address);
+    printf("using endpoint %s \n", address);
 
     endpoint_ref = axis2_endpoint_ref_create(env, address);
 
@@ -69,39 +76,42 @@
     axis2_options_set_http_method(options, env, AXIS2_HTTP_GET);
 
     client_home = AXIS2_GETENV("AXIS2C_HOME");
-    if (!client_home || !strcmp (client_home, ""))
+    if (!client_home || !strcmp(client_home, ""))
         client_home = "../..";
 
     /* Create service client */
     svc_client = axis2_svc_client_create(env, client_home);
     if (!svc_client)
     {
-        printf("Error creating service client, Please check AXIS2C_HOME again\n");
-        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Stub invoke FAILED: Error code:"
-                " %d :: %s", env->error->error_number,
-                AXIS2_ERROR_GET_MESSAGE(env->error));
-		  return -1;
+        printf
+            ("Error creating service client, Please check AXIS2C_HOME again\n");
+        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
+                        "Stub invoke FAILED: Error code:" " %d :: %s",
+                        env->error->error_number,
+                        AXIS2_ERROR_GET_MESSAGE(env->error));
+        return -1;
     }
 
     /* Set service client options */
     axis2_svc_client_set_options(svc_client, env, options);
 
-    /* Build the SOAP request message payload using OM API.*/
-    payload = build_yahoo_rest_payload (env, search_string);
+    /* Build the SOAP request message payload using OM API. */
+    payload = build_yahoo_rest_payload(env, search_string);
 
     /* Send request */
     ret_node = axis2_svc_client_send_receive(svc_client, env, payload);
 
     if (ret_node)
     {
-		format_output (env, ret_node);
+        format_output(env, ret_node);
         printf("\nYahoo REST client invoke SUCCESSFUL!\n");
     }
     else
     {
-        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Stub invoke FAILED: Error code:"
-                " %d :: %s", env->error->error_number,
-                AXIS2_ERROR_GET_MESSAGE(env->error));
+        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
+                        "Stub invoke FAILED: Error code:" " %d :: %s",
+                        env->error->error_number,
+                        AXIS2_ERROR_GET_MESSAGE(env->error));
         printf("Yahoo REST client invoke FAILED!\n");
     }
 
@@ -114,65 +124,73 @@
 }
 
 axiom_node_t *
-build_yahoo_rest_payload (const axutil_env_t *env, axis2_char_t *string)
+build_yahoo_rest_payload(
+    const axutil_env_t * env,
+    axis2_char_t * string)
 {
-	axiom_node_t *root_node;
-	axiom_node_t *appid_node;
-	axiom_node_t *query_node;
-	axiom_element_t *appid_element;
-	axiom_element_t *query_element;
-	axiom_element_t *root_element;
-	root_node = axiom_node_create (env);
-	appid_node = axiom_node_create (env);
-	query_node = axiom_node_create (env);
-	root_element = axiom_element_create (env, NULL, "yahoo_rest_search", NULL, &root_node);
-	appid_element = axiom_element_create (env, root_node, "appid", NULL, &appid_node);
-	axiom_element_set_text (appid_element, env, "YahooDemo",  appid_node); 
-	query_element = axiom_element_create (env, root_node, "query", NULL, &query_node);
-	if (string)
-		axiom_element_set_text (query_element, env, string,  query_node); 
-	else
-		axiom_element_set_text (query_element, env, "finance",  query_node); 
-	return root_node;
+    axiom_node_t *root_node;
+    axiom_node_t *appid_node;
+    axiom_node_t *query_node;
+    axiom_element_t *appid_element;
+    axiom_element_t *query_element;
+    axiom_element_t *root_element;
+    root_node = axiom_node_create(env);
+    appid_node = axiom_node_create(env);
+    query_node = axiom_node_create(env);
+    root_element =
+        axiom_element_create(env, NULL, "yahoo_rest_search", NULL, &root_node);
+    appid_element =
+        axiom_element_create(env, root_node, "appid", NULL, &appid_node);
+    axiom_element_set_text(appid_element, env, "YahooDemo", appid_node);
+    query_element =
+        axiom_element_create(env, root_node, "query", NULL, &query_node);
+    if (string)
+        axiom_element_set_text(query_element, env, string, query_node);
+    else
+        axiom_element_set_text(query_element, env, "finance", query_node);
+    return root_node;
 }
 
-void 
-format_output (const axutil_env_t *env, axiom_node_t *node)
+void
+format_output(
+    const axutil_env_t * env,
+    axiom_node_t * node)
 {
-	axiom_node_t *child_node;
-	child_node = axiom_node_get_first_child (node, env);
-	while (axiom_node_is_complete (node, env) && child_node)
-	{
-		printf ("\n\n");
-		format_output_one (env, child_node);
-		child_node = axiom_node_get_next_sibling (child_node, env);
-	}
-
+    axiom_node_t *child_node;
+    child_node = axiom_node_get_first_child(node, env);
+    while (axiom_node_is_complete(node, env) && child_node)
+    {
+        printf("\n\n");
+        format_output_one(env, child_node);
+        child_node = axiom_node_get_next_sibling(child_node, env);
+    }
 
 }
 
 void
-format_output_one (const axutil_env_t *env, axiom_node_t *node)
+format_output_one(
+    const axutil_env_t * env,
+    axiom_node_t * node)
 {
-	axiom_node_t *child_node;
-	child_node = axiom_node_get_first_child (node, env);
-	while (axiom_node_is_complete (node, env) && child_node)
-	{
+    axiom_node_t *child_node;
+    child_node = axiom_node_get_first_child(node, env);
+    while (axiom_node_is_complete(node, env) && child_node)
+    {
         axis2_char_t *om_str = axiom_node_to_string(child_node, env);
-        if (om_str) 
+        if (om_str)
         {
-    		printf ("\t%s\n", om_str);
+            printf("\t%s\n", om_str);
             AXIS2_FREE(env->allocator, om_str);
         }
-		child_node = axiom_node_get_next_sibling (child_node, env);
-	}
+        child_node = axiom_node_get_next_sibling(child_node, env);
+    }
 }
 
-
 int
-print_help ()
+print_help(
+    )
 {
-	printf ("./yahoosearch string_to_search \n");
-	exit (0);
-	return 0;
+    printf("./yahoosearch string_to_search \n");
+    exit(0);
+    return 0;
 }

Modified: webservices/axis2/trunk/c/samples/codegen/client/calc_xml_inout/test_Calcultor.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/codegen/client/calc_xml_inout/test_Calcultor.c?rev=580289&r1=580288&r2=580289&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/codegen/client/calc_xml_inout/test_Calcultor.c (original)
+++ webservices/axis2/trunk/c/samples/codegen/client/calc_xml_inout/test_Calcultor.c Fri Sep 28 03:29:16 2007
@@ -1,3 +1,4 @@
+
 /*
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
@@ -17,66 +18,77 @@
 
 #include "axis2_Calculator_stub.h"
 
-axiom_node_t* generate_request_xml(const  axutil_env_t* env);
-void handle_respone_xml(const  axutil_env_t* env, axiom_node_t* res);
-
-int main(int argc, char** argv)
+axiom_node_t *generate_request_xml(
+    const axutil_env_t * env);
+void handle_respone_xml(
+    const axutil_env_t * env,
+    axiom_node_t * res);
+
+int
+main(
+    int argc,
+    char **argv)
 {
-    axutil_env_t* env = NULL;
-    axis2_char_t* operation = NULL;
-    axis2_char_t* client_home = NULL;
+    axutil_env_t *env = NULL;
+    axis2_char_t *operation = NULL;
+    axis2_char_t *client_home = NULL;
 
-    axis2_char_t* endpoint_uri = NULL;
+    axis2_char_t *endpoint_uri = NULL;
 
-    axis2_stub_t* stub = NULL;
+    axis2_stub_t *stub = NULL;
 
-    axiom_node_t* req = NULL;
-    axiom_node_t* res = NULL;
+    axiom_node_t *req = NULL;
+    axiom_node_t *res = NULL;
 
     endpoint_uri = "http://localhost:9090/axis2/services/Calculator";
 
-    env = axutil_env_create_all("codegen_utest_blocking.log", AXIS2_LOG_LEVEL_TRACE);
+    env =
+        axutil_env_create_all("codegen_utest_blocking.log",
+                              AXIS2_LOG_LEVEL_TRACE);
 
-    /* Set up deploy folder.*/
+    /* 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);
+    stub = axis2_Calculator_stub_create(env, client_home, endpoint_uri);
 
-    req =  generate_request_xml(env);
+    req = generate_request_xml(env);
 
-    /* invoke the web service method*/
+    /* invoke the web service method */
     res = axis2_add(stub, env, req);
 
-    handle_respone_xml(env , res);
+    handle_respone_xml(env, res);
 
     return 0;
 }
 
-axiom_node_t* generate_request_xml(const  axutil_env_t* env)
+axiom_node_t *
+generate_request_xml(
+    const axutil_env_t * env)
 {
     axiom_node_t *op_node = NULL;
-    axiom_element_t* op_ele = NULL;
-    axiom_node_t* value_node = NULL;
-    axiom_element_t * value_ele = NULL;
+    axiom_element_t *op_ele = NULL;
+    axiom_node_t *value_node = NULL;
+    axiom_element_t *value_ele = NULL;
     axiom_namespace_t *ns1 = NULL;
     axis2_char_t *om_str = NULL;
 
-    int value1 =  13;
-    int value2 =  7;
+    int value1 = 13;
+    int value2 = 7;
     char value_str[64];
 
-    ns1 = axiom_namespace_create(env, "http://localhost/axis/Calculator", "ns1");
+    ns1 =
+        axiom_namespace_create(env, "http://localhost/axis/Calculator", "ns1");
     op_ele = axiom_element_create(env, NULL, "add", ns1, &op_node);
 
     value_ele = axiom_element_create(env, op_node, "in1", NULL, &value_node);
     sprintf(value_str, "%d", value1);
-    axiom_element_set_text(value_ele, env, value_str , value_node);
+    axiom_element_set_text(value_ele, env, value_str, value_node);
 
     value_ele = axiom_element_create(env, op_node, "in2", NULL, &value_node);
     sprintf(value_str, "%d", value1);
-    axiom_element_set_text(value_ele, env, value_str , value_node);
+    axiom_element_set_text(value_ele, env, value_str, value_node);
 
     printf("requesting %d  + %d \n", value1, value2);
     om_str = AXIOM_NODE_TO_STRING(op_node, env);
@@ -87,13 +99,16 @@
 
 }
 
-void handle_respone_xml(const  axutil_env_t* env, axiom_node_t* res)
+void
+handle_respone_xml(
+    const axutil_env_t * env,
+    axiom_node_t * res)
 {
-    axiom_node_t* node = NULL;
-    axiom_element_t* ele = NULL;
-    axis2_char_t* text =  NULL;
+    axiom_node_t *node = NULL;
+    axiom_element_t *ele = NULL;
+    axis2_char_t *text = NULL;
 
-    if (! res)
+    if (!res)
     {
         printf("response null\n");
         return;

Modified: 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=580289&r1=580288&r2=580289&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/codegen/client/calculator/test_Calcultor.c (original)
+++ webservices/axis2/trunk/c/samples/codegen/client/calculator/test_Calcultor.c Fri Sep 28 03:29:16 2007
@@ -1,3 +1,4 @@
+
 /*
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
@@ -17,21 +18,24 @@
 
 #include "axis2_Calculator_stub.h"
 
-int main(int argc, char** argv)
+int
+main(
+    int argc,
+    char **argv)
 {
-    axutil_env_t* env = NULL;
-    axis2_char_t* operation = NULL;
-    axis2_char_t* client_home = NULL;
+    axutil_env_t *env = NULL;
+    axis2_char_t *operation = NULL;
+    axis2_char_t *client_home = NULL;
 
-    axis2_char_t* endpoint_uri = NULL;
+    axis2_char_t *endpoint_uri = NULL;
 
-    axis2_stub_t* stub = 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;
+    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;
 
@@ -40,15 +44,16 @@
 
     endpoint_uri = "http://localhost:9090/axis2/services/calculator";
 
-    env = axutil_env_create_all("codegen_utest_blocking.log", AXIS2_LOG_LEVEL_TRACE);
+    env =
+        axutil_env_create_all("codegen_utest_blocking.log",
+                              AXIS2_LOG_LEVEL_TRACE);
 
-    /* Set up deploy folder.*/
+    /* 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);
-
+    stub = axis2_Calculator_stub_create(env, client_home, endpoint_uri);
 
     /* create the struct */
     add_req = axis2_addRequest_create(env);
@@ -59,7 +64,7 @@
     add_in = axis2_add_create(env);
     AXIS2_ADD_SET_ADD(add_in, env, add_req);
 
-    /* invoke the web service method*/
+    /* invoke the web service method */
     add_res = axis2_add(stub, env, add_in);
 
     if (!add_res)

Modified: 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=580289&r1=580288&r2=580289&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/codegen/client/interop_doc1/test_echo_date.c (original)
+++ webservices/axis2/trunk/c/samples/codegen/client/interop_doc1/test_echo_date.c Fri Sep 28 03:29:16 2007
@@ -1,3 +1,4 @@
+
 /*
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
@@ -17,55 +18,59 @@
 
 #include "axis2_InteropTestPortTypeDocService_stub.h"
 
-int main(int argc, char** argv)
+int
+main(
+    int argc,
+    char **argv)
 {
-    axutil_env_t* env = NULL;
-    axis2_char_t* client_home = NULL;
+    axutil_env_t *env = NULL;
+    axis2_char_t *client_home = NULL;
 
-    axis2_char_t* endpoint_uri = NULL;
+    axis2_char_t *endpoint_uri = NULL;
 
-    axis2_stub_t* stub = NULL;
+    axis2_stub_t *stub = NULL;
 
     /* variables use databinding */
-    axis2_echoDate_t* echo_in = NULL;
-    axis2_echoDateResponse_t* echo_out = NULL;
+    axis2_echoDate_t *echo_in = NULL;
+    axis2_echoDateResponse_t *echo_out = NULL;
 
-    axutil_date_time_t* echo_date = NULL;
-    axutil_date_time_t* return_echo_date = NULL;
+    axutil_date_time_t *echo_date = NULL;
+    axutil_date_time_t *return_echo_date = NULL;
 
-    axis2_char_t* send_date_str = NULL;
-    axis2_char_t* return_date_str = NULL;
+    axis2_char_t *send_date_str = NULL;
+    axis2_char_t *return_date_str = NULL;
 
-    endpoint_uri =
-        "http://localhost:9090/axis2/services/interop_doc1";
+    endpoint_uri = "http://localhost:9090/axis2/services/interop_doc1";
 
     env = axutil_env_create_all("codegen_utest_blocking.log",
-            AXIS2_LOG_LEVEL_TRACE);
+                                AXIS2_LOG_LEVEL_TRACE);
 
-    /* Set up deploy folder.*/
+    /* 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);
+                                                           client_home,
+                                                           endpoint_uri);
 
     /* create the struct */
-    echo_date = axutil_date_time_create(env); /* default to current date */
-    send_date_str =  axutil_date_time_seriasize_date_time(echo_date, env);
+    echo_date = axutil_date_time_create(env);   /* default to current date */
+    send_date_str = axutil_date_time_seriasize_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*/
+    /* 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_echo_date = AXIS2_ECHODATERESPONSE_GET_ECHODATERETURN(echo_out, env);
 
-    return_date_str =  axutil_date_time_seriasize_date_time(return_echo_date, env);
+    return_date_str =
+        axutil_date_time_seriasize_date_time(return_echo_date, env);
     printf("returned date %s\n", return_date_str);
 
     return 0;

Modified: 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=580289&r1=580288&r2=580289&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/codegen/client/interop_doc1/test_echo_struct_array.c (original)
+++ webservices/axis2/trunk/c/samples/codegen/client/interop_doc1/test_echo_struct_array.c Fri Sep 28 03:29:16 2007
@@ -1,3 +1,4 @@
+
 /*
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
@@ -17,45 +18,47 @@
 
 #include "axis2_InteropTestPortTypeDocService_stub.h"
 
-int main(int argc, char** argv)
+int
+main(
+    int argc,
+    char **argv)
 {
-    axutil_env_t* env = NULL;
-    axis2_char_t* client_home = NULL;
+    axutil_env_t *env = NULL;
+    axis2_char_t *client_home = NULL;
 
-    axis2_char_t* endpoint_uri = NULL;
+    axis2_char_t *endpoint_uri = NULL;
 
-    axis2_stub_t* stub = NULL;
+    axis2_stub_t *stub = NULL;
 
     /* variables use databinding */
-    axis2_echoStructArray_t* echo_in = NULL;
-    axis2_echoStructArrayResponse_t* echo_out = NULL;
+    axis2_echoStructArray_t *echo_in = NULL;
+    axis2_echoStructArrayResponse_t *echo_out = NULL;
 
-    axis2_SOAPStruct_t** echo_struct_arr = NULL;
+    axis2_SOAPStruct_t **echo_struct_arr = NULL;
     int arr_size = 0;
-    axis2_SOAPStruct_t** ret_echo_struct_arr = NULL;
+    axis2_SOAPStruct_t **ret_echo_struct_arr = NULL;
     int ret_arr_size = 0;
 
-    int i = 0 ; /* for for loop */
-
+    int i = 0;                  /* for for loop */
 
-    endpoint_uri =
-        "http://localhost:9090/axis2/services/interop_doc1";
+    endpoint_uri = "http://localhost:9090/axis2/services/interop_doc1";
 
     env = axutil_env_create_all("codegen_utest_blocking.log",
-            AXIS2_LOG_LEVEL_TRACE);
+                                AXIS2_LOG_LEVEL_TRACE);
 
-    /* Set up deploy folder.*/
+    /* 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);
+                                                           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 = (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");
@@ -76,18 +79,18 @@
     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*/
+    /* 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 ++)
+        (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));
+               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;
 }

Modified: 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=580289&r1=580288&r2=580289&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/codegen/client/interop_doc2/test_echo_string.c (original)
+++ webservices/axis2/trunk/c/samples/codegen/client/interop_doc2/test_echo_string.c Fri Sep 28 03:29:16 2007
@@ -1,3 +1,4 @@
+
 /*
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
@@ -17,33 +18,39 @@
 
 #include "axis2_WSDLInteropTestDocLitService_stub.h"
 
-int main(int argc, char** argv)
+int
+main(
+    int argc,
+    char **argv)
 {
-    axutil_env_t* env = NULL;
-    axis2_char_t* client_home = NULL;
+    axutil_env_t *env = NULL;
+    axis2_char_t *client_home = NULL;
 
-    axis2_char_t* endpoint_uri = NULL;
+    axis2_char_t *endpoint_uri = NULL;
 
-    axis2_stub_t* stub = NULL;
+    axis2_stub_t *stub = NULL;
 
     /* variables use databinding */
-    axis2_echoString_t* echo_in = NULL;
-    axis2_echoStringResponse_t* echo_out = NULL;
+    axis2_echoString_t *echo_in = NULL;
+    axis2_echoStringResponse_t *echo_out = NULL;
 
-    char* echo_str = "hello";
-    char* return_echo_str = NULL;
+    char *echo_str = "hello";
+    char *return_echo_str = NULL;
 
     endpoint_uri = "http://localhost:9090/axis2/services/interop_doc2";
 
-    env = axutil_env_create_all("codegen_utest_blocking.log", AXIS2_LOG_LEVEL_TRACE);
+    env =
+        axutil_env_create_all("codegen_utest_blocking.log",
+                              AXIS2_LOG_LEVEL_TRACE);
 
-    /* Set up deploy folder.*/
+    /* 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);
-
+    stub =
+        axis2_WSDLInteropTestDocLitService_stub_create(env, client_home,
+                                                       endpoint_uri);
 
     /* create the struct */
 
@@ -51,11 +58,11 @@
     echo_in = axis2_echoString_create(env);
     AXIS2_ECHOSTRING_SET_PARAM0(echo_in, env, echo_str);
 
-    /* invoke the web service method*/
+    /* 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);
+    return_echo_str = AXIS2_ECHOSTRUCTRESPONSE_GET_RETURN(echo_out, env);
 
     printf("returned string %s\n", return_echo_str);
 

Modified: 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=580289&r1=580288&r2=580289&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/codegen/client/interop_doc2/test_echo_string_array.c (original)
+++ webservices/axis2/trunk/c/samples/codegen/client/interop_doc2/test_echo_string_array.c Fri Sep 28 03:29:16 2007
@@ -1,3 +1,4 @@
+
 /*
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
@@ -17,61 +18,66 @@
 
 #include "axis2_WSDLInteropTestDocLitService_stub.h"
 
-int main(int argc, char** argv)
+int
+main(
+    int argc,
+    char **argv)
 {
-    axutil_env_t* env = NULL;
-    axis2_char_t* client_home = NULL;
-
-    axis2_char_t* endpoint_uri = NULL;
+    axutil_env_t *env = NULL;
+    axis2_char_t *client_home = NULL;
 
-    axis2_stub_t* stub = 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;
+    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 */
+    int i = 0;                  /* for loops */
 
     endpoint_uri = "http://localhost:9090/axis2/services/interop_doc2";
 
-    env = axutil_env_create_all("codegen_utest_blocking.log", AXIS2_LOG_LEVEL_TRACE);
+    env =
+        axutil_env_create_all("codegen_utest_blocking.log",
+                              AXIS2_LOG_LEVEL_TRACE);
 
-    /* Set up deploy folder.*/
+    /* 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);
-
+    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);
+                                           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*/
+    /* 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);
+        (array_out, env, &return_array_length);
 
-    for (i = 0; i < return_array_length ; i ++)
+    for (i = 0; i < return_array_length; i++)
     {
         printf("value%d: %s \n", i, string_return_string_array[i]);
     }

Modified: 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=580289&r1=580288&r2=580289&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/codegen/client/interop_doc2/test_echo_struct.c (original)
+++ webservices/axis2/trunk/c/samples/codegen/client/interop_doc2/test_echo_struct.c Fri Sep 28 03:29:16 2007
@@ -1,3 +1,4 @@
+
 /*
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
@@ -17,41 +18,46 @@
 
 #include "axis2_WSDLInteropTestDocLitService_stub.h"
 
-int main(int argc, char** argv)
+int
+main(
+    int argc,
+    char **argv)
 {
-    axutil_env_t* env = NULL;
-    axis2_char_t* client_home = NULL;
+    axutil_env_t *env = NULL;
+    axis2_char_t *client_home = NULL;
 
-    axis2_char_t* endpoint_uri = NULL;
+    axis2_char_t *endpoint_uri = NULL;
 
-    axis2_stub_t* stub = 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;
-
+    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";
+    char *string_val = "hello struct";
 
     int ret_int_val = 0;
     float ret_float_val = 0;
-    char* ret_string_val = "";
+    char *ret_string_val = "";
 
     endpoint_uri = "http://localhost:9090/axis2/services/interop_doc2";
 
-    env = axutil_env_create_all("codegen_utest_blocking.log", AXIS2_LOG_LEVEL_TRACE);
+    env =
+        axutil_env_create_all("codegen_utest_blocking.log",
+                              AXIS2_LOG_LEVEL_TRACE);
 
-    /* Set up deploy folder.*/
+    /* 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);
+                                                          client_home,
+                                                          endpoint_uri);
 
     /* create the struct */
     struct_in = axis2_SOAPStruct_create(env);
@@ -63,7 +69,7 @@
     echo_in = axis2_echoStruct_create(env);
     AXIS2_ECHOSTRUCT_SET_PARAM0(echo_in, env, struct_in);
 
-    /* invoke the web service method*/
+    /* invoke the web service method */
     echo_out = axis2_echoStruct(stub, env, echo_in);
 
     /* return the output params using databinding */

Modified: webservices/axis2/trunk/c/samples/codegen/databinding/Calculator/client/CalculatorAdd.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/codegen/databinding/Calculator/client/CalculatorAdd.c?rev=580289&r1=580288&r2=580289&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/codegen/databinding/Calculator/client/CalculatorAdd.c (original)
+++ webservices/axis2/trunk/c/samples/codegen/databinding/Calculator/client/CalculatorAdd.c Fri Sep 28 03:29:16 2007
@@ -1,46 +1,38 @@
 #include "axis2_stub_Calculator.h"
-
-int
-main(int argc, char *argv)
-{
-    axutil_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;
-
-    axis2_addResponse_t *add_res = NULL;
-    axis2_add_t *add_in = NULL;
-
-    int res_val = 0;
-    endpoint_uri = "http://localhost:9090/axis2/services/Calculator";
-
-    env = axutil_env_create_all("alltest.log", AXIS2_LOG_LEVEL_TRACE);
-
-    /* Set up deploy folder.*/
-    client_home = AXIS2_GETENV("AXIS2C_HOME");
-    if (!client_home)
-        client_home = "../../../deploy";
-
-    stub = axis2_stub_Calculator_create(env, client_home , endpoint_uri);
-
-    add_in = axis2_add_create(env);
-
-    axis2_add_set_arg_0_0(add_in, env, 10);
-    axis2_add_set_arg_1_0(add_in, env, 10);
-
-    add_res =  axis2_stub_Calculator_add(stub, env, add_in);
-
-    if(!add_res)
-    {
-        printf("Error: response NULL\n");
-        return -1;
-    }
-
-    res_val = axis2_addResponse_get_addReturn(add_res, env);
-
-    printf("ADD Result:%d ", res_val);
-
-    return 0;
-}
-
+
 int 
+main(
+    int argc,
+    char *argv) 
+{
+    
axutil_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;
+    

axis2_addResponse_t * add_res = NULL;
+    
axis2_add_t * add_in = NULL;
+    

int res_val = 0;
+    
endpoint_uri = "http://localhost:9090/axis2/services/Calculator";
+    

env = axutil_env_create_all("alltest.log", AXIS2_LOG_LEVEL_TRACE);
+    
+        /* Set up deploy folder. */ 
+        client_home = AXIS2_GETENV("AXIS2C_HOME");
+    
if (!client_home)
+        
client_home = "../../../deploy";
+    

stub = axis2_stub_Calculator_create(env, client_home, endpoint_uri);
+    

add_in = axis2_add_create(env);
+    

axis2_add_set_arg_0_0(add_in, env, 10);
+    
axis2_add_set_arg_1_0(add_in, env, 10);
+    

add_res = axis2_stub_Calculator_add(stub, env, add_in);
+    

if (!add_res)
+        
+    {
+        
printf("Error: response NULL\n");
+        
return -1;
+    
}
+    

res_val = axis2_addResponse_get_addReturn(add_res, env);
+    

printf("ADD Result:%d ", res_val);
+    

return 0;
+
}
+
+

Modified: webservices/axis2/trunk/c/samples/codegen/databinding/Calculator/server/axis2_skel_Calculator.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/codegen/databinding/Calculator/server/axis2_skel_Calculator.c?rev=580289&r1=580288&r2=580289&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/codegen/databinding/Calculator/server/axis2_skel_Calculator.c (original)
+++ webservices/axis2/trunk/c/samples/codegen/databinding/Calculator/server/axis2_skel_Calculator.c Fri Sep 28 03:29:16 2007
@@ -1,127 +1,104 @@
-
-
+
 
+
 /**
  * axis2_skel_Calculator.c
  *
  * This file was auto-generated from WSDL for "Calculator|http://localhost/axis/Calculator" service
  * by the Apache Axis2/C version: #axisVersion# #today#
  * axis2_skel_Calculator Axis2/C skeleton for the axisService
- */
-
- #include "axis2_skel_Calculator.h"
-
-
-
- 
+ */ 
+    
+#include "axis2_skel_Calculator.h"
+    


+
 /**
  * auto generated function definition signature
  * for "add|" operation.
  
  * @param add
- */
-axis2_addResponse_t* axis2_skel_Calculator_add (const axutil_env_t *env  ,
-                                      axis2_add_t* add )
-{
-    axis2_addResponse_t* add_res = NULL;
-
-    int ret_val = 0;
-
-    int val1 = 0;
-    int val2 = 0;
-
-    val1 = axis2_add_get_arg_0_0(add, env);
-    val2 = axis2_add_get_arg_1_0(add, env);
-
-    ret_val = val1 + val2;
-
-    add_res = axis2_addResponse_create(env);
-    axis2_addResponse_set_addReturn(add_res, env, ret_val);
-
-    return add_res; 
-}
- 
+ */ 
+    axis2_addResponse_t * axis2_skel_Calculator_add(const axutil_env_t * env,
+                                                    
axis2_add_t * add) 
+{
+    
axis2_addResponse_t * add_res = NULL;
+    

int ret_val = 0;
+    

int val1 = 0;
+    
int val2 = 0;
+    

val1 = axis2_add_get_arg_0_0(add, env);
+    
val2 = axis2_add_get_arg_1_0(add, env);
+    

ret_val = val1 + val2;
+    

add_res = axis2_addResponse_create(env);
+    
axis2_addResponse_set_addReturn(add_res, env, ret_val);
+    

return add_res;
+
}
+
+
+
 /**
  * auto generated function definition signature
  * for "div|" operation.
  
  * @param div
- */
-axis2_divResponse_t* axis2_skel_Calculator_div (const axutil_env_t *env  ,
-                                      axis2_div_t* div )
-{
-    axis2_divResponse_t *div_res = NULL;
-
-    int ret_val = 0;
-
-    int val1 = 0;
-    int val2 = 0;
-
-    val1 = axis2_div_get_arg_0_3(div, env);
-    val2 = axis2_div_get_arg_1_3(div, env);
-
-    ret_val = val1/val2;
-
-    div_res = axis2_divResponse_create(env);
-    axis2_divResponse_set_divReturn(div_res, env, ret_val);
-
-    return div_res;
-}
-
-
- 
+ */ 
+    axis2_divResponse_t * axis2_skel_Calculator_div(const axutil_env_t * env,
+                                                    
axis2_div_t * div) 
+{
+    
axis2_divResponse_t * div_res = NULL;
+    

int ret_val = 0;
+    

int val1 = 0;
+    
int val2 = 0;
+    

val1 = axis2_div_get_arg_0_3(div, env);
+    
val2 = axis2_div_get_arg_1_3(div, env);
+    

ret_val = val1 / val2;
+    

div_res = axis2_divResponse_create(env);
+    
axis2_divResponse_set_divReturn(div_res, env, ret_val);
+    

return div_res;
+
}
+
+


+
 /**
  * auto generated function definition signature
  * for "sub|" operation.
  
  * @param sub
- */
-axis2_subResponse_t* axis2_skel_Calculator_sub (const axutil_env_t *env  ,
-                                      axis2_sub_t* sub )
-{
-    axis2_subResponse_t *sub_res = NULL;
-
-    int ret_val = 0;
-
-    int val1 = 0;
-    int val2 = 0;
-
-    val1 = axis2_sub_get_arg_0_1(sub, env);
-    val2 = axis2_sub_get_arg_1_1(sub, env);
-    
-    ret_val = val1 - val2;
-
-    sub_res = axis2_subResponse_create(env);
-    axis2_subResponse_set_subReturn(sub_res, env, ret_val);
-
-    return sub_res;
-}
-
-
- 
+ */ 
+    axis2_subResponse_t * axis2_skel_Calculator_sub(const axutil_env_t * env,
+                                                    
axis2_sub_t * sub) 
+{
+    
axis2_subResponse_t * sub_res = NULL;
+    

int ret_val = 0;
+    

int val1 = 0;
+    
int val2 = 0;
+    

val1 = axis2_sub_get_arg_0_1(sub, env);
+    
val2 = axis2_sub_get_arg_1_1(sub, env);
+    

ret_val = val1 - val2;
+    

sub_res = axis2_subResponse_create(env);
+    
axis2_subResponse_set_subReturn(sub_res, env, ret_val);
+    

return sub_res;
+
}
+
+


+
 /**
  * auto generated function definition signature
  * for "mul|" operation.
  
  * @param mul
- */
-axis2_mulResponse_t* axis2_skel_Calculator_mul (const axutil_env_t *env  ,
-                                      axis2_mul_t* mul )
-{
-    axis2_mulResponse_t *mul_res = NULL;
-
-    int ret_val = 0;
-
-    int val1 = 0;
-    int val2 = 0;
-
-    val1 = axis2_mul_get_arg_0_2(mul, env);
-    val2 = axis2_mul_get_arg_1_2(mul, env);
-
-    ret_val = val1*val2;
-
-    mul_res = axis2_mulResponse_create(env);
-    axis2_mulResponse_set_mulReturn(mul_res, env, ret_val);
-
-    return mul_res;
+ */ 
+    axis2_mulResponse_t * axis2_skel_Calculator_mul(const axutil_env_t * env,
+                                                    
axis2_mul_t * mul) 
+{
+    
axis2_mulResponse_t * mul_res = NULL;
+    

int ret_val = 0;
+    

int val1 = 0;
+    
int val2 = 0;
+    

val1 = axis2_mul_get_arg_0_2(mul, env);
+    
val2 = axis2_mul_get_arg_1_2(mul, env);
+    

ret_val = val1 * val2;
+    

mul_res = axis2_mulResponse_create(env);
+    
axis2_mulResponse_set_mulReturn(mul_res, env, ret_val);
+    

return mul_res;
+

}
+
 
-}

Modified: webservices/axis2/trunk/c/samples/codegen/databinding/StockQuoteService/client/stock_quote_client.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/codegen/databinding/StockQuoteService/client/stock_quote_client.c?rev=580289&r1=580288&r2=580289&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/codegen/databinding/StockQuoteService/client/stock_quote_client.c (original)
+++ webservices/axis2/trunk/c/samples/codegen/databinding/StockQuoteService/client/stock_quote_client.c Fri Sep 28 03:29:16 2007
@@ -1,3 +1,4 @@
+
 /*
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed
@@ -17,124 +18,104 @@
  * implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */
-
+ */  
+    
 #include "axis2_stub_StockQuoteService.h"
 #include <stdio.h>
-
-void
-handle_response(axis2_getStockQuoteResponse_t *res, axutil_env_t *env);
-
-int
-main(int argc, char *argv[])
-{
-	axutil_env_t *env = NULL;
-	axis2_char_t *client_home = NULL;
-	axis2_char_t *endpoint_uri = NULL;
-	axis2_stub_t *stub = NULL;
-	axis2_char_t *symbol = NULL;
-
-	axis2_getStockQuote_t *req = NULL;
-
-	axis2_getStockQuoteResponse_t *res = NULL;
-    
-	if(argc > 1)
-	{
-		symbol = argv[1];		
-	}
-	else
-	{
-		printf("\nEnter Symbol Name!");
-		return -1;
-	}
-
-	endpoint_uri = "http://localhost:9090/axis2/services/StockQuoteService";
-	env = axutil_env_create_all("codegen_sample_stock_quote.log", AXIS2_LOG_LEVEL_TRACE);
-	/* Set up deploy folder.*/
-	client_home = AXIS2_GETENV("AXIS2C_HOME");
-	if (!client_home)
-		client_home = "../../../deploy";
-	
-	stub = axis2_stub_StockQuoteService_create(env, client_home, endpoint_uri);
-
-	/* Create the struct */
-	req = axis2_getStockQuote_create(env);
-	AXIS2_GETSTOCKQUOTE_SET_SYMBOL(req, env, symbol);
-
-	res = axis2_stub_StockQuoteService_getStockQuote(stub, env, req);
-    
-	if(!res)
-	{
-		printf("Error: response NULL!\n");
-		return -1;
-    }
-	
-	handle_response(res, env); /*Handle Response */
-
-	return 0;
-}
-
-void
-handle_response(axis2_getStockQuoteResponse_t *res, axutil_env_t *env)
-{
-	
-	axis2_quote_t *quote = NULL;
-
-	axis2_changeType_t *change = NULL;
-	axis2_lastTradeType_t *last_trade = NULL;
-	
-	/*Attributes of Quote*/
-	axis2_char_t *symbol_res = NULL;
-	int volume = 0;
-	
-	/*Attributes of Last Trade */
-	float price = 0;
-	long date = 0;
-
-	/*Attributes of Change*/
-	float dollar = 0;
-	float precent = 0;
-		
-	quote = AXIS2_GETSTOCKQUOTERESPONSE_GET_RETURNQUOTE(res, env);
+
void 
handle_response(
+    axis2_getStockQuoteResponse_t * res,
+    axutil_env_t * env);
+

int 
+main(
+    int argc,
+    char *argv[]) 
+{
+    
axutil_env_t * env = NULL;
+    
axis2_char_t * client_home = NULL;
+    
axis2_char_t * endpoint_uri = NULL;
+    
axis2_stub_t * stub = NULL;
+    
axis2_char_t * symbol = NULL;
+    

axis2_getStockQuote_t * req = NULL;
+    

axis2_getStockQuoteResponse_t * res = NULL;
+    

if (argc > 1)
+        
+    {
+        
symbol = argv[1];
+    
}
     
-    if(!quote)
-    {
-        printf("Error: Quote response NULL!\n");
-        return;
-    }
+    else
+        
+    {
+        
printf("\nEnter Symbol Name!");
+        
return -1;
+    
}
+    

endpoint_uri = "http://localhost:9090/axis2/services/StockQuoteService";
+    
env =
+        axutil_env_create_all("codegen_sample_stock_quote.log",
+                              AXIS2_LOG_LEVEL_TRACE);
     
-	last_trade = AXIS2_QUOTE_GET_LASTTRADE(quote, env);
-	change = AXIS2_QUOTE_GET_CHANGE(quote, env);
-	symbol_res = AXIS2_QUOTE_GET_SYMBOL(quote, env);
-	volume = AXIS2_QUOTE_GET_VOLUME(quote, env);
-
-	price = AXIS2_LASTTRADETYPE_GET_PRICE(last_trade, env);
-	date = AXIS2_LASTTRADETYPE_GET_DATE(last_trade, env);
-
-	dollar = AXIS2_CHANGETYPE_GET_DOLLAR(change, env);
-	precent = AXIS2_CHANGETYPE_GET_PERCENT(change, env);
-	
-	printf("\nSTOCK QUOTERESPONSE\n");
-	printf("\tSYMBOL\t\t: %s\n", symbol_res);
-	printf("\tVOLUME\t\t: %d\n", volume);
-	printf("\tPRICE\t\t: %f\n", price);
-	printf("\tDATE\t\t: %l\n", date);
-	printf("\tDOLLAR\t\t: %f\n", dollar);
-	printf("\tPRECENT\t\t: %f\n", precent);
-	
-}	
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+        /* Set up deploy folder. */ 
+        client_home = AXIS2_GETENV("AXIS2C_HOME");
+    
if (!client_home)
+        
client_home = "../../../deploy";
+    

stub =
+        axis2_stub_StockQuoteService_create(env, client_home, endpoint_uri);
+    
+        /* Create the struct */ 
+        req = axis2_getStockQuote_create(env);
+    
AXIS2_GETSTOCKQUOTE_SET_SYMBOL(req, env, symbol);
+    

res = axis2_stub_StockQuoteService_getStockQuote(stub, env, req);
+    

if (!res)
+        
+    {
+        
printf("Error: response NULL!\n");
+        
return -1;
+    
}
+    

handle_response(res, env);    /*Handle Response */
+    

return 0;
+
}
+

void 
+handle_response(
+    axis2_getStockQuoteResponse_t * res,
+    axutil_env_t * env) 
+{
+    

axis2_quote_t * quote = NULL;
+    

axis2_changeType_t * change = NULL;
+    
axis2_lastTradeType_t * last_trade = NULL;
+    
+        /*Attributes of Quote */ 
+        axis2_char_t * symbol_res = NULL;
+    
int volume = 0;
+    
+        /*Attributes of Last Trade */ 
+    float price = 0;
+    
long date = 0;
+    
+        /*Attributes of Change */ 
+    float dollar = 0;
+    
float precent = 0;
+    

quote = AXIS2_GETSTOCKQUOTERESPONSE_GET_RETURNQUOTE(res, env);
+    

if (!quote)
+        
+    {
+        
printf("Error: Quote response NULL!\n");
+        
return;
+    
}
+    

last_trade = AXIS2_QUOTE_GET_LASTTRADE(quote, env);
+    
change = AXIS2_QUOTE_GET_CHANGE(quote, env);
+    
symbol_res = AXIS2_QUOTE_GET_SYMBOL(quote, env);
+    
volume = AXIS2_QUOTE_GET_VOLUME(quote, env);
+    

price = AXIS2_LASTTRADETYPE_GET_PRICE(last_trade, env);
+    
date = AXIS2_LASTTRADETYPE_GET_DATE(last_trade, env);
+    

dollar = AXIS2_CHANGETYPE_GET_DOLLAR(change, env);
+    
precent = AXIS2_CHANGETYPE_GET_PERCENT(change, env);
+    

printf("\nSTOCK QUOTERESPONSE\n");
+    
printf("\tSYMBOL\t\t: %s\n", symbol_res);
+    
printf("\tVOLUME\t\t: %d\n", volume);
+    
printf("\tPRICE\t\t: %f\n", price);
+    
printf("\tDATE\t\t: %l\n", date);
+    
printf("\tDOLLAR\t\t: %f\n", dollar);
+    
printf("\tPRECENT\t\t: %f\n", precent);
+

}
+
+















Modified: webservices/axis2/trunk/c/samples/codegen/databinding/StockQuoteService/server/axis2_skel_StockQuoteService.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/codegen/databinding/StockQuoteService/server/axis2_skel_StockQuoteService.c?rev=580289&r1=580288&r2=580289&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/codegen/databinding/StockQuoteService/server/axis2_skel_StockQuoteService.c (original)
+++ webservices/axis2/trunk/c/samples/codegen/databinding/StockQuoteService/server/axis2_skel_StockQuoteService.c Fri Sep 28 03:29:16 2007
@@ -1,3 +1,4 @@
+
 /*
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
@@ -13,81 +14,62 @@
  * 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.
- */
-
+ */  
+    
+
 /**
  * axis2_skel_StockQuoteService.c
  *
  * This file was auto-generated from WSDL for "StockQuoteService|http://w3.ibm.com/schemas/services/2002/11/15/stockquote/wsdl" service
  * by the Apache Axis2/C version: #axisVersion# #today#
  * axis2_skel_StockQuoteService Axis2/C skeleton for the axisService
- */
-
+ */ 
+    
 #include "axis2_skel_StockQuoteService.h"
-
+    
+
 /**
  * auto generated function definition signature
  * for "getStockQuote|" operation.
          
  * @param getStockQuote
- */
-axis2_getStockQuoteResponse_t* axis2_skel_StockQuoteService_getStockQuote (const axutil_env_t *env, 
-																		   axis2_getStockQuote_t* getStockQuote )
-{
-	/* TODO fill this with the necessary business logic */
-	axis2_char_t *symbol_in = NULL;
-
-	axis2_getStockQuoteResponse_t *response = NULL;
-	axis2_quote_t *res_quote = NULL;
-	axis2_changeType_t *res_change = NULL;
-	axis2_lastTradeType_t *res_last_trade = NULL;
-	
-	symbol_in = AXIS2_GETSTOCKQUOTE_GET_SYMBOL(getStockQuote, env);
-	if(!symbol_in)
-	{
-		AXIS2_ERROR_SET(env->error, AXIS2_ERROR_SVC_SKEL_INPUT_OM_NODE_NULL, AXIS2_FAILURE);
-        printf("StockQuoteService client request ERROR: input parameter NULL\n");
-        return NULL;
-	}
-	
-	res_quote = axis2_quote_create(env);
-	AXIS2_QUOTE_SET_SYMBOL(res_quote, env, symbol_in);
-	AXIS2_QUOTE_SET_VOLUME(res_quote, env, 1000);
-
-	res_change = axis2_changeType_create(env);
-	AXIS2_CHANGETYPE_SET_PERCENT(res_change, env, 10);
-	AXIS2_CHANGETYPE_SET_DOLLAR(res_change, env, 98);
-	
-	AXIS2_QUOTE_SET_CHANGE(res_quote, env, res_change);
-
-	res_last_trade = axis2_lastTradeType_create(env);
-	AXIS2_LASTTRADETYPE_SET_PRICE(res_last_trade, env, 23);
-	AXIS2_LASTTRADETYPE_SET_DATE(res_last_trade, env, 1165997291);
-	
-	AXIS2_QUOTE_SET_LASTTRADE(res_quote, env, res_last_trade);
-
-	response = axis2_getStockQuoteResponse_create(env);
-	AXIS2_GETSTOCKQUOTERESPONSE_SET_RETURNQUOTE(response, env, res_quote);
-
-	return response;
-}
-     
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ */ 
+    axis2_getStockQuoteResponse_t *
+axis2_skel_StockQuoteService_getStockQuote(const axutil_env_t * env,
+                                           
axis2_getStockQuote_t *
+                                           getStockQuote) 
+{
+    
+        /* TODO fill this with the necessary business logic */ 
+        axis2_char_t * symbol_in = NULL;
+    

axis2_getStockQuoteResponse_t * response = NULL;
+    
axis2_quote_t * res_quote = NULL;
+    
axis2_changeType_t * res_change = NULL;
+    
axis2_lastTradeType_t * res_last_trade = NULL;
+    

symbol_in = AXIS2_GETSTOCKQUOTE_GET_SYMBOL(getStockQuote, env);
+    
if (!symbol_in)
+        
+    {
+        
AXIS2_ERROR_SET(env->error, AXIS2_ERROR_SVC_SKEL_INPUT_OM_NODE_NULL,
+                         AXIS2_FAILURE);
+        
printf
+            ("StockQuoteService client request ERROR: input parameter NULL\n");
+        
return NULL;
+    
}
+    

res_quote = axis2_quote_create(env);
+    
AXIS2_QUOTE_SET_SYMBOL(res_quote, env, symbol_in);
+    
AXIS2_QUOTE_SET_VOLUME(res_quote, env, 1000);
+    

res_change = axis2_changeType_create(env);
+    
AXIS2_CHANGETYPE_SET_PERCENT(res_change, env, 10);
+    
AXIS2_CHANGETYPE_SET_DOLLAR(res_change, env, 98);
+    

AXIS2_QUOTE_SET_CHANGE(res_quote, env, res_change);
+    

res_last_trade = axis2_lastTradeType_create(env);
+    
AXIS2_LASTTRADETYPE_SET_PRICE(res_last_trade, env, 23);
+    
AXIS2_LASTTRADETYPE_SET_DATE(res_last_trade, env, 1165997291);
+    

AXIS2_QUOTE_SET_LASTTRADE(res_quote, env, res_last_trade);
+    

response = axis2_getStockQuoteResponse_create(env);
+    
AXIS2_GETSTOCKQUOTERESPONSE_SET_RETURNQUOTE(response, env, res_quote);
+    

return response;
+
}
+
+




















Modified: webservices/axis2/trunk/c/samples/codegen/server/calc_xml_inout/axis2_Calculator.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/codegen/server/calc_xml_inout/axis2_Calculator.c?rev=580289&r1=580288&r2=580289&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/codegen/server/calc_xml_inout/axis2_Calculator.c (original)
+++ webservices/axis2/trunk/c/samples/codegen/server/calc_xml_inout/axis2_Calculator.c Fri Sep 28 03:29:16 2007
@@ -1,3 +1,4 @@
+
 /*
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
@@ -25,9 +26,6 @@
 
 #include "axis2_Calculator.h"
 
-
-
-
 /**
  * Auto generated function definition
 
@@ -35,18 +33,20 @@
 
 */
 axiom_node_t *
-axis2_Calculator_add(const axutil_env_t * env, axiom_node_t* param0)
+axis2_Calculator_add(
+    const axutil_env_t * env,
+    axiom_node_t * param0)
 {
     /* Todo fill this with the necessary business logic */
-    axiom_node_t* req = param0;
-    axiom_node_t* node = NULL;
-    axiom_element_t* ele = NULL;
-    axis2_char_t* text =  NULL;
+    axiom_node_t *req = param0;
+    axiom_node_t *node = NULL;
+    axiom_element_t *ele = NULL;
+    axis2_char_t *text = NULL;
 
     axiom_node_t *op_node = NULL;
-    axiom_element_t* op_ele = NULL;
-    axiom_node_t* value_node = NULL;
-    axiom_element_t * value_ele = NULL;
+    axiom_element_t *op_ele = NULL;
+    axiom_node_t *value_node = NULL;
+    axiom_element_t *value_ele = NULL;
     axiom_namespace_t *ns1 = NULL;
     axis2_char_t *om_str = NULL;
 
@@ -54,8 +54,9 @@
 
     int result = 0;
 
-    int value1, value2;
-    if (! req)
+    int value1,
+     value2;
+    if (!req)
     {
         printf("response null\n");
         return NULL;
@@ -76,20 +77,18 @@
 
     result = value1 + value2;
 
-
-    ns1 = axiom_namespace_create(env, "http://localhost/axis/Calculator", "ns1");
+    ns1 =
+        axiom_namespace_create(env, "http://localhost/axis/Calculator", "ns1");
     op_ele = axiom_element_create(env, NULL, "addResponse", ns1, &op_node);
 
     value_ele = axiom_element_create(env, op_node, "in1", NULL, &value_node);
     sprintf(value_str, "%d", result);
-    axiom_element_set_text(value_ele, env, value_str , value_node);
+    axiom_element_set_text(value_ele, env, value_str, value_node);
 
     return op_node;
 
 }
 
-
-
 /**
  * Auto generated function definition
 
@@ -97,14 +96,14 @@
 
 */
 axiom_node_t *
-axis2_Calculator_div(const axutil_env_t * env, axiom_node_t* param2)
+axis2_Calculator_div(
+    const axutil_env_t * env,
+    axiom_node_t * param2)
 {
     /* Todo fill this with the necessary business logic */
     return NULL;
 }
 
-
-
 /**
  * Auto generated function definition
 
@@ -112,14 +111,14 @@
 
 */
 axiom_node_t *
-axis2_Calculator_sub(const axutil_env_t * env, axiom_node_t* param4)
+axis2_Calculator_sub(
+    const axutil_env_t * env,
+    axiom_node_t * param4)
 {
     /* Todo fill this with the necessary business logic */
     return NULL;
 }
 
-
-
 /**
  * Auto generated function definition
 
@@ -127,7 +126,9 @@
 
 */
 axiom_node_t *
-axis2_Calculator_mul(const axutil_env_t * env, axiom_node_t* param6)
+axis2_Calculator_mul(
+    const axutil_env_t * env,
+    axiom_node_t * param6)
 {
     /* Todo fill this with the necessary business logic */
     return NULL;

Modified: 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=580289&r1=580288&r2=580289&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/codegen/server/calculator/axis2_Calculator.c (original)
+++ webservices/axis2/trunk/c/samples/codegen/server/calculator/axis2_Calculator.c Fri Sep 28 03:29:16 2007
@@ -1,3 +1,4 @@
+
 /*
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
@@ -15,7 +16,6 @@
  * limitations under the License.
  */
 
-
 /**
  * axis2_Calculator.c
  *
@@ -26,30 +26,28 @@
 
 #include "axis2_Calculator.h"
 
-
-
-
 /**
  * Auto generated function definition
 
   * @param param0
 
  */
-axis2_addResponse20_t*axis2_Calculator_add(const axutil_env_t* env  , axis2_add_t* param0)
-
+axis2_addResponse20_t *
+axis2_Calculator_add(
+    const axutil_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;
+    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);
@@ -66,35 +64,33 @@
     return add_res;
 }
 
-
-
 /**
  * Auto generated function definition
 
   * @param param2
 
  */
-axis2_divResponse16_t*axis2_Calculator_div(const axutil_env_t* env  , axis2_div_t* param2)
-
+axis2_divResponse16_t *
+axis2_Calculator_div(
+    const axutil_env_t * env,
+    axis2_div_t * param2)
 {
     /* Todo fill this with the necessary business logic */
-    axis2_divResponse_t* div_out = NULL;
-    axis2_div_t* div_in = param2;
-    axis2_divRequest_t* div_req = NULL;
-    axis2_divResponse16_t* div_res = NULL;
+    axis2_divResponse_t *div_out = NULL;
+    axis2_div_t *div_in = param2;
+    axis2_divRequest_t *div_req = NULL;
+    axis2_divResponse16_t *div_res = NULL;
 
     int ret_val = 0;
 
     int val1 = 0;
     int val2 = 0;
 
-
     div_req = AXIS2_DIV_GET_DIV(div_in, env);
 
     val1 = AXIS2_DIVREQUEST_GET_IN0(div_req, env);
     val2 = AXIS2_DIVREQUEST_GET_IN1(div_req, env);
 
-
     ret_val = val1 / val2;
 
     div_out = axis2_divResponse_create(env);
@@ -106,35 +102,33 @@
     return div_res;
 }
 
-
-
 /**
  * Auto generated function definition
 
   * @param param4
 
  */
-axis2_subResponse12_t*axis2_Calculator_sub(const axutil_env_t* env  , axis2_sub_t* param4)
-
+axis2_subResponse12_t *
+axis2_Calculator_sub(
+    const axutil_env_t * env,
+    axis2_sub_t * param4)
 {
     /* Todo fill this with the necessary business logic */
-    axis2_subResponse_t* sub_out = NULL;
-    axis2_sub_t* sub_in = param4;
-    axis2_subRequest_t* sub_req = NULL;
-    axis2_subResponse12_t* sub_res = NULL;
+    axis2_subResponse_t *sub_out = NULL;
+    axis2_sub_t *sub_in = param4;
+    axis2_subRequest_t *sub_req = NULL;
+    axis2_subResponse12_t *sub_res = NULL;
 
     int ret_val = 0;
 
     int val1 = 0;
     int val2 = 0;
 
-
     sub_req = AXIS2_SUB_GET_SUB(sub_in, env);
 
     val1 = AXIS2_SUBREQUEST_GET_IN0(sub_req, env);
     val2 = AXIS2_SUBREQUEST_GET_IN1(sub_req, env);
 
-
     ret_val = val1 - val2;
 
     sub_out = axis2_subResponse_create(env);
@@ -146,35 +140,33 @@
     return sub_res;
 }
 
-
-
 /**
  * Auto generated function definition
 
   * @param param6
 
  */
-axis2_mulResponse14_t*axis2_Calculator_mul(const axutil_env_t* env  , axis2_mul_t* param6)
-
+axis2_mulResponse14_t *
+axis2_Calculator_mul(
+    const axutil_env_t * env,
+    axis2_mul_t * param6)
 {
     /* Todo fill this with the necessary business logic */
-    axis2_mulResponse_t* mul_out = NULL;
-    axis2_mul_t* mul_in = param6;
-    axis2_mulRequest_t* mul_req = NULL;
-    axis2_mulResponse14_t* mul_res = NULL;
+    axis2_mulResponse_t *mul_out = NULL;
+    axis2_mul_t *mul_in = param6;
+    axis2_mulRequest_t *mul_req = NULL;
+    axis2_mulResponse14_t *mul_res = NULL;
 
     int ret_val = 0;
 
     int val1 = 0;
     int val2 = 0;
 
-
     mul_req = AXIS2_MUL_GET_MUL(mul_in, env);
 
     val1 = AXIS2_MULREQUEST_GET_IN0(mul_req, env);
     val2 = AXIS2_MULREQUEST_GET_IN1(mul_req, env);
 
-
     ret_val = val1 * val2;
 
     mul_out = axis2_mulResponse_create(env);
@@ -185,4 +177,3 @@
 
     return mul_res;
 }
-

Modified: 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=580289&r1=580288&r2=580289&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/codegen/server/interop_doc1/axis2_InteropTestPortTypeDocService.c (original)
+++ webservices/axis2/trunk/c/samples/codegen/server/interop_doc1/axis2_InteropTestPortTypeDocService.c Fri Sep 28 03:29:16 2007
@@ -1,3 +1,4 @@
+
 /*
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
@@ -25,217 +26,216 @@
 
 #include "axis2_InteropTestPortTypeDocService.h"
 
-
-
-
 /**
  * Auto generated function definition
 
   * @param param0
 
  */
-axis2_echoFloatResponse_t*axis2_InteropTestPortTypeDocService_echoFloat(const axutil_env_t* env  , axis2_echoFloat_t* param0)
-
+axis2_echoFloatResponse_t *
+axis2_InteropTestPortTypeDocService_echoFloat(
+    const axutil_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 axutil_env_t* env  , axis2_echoVoid_t* param2)
-
+axis2_echoVoidResponse_t *
+axis2_InteropTestPortTypeDocService_echoVoid(
+    const axutil_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 axutil_env_t* env  , axis2_echoDate_t* param4)
-
+axis2_echoDateResponse_t *
+axis2_InteropTestPortTypeDocService_echoDate(
+    const axutil_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_echoDate_t *echo_in = param4;
+    axis2_echoDateResponse_t *echo_out = NULL;
 
-    axutil_date_time_t* echo_date = NULL;
-    axis2_char_t* recieved_date_str  = NULL;
+    axutil_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 =  axutil_date_time_seriasize_date_time(echo_date, env);
+    recieved_date_str = axutil_date_time_seriasize_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);
+    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 axutil_env_t* env  , axis2_echoDecimal_t* param6)
-
+axis2_echoDecimalResponse_t *
+axis2_InteropTestPortTypeDocService_echoDecimal(
+    const axutil_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 axutil_env_t* env  , axis2_echoString_t* param8)
-
+axis2_echoStringResponse_t *
+axis2_InteropTestPortTypeDocService_echoString(
+    const axutil_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 axutil_env_t* env  , axis2_echoBase64_t* param10)
-
+axis2_echoBase64Response_t *
+axis2_InteropTestPortTypeDocService_echoBase64(
+    const axutil_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 axutil_env_t* env  , axis2_echoFloatArray_t* param12)
-
+axis2_echoFloatArrayResponse_t *
+axis2_InteropTestPortTypeDocService_echoFloatArray(
+    const axutil_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 axutil_env_t* env  , axis2_echoIntegerArray_t* param14)
-
+axis2_echoIntegerArrayResponse_t *
+axis2_InteropTestPortTypeDocService_echoIntegerArray(
+    const axutil_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 axutil_env_t* env  , axis2_echoHexBinary_t* param16)
-
+axis2_echoHexBinaryResponse_t *
+axis2_InteropTestPortTypeDocService_echoHexBinary(
+    const axutil_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 axutil_env_t* env  , axis2_echoInteger_t* param18)
-
+axis2_echoIntegerResponse_t *
+axis2_InteropTestPortTypeDocService_echoInteger(
+    const axutil_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 axutil_env_t* env  , axis2_echoBoolean_t* param20)
-
+axis2_echoBooleanResponse_t *
+axis2_InteropTestPortTypeDocService_echoBoolean(
+    const axutil_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 axutil_env_t* env  , axis2_echoStringArray_t* param22)
-
+axis2_echoStringArrayResponse_t *
+axis2_InteropTestPortTypeDocService_echoStringArray(
+    const axutil_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 axutil_env_t* env  , axis2_echoStructArray_t* param24)
-
+axis2_echoStructArrayResponse_t *
+axis2_InteropTestPortTypeDocService_echoStructArray(
+    const axutil_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_echoStructArray_t *echo_in = param24;
+    axis2_echoStructArrayResponse_t *echo_out = NULL;
 
-    axis2_SOAPStruct_t** echo_struct_arr = NULL;
+    axis2_SOAPStruct_t **echo_struct_arr = NULL;
     int arr_size = 0;
 
     int i = 0;
@@ -243,33 +243,32 @@
     echo_struct_arr =
         AXIS2_ECHOSTRUCTARRAY_GET_ARG_0_7(echo_in, env, &arr_size);
 
-    for (i = 0;  i < arr_size ; i ++)
+    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));
+               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);
+        (echo_out, env, echo_struct_arr, arr_size);
     return echo_out;
 
 }
 
-
-
 /**
  * Auto generated function definition
 
   * @param param26
 
  */
-axis2_echoStructResponse_t*axis2_InteropTestPortTypeDocService_echoStruct(const axutil_env_t* env  , axis2_echoStruct_t* param26)
-
+axis2_echoStructResponse_t *
+axis2_InteropTestPortTypeDocService_echoStruct(
+    const axutil_env_t * env,
+    axis2_echoStruct_t * param26)
 {
     /* Todo fill this with the necessary business logic */
     return NULL;
 }
-



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