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 na...@apache.org on 2007/07/24 08:07:23 UTC

svn commit: r558937 - /webservices/axis2/trunk/c/src/core/engine/disp_checker.c

Author: nandika
Date: Mon Jul 23 23:07:23 2007
New Revision: 558937

URL: http://svn.apache.org/viewvc?view=rev&rev=558937
Log:
when soap11 fault should be sent, disp_checker was sending soap12 fault, this bug is fixed

Modified:
    webservices/axis2/trunk/c/src/core/engine/disp_checker.c

Modified: webservices/axis2/trunk/c/src/core/engine/disp_checker.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/engine/disp_checker.c?view=diff&rev=558937&r1=558936&r2=558937
==============================================================================
--- webservices/axis2/trunk/c/src/core/engine/disp_checker.c (original)
+++ webservices/axis2/trunk/c/src/core/engine/disp_checker.c Mon Jul 23 23:07:23 2007
@@ -217,7 +217,7 @@
 		}
 		soap_envelope = axiom_soap_envelope_create_default_soap_envelope (env, soap_version); 
 		soap_body = axiom_soap_envelope_get_body(soap_envelope, env);
-		soap_fault = axiom_soap_fault_create_default_fault (env, soap_body, "Receiver", "Service Not Found", soap_version);
+		soap_fault = axiom_soap_fault_create_default_fault (env, soap_body, AXIOM_SOAP_DEFAULT_NAMESPACE_PREFIX ":Receiver", "Service Not Found", soap_version);
 		 axis2_msg_ctx_set_fault_soap_envelope(msg_ctx, env, soap_envelope);
         return AXIS2_FAILURE;
     }
@@ -226,9 +226,13 @@
     if (!op)
     {
         AXIS2_LOG_INFO(env->log, "Operation Not found. Endpoint reference is : %s", (address) ? address : "NULL");
+        if ( axis2_msg_ctx_get_is_soap_11 (msg_ctx, env))
+        {
+            soap_version = AXIOM_SOAP11;
+        }
 		soap_envelope = axiom_soap_envelope_create_default_soap_envelope (env, soap_version); 
 		soap_body = axiom_soap_envelope_get_body(soap_envelope, env);
-		soap_fault = axiom_soap_fault_create_default_fault (env, soap_body, "Receiver", "Operation Not Found", soap_version);
+		soap_fault = axiom_soap_fault_create_default_fault (env, soap_body, AXIOM_SOAP_DEFAULT_NAMESPACE_PREFIX ":Receiver", "Operation Not Found", soap_version);
 		 axis2_msg_ctx_set_fault_soap_envelope(msg_ctx, env, soap_envelope);
         return AXIS2_FAILURE;
     }



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