axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject svn commit: r369360 - /webservices/axis2/trunk/c/test/xml/soap/test_soap.c
Date Mon, 16 Jan 2006 05:55:07 GMT
Author: samisa
Date: Sun Jan 15 21:55:03 2006
New Revision: 369360

URL: http://svn.apache.org/viewcvs?rev=369360&view=rev
Log:
Adde more error handling logic

Modified:
    webservices/axis2/trunk/c/test/xml/soap/test_soap.c

Modified: webservices/axis2/trunk/c/test/xml/soap/test_soap.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/xml/soap/test_soap.c?rev=369360&r1=369359&r2=369360&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/xml/soap/test_soap.c (original)
+++ webservices/axis2/trunk/c/test/xml/soap/test_soap.c Sun Jan 15 21:55:03 2006
@@ -82,8 +82,16 @@
     printnode(om_node, env);
     
     soap_body = AXIS2_SOAP_ENVELOPE_GET_BODY(soap_envelope, env);
-    om_node = AXIS2_SOAP_HEADER_GET_BASE_NODE(soap_body, env);
-    printnode(om_node, env);
+    if (soap_body)
+    {
+        om_node = AXIS2_SOAP_HEADER_GET_BASE_NODE(soap_body, env);
+        printnode(om_node, env);
+    }
+    else
+    {
+        printf ("\n\n ERROR soap_body NULL.\n\n");
+        return AXIS2_FAILURE;
+    }
     
     
     xml_writer = axis2_xml_writer_create_for_memory(env, NULL, AXIS2_FALSE, AXIS2_FALSE);
@@ -138,8 +146,8 @@
     error = axis2_error_create(allocator);
     
     env = axis2_env_create_with_error_log(allocator, error,  log);
-    /*i = build_soap(&env, filename); */
     build_soap_programatically(&env);
+    build_soap(&env, filename); 
     return 0;        
 }
 



Mime
View raw message