You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by la...@apache.org on 2008/04/02 11:39:27 UTC

svn commit: r643816 - /webservices/axis2/trunk/c/axiom/src/soap/soap_envelope.c

Author: lahiru
Date: Wed Apr  2 02:39:21 2008
New Revision: 643816

URL: http://svn.apache.org/viewvc?rev=643816&view=rev
Log:
Hackathon:code improvements

Modified:
    webservices/axis2/trunk/c/axiom/src/soap/soap_envelope.c

Modified: webservices/axis2/trunk/c/axiom/src/soap/soap_envelope.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/axiom/src/soap/soap_envelope.c?rev=643816&r1=643815&r2=643816&view=diff
==============================================================================
--- webservices/axis2/trunk/c/axiom/src/soap/soap_envelope.c (original)
+++ webservices/axis2/trunk/c/axiom/src/soap/soap_envelope.c Wed Apr  2 02:39:21 2008
@@ -89,8 +89,9 @@
 
     soap_envelope = axiom_soap_envelope_create_null(env);
     if (!soap_envelope)
+    {
         return NULL;
-
+    }
     status = check_and_set_soap_version(soap_envelope, env, ns);
     if (status == AXIS2_FAILURE)
     {
@@ -250,7 +251,9 @@
         {
             status = axiom_soap_builder_next(soap_envelope->soap_builder, env);
             if (status == AXIS2_FAILURE)
+            {
                 break;
+            }
         }
     }
 
@@ -267,8 +270,9 @@
     axiom_namespace_t *ns = NULL;
 
     if (!soap_envelope->header)
+    {
         return NULL;
-
+    }
     if (namespace_uri)
     {
         ns = axiom_namespace_create(env, namespace_uri, NULL);
@@ -427,7 +431,9 @@
                                        AXIOM_SOAP11_SOAP_ENVELOPE_NAMESPACE_URI,
                                        AXIOM_SOAP_DEFAULT_NAMESPACE_PREFIX);
         if (!om_ns)
+        {
             return NULL;
+        }
         soap_envelope = axiom_soap_envelope_create(env, om_ns);
 
         soap_header = axiom_soap_header_create_with_parent(env, soap_envelope);
@@ -442,7 +448,9 @@
                                        AXIOM_SOAP12_SOAP_ENVELOPE_NAMESPACE_URI,
                                        AXIOM_SOAP_DEFAULT_NAMESPACE_PREFIX);
         if (!om_ns)
+        {
             return NULL;
+        }
         soap_envelope = axiom_soap_envelope_create(env, om_ns);
 
         soap_header = axiom_soap_header_create_with_parent(env, soap_envelope);
@@ -540,14 +548,18 @@
 {
     axis2_char_t *uri = NULL;
     if (!soap_envelope)
+    {
         return AXIS2_FAILURE;
+    }
     if (!ns)
+    {
         return AXIS2_FAILURE;
-
+    }
     uri = axiom_namespace_get_uri(ns, env);
     if (!uri)
+    {
         return AXIS2_FAILURE;
-
+    }
     if (axutil_strcmp(uri, AXIOM_SOAP11_SOAP_ENVELOPE_NAMESPACE_URI) == 0)
     {
         soap_envelope->soap_version = AXIOM_SOAP11;
@@ -599,8 +611,9 @@
     env_ns =
         axiom_element_get_namespace(env_ele, env, soap_envelope->om_ele_node);
     if (!env_ns)
+    {
         return AXIS2_FAILURE;
-
+    }
     status = axiom_namespace_set_uri(env_ns, env, ns_uri);
     if (status == AXIS2_SUCCESS)
     {



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