You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by Jose M Medina V <jo...@wesamconsulting.com> on 2009/11/12 16:47:34 UTC

Endpoint Address

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);
  if(endpoint_ref)
  {
    AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI, "%s%s if(endpoint_ref)",pdesWebServ->nombre_web,nombreFuncion);
    address = axis2_endpoint_ref_get_address(endpoint_ref, env);
    if (address)
    {
      AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI, "%s%s if (address)",pdesWebServ->nombre_web,nombreFuncion);
    }
  }

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
jose_medina@wesamconsulting.com
Mobile: +58(416)613-3302 +58(414)019-0580
Ofc:     +58(212)959-4155 Ext. 204
BB pin: 31E562BF
Caracas - Venezuela