axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject svn commit: r628626 - in /webservices/axis2/trunk/c: axiom/include/axiom_soap_const.h axiom/include/axiom_soap_fault_value.h axiom/src/attachments/mime_parser.c src/core/receivers/raw_xml_in_out_msg_recv.c
Date Mon, 18 Feb 2008 06:30:56 GMT
Author: samisa
Date: Sun Feb 17 22:30:54 2008
New Revision: 628626

URL: http://svn.apache.org/viewvc?rev=628626&view=rev
Log:
Fixed mime parser break and also the problem with using env in place of soapenv for namespace
prefix

Modified:
    webservices/axis2/trunk/c/axiom/include/axiom_soap_const.h
    webservices/axis2/trunk/c/axiom/include/axiom_soap_fault_value.h
    webservices/axis2/trunk/c/axiom/src/attachments/mime_parser.c
    webservices/axis2/trunk/c/src/core/receivers/raw_xml_in_out_msg_recv.c

Modified: webservices/axis2/trunk/c/axiom/include/axiom_soap_const.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/axiom/include/axiom_soap_const.h?rev=628626&r1=628625&r2=628626&view=diff
==============================================================================
--- webservices/axis2/trunk/c/axiom/include/axiom_soap_const.h (original)
+++ webservices/axis2/trunk/c/axiom/include/axiom_soap_const.h Sun Feb 17 22:30:54 2008
@@ -151,9 +151,9 @@
 
 #define AXIOM_SOAP_FAULT_DETAIL_EXCEPTION_ENTRY "Exception"
 
-#define AXIOM_SOAP_FAULT_CODE_VERSION_MISMATCH "env:VersionMismatch"
+#define AXIOM_SOAP_FAULT_CODE_VERSION_MISMATCH "soapenv:VersionMismatch"
 
-#define AXIOM_SOAP_FAULT_CODE_MUST_UNDERSTAND "env:MustUnderstand"
+#define AXIOM_SOAP_FAULT_CODE_MUST_UNDERSTAND "soapenv:MustUnderstand"
 
 #define AXIOM_SOAP_FAULT_CODE_DATA_ENCODING_UNKNOWN "env:DataEncodingUnknown"
 

Modified: webservices/axis2/trunk/c/axiom/include/axiom_soap_fault_value.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/axiom/include/axiom_soap_fault_value.h?rev=628626&r1=628625&r2=628626&view=diff
==============================================================================
--- webservices/axis2/trunk/c/axiom/include/axiom_soap_fault_value.h (original)
+++ webservices/axis2/trunk/c/axiom/include/axiom_soap_fault_value.h Sun Feb 17 22:30:54 2008
@@ -70,7 +70,7 @@
         const axutil_env_t * env);
 
     /**
-      * Get the text value of the env:Value element directly under env:Code element
+      * Get the text value of the soapenv:Value element directly under soapenv:Code element
       * @param fault_value pointer to axiom_soap_fault_t
       * @param env Environment. MUST NOT BE NULL
       * @return text value 
@@ -81,7 +81,7 @@
         const axutil_env_t * env);
 
     /**
-      * Set the text value of the env:Value element directly under env:Code element
+      * Set the text value of the soapenv:Value element directly under soapenv:Code element
       * @param fault_value pointer to axiom_soap_fault_t
       * @param env Environment. MUST NOT BE NULL
       * @param text value to be set

Modified: webservices/axis2/trunk/c/axiom/src/attachments/mime_parser.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/axiom/src/attachments/mime_parser.c?rev=628626&r1=628625&r2=628626&view=diff
==============================================================================
--- webservices/axis2/trunk/c/axiom/src/attachments/mime_parser.c (original)
+++ webservices/axis2/trunk/c/axiom/src/attachments/mime_parser.c Sun Feb 17 22:30:54 2008
@@ -241,8 +241,9 @@
         axis2_char_t *temp_body_mime = NULL;
         axis2_char_t *old_pos = NULL;
         axis2_char_t *temp_mime_binary = NULL;
-        pos = NULL;
         axis2_char_t *temp_pos = NULL;
+
+        pos = NULL;
 
         /* keep trac of counter to ensure that we do not go in an infinite loop
            It is possible that we could fall into an infinite loop if there 

Modified: webservices/axis2/trunk/c/src/core/receivers/raw_xml_in_out_msg_recv.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/receivers/raw_xml_in_out_msg_recv.c?rev=628626&r1=628625&r2=628626&view=diff
==============================================================================
--- webservices/axis2/trunk/c/src/core/receivers/raw_xml_in_out_msg_recv.c (original)
+++ webservices/axis2/trunk/c/src/core/receivers/raw_xml_in_out_msg_recv.c Sun Feb 17 22:30:54
2008
@@ -308,7 +308,18 @@
 
         if (!skel_invoked)
         {
-            fault_value_str = "env:Receiver";
+			if (axis2_msg_ctx_get_is_soap_11(msg_ctx, env))
+            {
+                fault_value_str =
+                    AXIOM_SOAP_DEFAULT_NAMESPACE_PREFIX ":"
+                    AXIOM_SOAP11_FAULT_CODE_RECEIVER;
+            }
+            else
+            {
+                fault_value_str =
+                    AXIOM_SOAP_DEFAULT_NAMESPACE_PREFIX ":"
+                    AXIOM_SOAP12_SOAP_FAULT_VALUE_RECEIVER;
+            }
         }
 
         err_msg = AXIS2_ERROR_GET_MESSAGE(env->error);



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


Mime
View raw message