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 di...@apache.org on 2007/11/30 15:12:30 UTC

svn commit: r599827 - /webservices/axis2/trunk/c/src/core/clientapi/op_client.c

Author: dinesh
Date: Fri Nov 30 06:12:27 2007
New Revision: 599827

URL: http://svn.apache.org/viewvc?rev=599827&view=rev
Log:
fixed:axis2c-795 thanks Bill and Senaka for the effort

Modified:
    webservices/axis2/trunk/c/src/core/clientapi/op_client.c

Modified: webservices/axis2/trunk/c/src/core/clientapi/op_client.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/clientapi/op_client.c?rev=599827&r1=599826&r2=599827&view=diff
==============================================================================
--- webservices/axis2/trunk/c/src/core/clientapi/op_client.c (original)
+++ webservices/axis2/trunk/c/src/core/clientapi/op_client.c Fri Nov 30 06:12:27 2007
@@ -904,7 +904,7 @@
     if (!transport_out_desc)
     {
         AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
-                        "[axis2c] Cannot infer transport");
+                        "Cannot infer transport");
         AXIS2_ERROR_SET(env->error, AXIS2_ERROR_CANNOT_INFER_TRANSPORT,
                         AXIS2_FAILURE);
     }
@@ -1063,7 +1063,7 @@
     AXIS2_PARAM_CHECK(env->error, url, AXIS2_FAILURE);
     start = url;
     end = url;
-    while (end && (*end) != ':')
+    while ((*end) && (*end) != ':')
         end++;
 
     if ((*end) == ':')
@@ -1081,7 +1081,10 @@
             transport[c - start] = *c;
         transport[c - start] = '\0';
     }
-
+    else
+    {
+        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "URL is malformed or does not contain a transport protocol");
+    }
     return transport;
 }
 



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