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 2006/11/13 00:34:18 UTC

svn commit: r474090 - in /webservices/axis2/trunk/c/modules/core/engine: addr_disp.c req_uri_disp.c soap_action_disp.c soap_body_disp.c

Author: samisa
Date: Sun Nov 12 15:34:16 2006
New Revision: 474090

URL: http://svn.apache.org/viewvc?view=rev&rev=474090
Log:
Removed hardcoded values with constants

Modified:
    webservices/axis2/trunk/c/modules/core/engine/addr_disp.c
    webservices/axis2/trunk/c/modules/core/engine/req_uri_disp.c
    webservices/axis2/trunk/c/modules/core/engine/soap_action_disp.c
    webservices/axis2/trunk/c/modules/core/engine/soap_body_disp.c

Modified: webservices/axis2/trunk/c/modules/core/engine/addr_disp.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/engine/addr_disp.c?view=diff&rev=474090&r1=474089&r2=474090
==============================================================================
--- webservices/axis2/trunk/c/modules/core/engine/addr_disp.c (original)
+++ webservices/axis2/trunk/c/modules/core/engine/addr_disp.c Sun Nov 12 15:34:16 2006
@@ -56,11 +56,17 @@
     qname = axis2_qname_create(env, AXIS2_ADDR_DISP_NAME,
             AXIS2_DISP_NAMESPACE,
             NULL);
+    if (!qname)
+    {
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        return NULL;
+    }
 
     disp = axis2_disp_create(env, qname);
     if (!disp)
     {
         AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        AXIS2_QNAME_FREE(qname, env);
         return NULL;
     }
 
@@ -68,6 +74,7 @@
     if (!handler)
     {
         AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_HANDLER_STATE, AXIS2_FAILURE);
+        AXIS2_QNAME_FREE(qname, env);
         return NULL;
     }
 

Modified: webservices/axis2/trunk/c/modules/core/engine/req_uri_disp.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/engine/req_uri_disp.c?view=diff&rev=474090&r1=474089&r2=474090
==============================================================================
--- webservices/axis2/trunk/c/modules/core/engine/req_uri_disp.c (original)
+++ webservices/axis2/trunk/c/modules/core/engine/req_uri_disp.c Sun Nov 12 15:34:16 2006
@@ -24,6 +24,8 @@
 #include <axis2_addr.h>
 #include <axis2_utils.h>
 
+#define AXIS2_REQ_URI_DISP_NAME "request_uri_based_dispatcher"
+
 axis2_status_t AXIS2_CALL
 axis2_req_uri_disp_invoke(
     axis2_handler_t * handler,
@@ -52,8 +54,8 @@
 
     AXIS2_ENV_CHECK(env, NULL);
 
-    qname = axis2_qname_create(env, "request_uri_based_dispatcher",
-            "http://axis.ws.apache.org",
+    qname = axis2_qname_create(env, AXIS2_REQ_URI_DISP_NAME,
+            AXIS2_DISP_NAMESPACE,
             NULL);
 
     disp = axis2_disp_create(env, qname);

Modified: webservices/axis2/trunk/c/modules/core/engine/soap_action_disp.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/engine/soap_action_disp.c?view=diff&rev=474090&r1=474089&r2=474090
==============================================================================
--- webservices/axis2/trunk/c/modules/core/engine/soap_action_disp.c (original)
+++ webservices/axis2/trunk/c/modules/core/engine/soap_action_disp.c Sun Nov 12 15:34:16 2006
@@ -24,6 +24,8 @@
 #include <axis2_addr.h>
 #include <axis2_utils.h>
 
+#define AXIS2_SOAP_ACTION_DISP_NAME "soap_action_based_dispatcher"
+
 axis2_status_t AXIS2_CALL
 axiom_soap_action_disp_invoke(
     axis2_handler_t *handler,
@@ -51,8 +53,8 @@
 
     AXIS2_ENV_CHECK(env, NULL);
 
-    qname = axis2_qname_create(env, "soap_action_based_dispatcher",
-            "http://axis.ws.apache.org",
+    qname = axis2_qname_create(env, AXIS2_SOAP_ACTION_DISP_NAME,
+            AXIS2_DISP_NAMESPACE,
             NULL);
 
     disp = axis2_disp_create(env, qname);

Modified: webservices/axis2/trunk/c/modules/core/engine/soap_body_disp.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/engine/soap_body_disp.c?view=diff&rev=474090&r1=474089&r2=474090
==============================================================================
--- webservices/axis2/trunk/c/modules/core/engine/soap_body_disp.c (original)
+++ webservices/axis2/trunk/c/modules/core/engine/soap_body_disp.c Sun Nov 12 15:34:16 2006
@@ -24,6 +24,8 @@
 #include <axiom_soap_envelope.h>
 #include <axiom_soap_body.h>
 
+#define AXIS2_SOAP_MESSAGE_BODY_DISP_NAME "soap_message_body_based_dispatcher"
+
 axis2_status_t AXIS2_CALL
 axiom_soap_body_disp_invoke(
     axis2_handler_t *handler,
@@ -53,8 +55,8 @@
 
     AXIS2_ENV_CHECK(env, NULL);
 
-    qname = axis2_qname_create(env, "soap_message_body_based_dispatcher",
-            "http://axis.ws.apache.org",
+    qname = axis2_qname_create(env, AXIS2_SOAP_MESSAGE_BODY_DISP_NAME,
+            AXIS2_DISP_NAMESPACE,
             NULL);
 
     disp = axis2_disp_create(env, qname);



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