axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jose M Medina V <>
Subject Endpoint Address
Date Wed, 21 Oct 2009 18:25:13 GMT
Hi, I try to get the target endpoint address in a services in Axis2c,  
I put the following code in the invoke function in the skeleton library:

axis2_endpoint_ref_t *endpoint_ref = NULL;
const axis2_char_t *address = NULL;
endpoint_ref = axis2_msg_ctx_get_to(msg_ctx, env);
     AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI, "%s%s if 
     address = axis2_endpoint_ref_get_address(endpoint_ref, env);
     if (address)
       AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI, "%s%s if  

When I run this, I got NULL in endpoint_ref variable, so I don’t know  
it was something wrong with this code.
It is the correct way to get the endpoint address or exists another  
way to get that info.

Thank in advance.

José M. Medina V.
Wesam Consulting
Mobile: +58(416)613-3302 +58(414)019-0580
Ofc:     +58(212)959-4155 Ext. 204
BB pin: 31E562BF
Caracas - Venezuela

View raw message