Return-Path: Delivered-To: apmail-ws-axis-c-user-archive@www.apache.org Received: (qmail 92851 invoked from network); 26 Nov 2009 00:01:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 26 Nov 2009 00:01:44 -0000 Received: (qmail 10755 invoked by uid 500); 26 Nov 2009 00:01:43 -0000 Delivered-To: apmail-ws-axis-c-user-archive@ws.apache.org Received: (qmail 10716 invoked by uid 500); 26 Nov 2009 00:01:42 -0000 Mailing-List: contact axis-c-user-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C User List" Reply-To: "Apache AXIS C User List" Delivered-To: mailing list axis-c-user@ws.apache.org Received: (qmail 10707 invoked by uid 99); 26 Nov 2009 00:01:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Nov 2009 00:01:42 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of supun06@gmail.com designates 209.85.221.179 as permitted sender) Received: from [209.85.221.179] (HELO mail-qy0-f179.google.com) (209.85.221.179) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Nov 2009 00:01:31 +0000 Received: by qyk9 with SMTP id 9so271163qyk.30 for ; Wed, 25 Nov 2009 16:01:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=GRUZVCpseBGATjLDFWGE3Q6jqzretSCz5x6QmeX8Dn4=; b=P3r2mHF4V0fhb6SJBNnzr0PyrgP/K6vv+bkHXXwnwPLgt5stB6XG79qg+C6C5gvMkc biPDyzU9VxkbTFvYYo57xLKYJZKeyxKRTv2Qvi3dK/Ar40URQHS++lYt/tOUxe7Lntln n7hDtd2u2DXggIAKZuS2xt0+qvdK+BJVKnjiU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=TMtw2UI1w1n2KqHh4w9CsjyGKXYf4f26s2UFn5BW0uRcuj4JLsWmRwNz5k/6q/HvGr 3xANKYZtM1+aUxuPK9uANGEtCZkCj2K07D09UrVoc1AVZEqfn7QzKB4YXddDAYTAMQHh 5aF5ZnmA/RijhMsxCemKm7IiRHaRud99SNEHU= MIME-Version: 1.0 Received: by 10.229.119.170 with SMTP id z42mr1193346qcq.35.1259193670371; Wed, 25 Nov 2009 16:01:10 -0800 (PST) In-Reply-To: <4BD5685E-C360-46E5-9342-1FEFC1B3E6D7@wesamconsulting.com> References: <4BD5685E-C360-46E5-9342-1FEFC1B3E6D7@wesamconsulting.com> Date: Thu, 26 Nov 2009 05:31:10 +0530 Message-ID: Subject: Re: Endpoint Address From: Supun Kamburugamuva To: Apache AXIS C User List Content-Type: multipart/alternative; boundary=000e0cd5c0806d09c104793adf80 X-Virus-Checked: Checked by ClamAV on apache.org --000e0cd5c0806d09c104793adf80 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable 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 yo= ur > comment weather endpoint_ref is NULL or a filed inside endpoint_ref is NU= LL. > 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 =3D NULL; >> const axis2_char_t *address =3D NULL; >> . >> . >> . >> endpoint_ref =3D 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 =3D 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=92t 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=E9 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=E9 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 > > > > > > > --=20 Software Engineer, WSO2 Inc http://wso2.org supunk.blogspot.com --000e0cd5c0806d09c104793adf80 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable 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&= gt; wrote:
<= div>What is the procedure to get this work?

Regard= s,

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..=A0

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 Axi= s2c, I put the following code in the invoke function in the skeleton librar= y:

axis2_endpoint_ref_t *endpoint_ref =3D NULL;
const axis2_char_t *address =3D NULL;
.
.
.
endpoint_ref =3D axis2_msg_ctx_get_to(msg_ctx, env);
=A0=A0if(endpoint_ref)
=A0=A0{
=A0=A0 =A0AXIS2_LOG_DE= BUG(env->log, AXIS2_LOG_SI, "%s%s if(endpoint_ref)",pdesWebSer= v->nombre_web,nombreFuncion);
=A0=A0 =A0address =3D axis2_endpoint_ref_get_address(endpoint_ref, env= );
=A0=A0 =A0if (address)
=A0=A0 =A0{
=A0=A0 = =A0 =A0AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI, "%s%s if (address)&q= uot;,pdesWebServ->nombre_web,nombreFuncion);
=A0=A0 =A0}
=A0=A0}

When I run this= , I got NULL in endpoint_ref variable, so I don=92t know it was something w= rong with this code.
It is the correct way to get the endpoint ad= dress or exists another way to get that info.

Thank in advance.

----------------------------= -------------------------------- Jos=E9 M. Medi= na V.
Wesam Consulti= ng
jos= e_medina@wesamconsulting.com Mobile: +58(41= 6)613-3302 +58(414)019-0580
Ofc:=A0 =A0 = =A0+58(212)959-4155 Ext. 204=
BB pin:=A031E562BF
C= aracas - Venezuela




=




--
Software Engi= neer, WSO2 Inc
http://wso= 2.org
supu= nk.blogspot.com



----------------------------= -------------------------------- Jos=E9 M. Medi= na V.
Wesam Consulti= ng
jos= e_medina@wesamconsulting.com Mobile: +58(41= 6)613-3302 +58(414)019-0580
Ofc:=A0 =A0 = =A0+58(212)959-4155 Ext. 204=
BB pin:=A031E562BF
C= aracas - Venezuela




=




--
S= oftware Engineer, WSO2 Inc
http://wso2.org
supunk.blogspot.com

--000e0cd5c0806d09c104793adf80--