You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-user@axis.apache.org by Jose M Medina V <jo...@wesamconsulting.com> on 2009/10/21 20:25:13 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







Re: Endpoint Address

Posted by Supun Kamburugamuva <su...@gmail.com>.
You can create a Jira. If you can find the problem please attach a patch as
well.

Thanks,
Supun..

On Wed, Nov 25, 2009 at 2:34 AM, Jose M Medina V <
jose_medina@wesamconsulting.com> wrote:

> What is the procedure to get this work?
>
> Regards,
>
> On Nov 24, 2009, at 4:09 PM, Supun Kamburugamuva wrote:
>
> I think the way you get endpoint_ref is correct. But I'm not sure from your
> comment weather endpoint_ref is NULL or a filed inside endpoint_ref is NULL.
> In any case it should be a bug.
>
> Thanks,
> Supun..
>
> On Wed, Oct 21, 2009 at 11:55 PM, Jose M Medina V <
> jose_medina@wesamconsulting.com> wrote:
>
>> 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
>>
>>
>>
>>
>>
>>
>>
>
>
> --
> Software Engineer, WSO2 Inc
> http://wso2.org
> supunk.blogspot.com
>
>
>
> ------------------------------------------------------------
> 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
>
>
>
>
>
>
>


-- 
Software Engineer, WSO2 Inc
http://wso2.org
supunk.blogspot.com

Re: Endpoint Address

Posted by Jose M Medina V <jo...@wesamconsulting.com>.
What is the procedure to get this work?

Regards,

On Nov 24, 2009, at 4:09 PM, Supun Kamburugamuva wrote:

> I think the way you get endpoint_ref is correct. But I'm not sure from your comment weather endpoint_ref is NULL or a filed inside endpoint_ref is NULL. In any case it should be a bug.
> 
> Thanks,
> Supun..  
> 
> On Wed, Oct 21, 2009 at 11:55 PM, Jose M Medina V <jo...@wesamconsulting.com> wrote:
> 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
> 
> 
> 
> 
> 
> 
> 
> 
> 
> -- 
> Software Engineer, WSO2 Inc
> http://wso2.org
> supunk.blogspot.com
> 
> 

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







Re: Endpoint Address

Posted by Supun Kamburugamuva <su...@gmail.com>.
I think the way you get endpoint_ref is correct. But I'm not sure from your
comment weather endpoint_ref is NULL or a filed inside endpoint_ref is NULL.
In any case it should be a bug.

Thanks,
Supun..

On Wed, Oct 21, 2009 at 11:55 PM, Jose M Medina V <
jose_medina@wesamconsulting.com> wrote:

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


-- 
Software Engineer, WSO2 Inc
http://wso2.org
supunk.blogspot.com