axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dami...@apache.org
Subject svn commit: r424269 - in /webservices/axis2/trunk/c: modules/core/description/client_utils.c samples/client/diclient/calc_client.c
Date Fri, 21 Jul 2006 11:21:50 GMT
Author: damitha
Date: Fri Jul 21 04:21:49 2006
New Revision: 424269

URL: http://svn.apache.org/viewvc?rev=424269&view=rev
Log:
In the process of making diclient work

Modified:
    webservices/axis2/trunk/c/modules/core/description/client_utils.c
    webservices/axis2/trunk/c/samples/client/diclient/calc_client.c

Modified: webservices/axis2/trunk/c/modules/core/description/client_utils.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/description/client_utils.c?rev=424269&r1=424268&r2=424269&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/description/client_utils.c (original)
+++ webservices/axis2/trunk/c/modules/core/description/client_utils.c Fri Jul 21 04:21:49
2006
@@ -152,9 +152,12 @@
             axis2_char_t *address = NULL;
 
             soap_address = WODEN_ENDPOINT_GET_ADDRESS(endpoint, env);
-            address = AXIS2_URI_TO_STRING(soap_address, env, AXIS2_URI_UNP_OMITUSERINFO);
-            endpoint_ref = axis2_endpoint_ref_create(env, address);
-            AXIS2_OPTIONS_SET_TO(options, env, endpoint_ref);
+            if(soap_address)
+            {
+                address = AXIS2_URI_TO_STRING(soap_address, env, AXIS2_URI_UNP_OMITUSERINFO);
+                endpoint_ref = axis2_endpoint_ref_create(env, address);
+                AXIS2_OPTIONS_SET_TO(options, env, endpoint_ref);
+            }
         }
 
         if(endpoint)
@@ -278,9 +281,13 @@
             axis2_char_t *address = NULL;
 
             soap_address = WODEN_WSDL10_ENDPOINT_GET_ADDRESS(endpoint, env);
-            address = AXIS2_URI_TO_STRING(soap_address, env, AXIS2_URI_UNP_OMITUSERINFO);
-            endpoint_ref = axis2_endpoint_ref_create(env, address);
-            AXIS2_OPTIONS_SET_TO(options, env, endpoint_ref);
+            if(soap_address)
+            {
+                address = AXIS2_URI_TO_STRING(soap_address, env, 
+                        AXIS2_URI_UNP_OMITUSERINFO);
+                endpoint_ref = axis2_endpoint_ref_create(env, address);
+                AXIS2_OPTIONS_SET_TO(options, env, endpoint_ref);
+            }
         }
         if(endpoint)
             binding = WODEN_WSDL10_ENDPOINT_GET_BINDING(endpoint, env);

Modified: webservices/axis2/trunk/c/samples/client/diclient/calc_client.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/client/diclient/calc_client.c?rev=424269&r1=424268&r2=424269&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/client/diclient/calc_client.c (original)
+++ webservices/axis2/trunk/c/samples/client/diclient/calc_client.c Fri Jul 21 04:21:49 2006
@@ -75,6 +75,12 @@
     svc_client = 
         axis2_svc_client_create_with_conf_ctx_and_wsdl_uri_wsdl_svc_name_and_endpoint(
                 env, NULL, wsdl_uri, wsdl_svc_qname, "Calculator", client_home);
+    if(!svc_client)
+    {
+		printf("Service client is NULL \n");
+        AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI, "Service client is NULL");
+        return 1;
+    }
     payload = build_om_programatically(env);
     op_qname = axis2_qname_create(env, "add", "http://localhost/axis/Calculator", 
             NULL); 



---------------------------------------------------------------------
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