Return-Path: Delivered-To: apmail-ws-axis-c-user-archive@www.apache.org Received: (qmail 91160 invoked from network); 13 Apr 2009 04:15:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Apr 2009 04:15:03 -0000 Received: (qmail 25497 invoked by uid 500); 13 Apr 2009 04:15:02 -0000 Delivered-To: apmail-ws-axis-c-user-archive@ws.apache.org Received: (qmail 25457 invoked by uid 500); 13 Apr 2009 04:15:02 -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 25448 invoked by uid 99); 13 Apr 2009 04:15:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Apr 2009 04:15:02 +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 (athena.apache.org: local policy) Received: from [98.136.45.25] (HELO n78a.bullet.mail.sp1.yahoo.com) (98.136.45.25) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 13 Apr 2009 04:14:52 +0000 Received: from [216.252.122.216] by n78.bullet.mail.sp1.yahoo.com with NNFMP; 13 Apr 2009 04:14:32 -0000 Received: from [69.147.84.114] by t1.bullet.sp1.yahoo.com with NNFMP; 13 Apr 2009 04:14:31 -0000 Received: from [127.0.0.1] by omp203.mail.sp1.yahoo.com with NNFMP; 13 Apr 2009 04:14:31 -0000 X-Yahoo-Newman-Property: ymail-5 X-Yahoo-Newman-Id: 921820.38647.bm@omp203.mail.sp1.yahoo.com Received: (qmail 53869 invoked by uid 60001); 13 Apr 2009 04:14:31 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1239596071; bh=3iTpH06tVSWXFZxwbcOrABTQB/AakcOTIuC1sT/xPBM=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=epHcON1JXaDBYyDwmJ2majI/nuZA86Cy7CcXFVVc509WHRVNwDPzM5XYkLteB35fv+3gIif6JuPIk9k5WYcKkQc5jTbvjSNtMNpJf2DIlc4j/w2z5gmjkIFxrGeJsT27xKyG6aN7j9qpko6pgZ55efi47xUgzqt7V8frZaW7X/o= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=Wu6Ardhkq1vtfhbwaQgVvHqNHOqM3pL172wcZjof/3LGinVF9KllzsV0dyzs9S+ySMhG0jpT1Lyx/8IILiFADIRIBqF4xrl1ZtXZ/Skr6EHowtXYsbh4WIEhcJGcNtEx602mPu5MPbkcnpuv7tvGgJfWyvXvP+XgkT4jaOaR8ZI=; Message-ID: <808575.53684.qm@web43516.mail.sp1.yahoo.com> X-YMail-OSG: MJnLNlgVM1m_PxMoOX._9JfKJpFzvay924itDc3XpbhP0kRCWOOD74qnznou4LewPOQ.KbdmFr300BeC5plv9iNBPXjva6sjbNNSIm4zZL_Zsfl3rOJhLxCr.dn8b8kqMX3MxKbCIKBEt4VPXqmCLpeVK7iOUaxSLnL7Fqy.pfJlWYATOvsDuYeZWzEHTuCMYfCfj4ihTL35QWPYVOcTWiAUXE2vqy6UtoeOGJFLmjzsVz6_36fUS.wMayoOxGi6s5Nkiy185SfBoAnNlp542ypFvYXi8EF.yWyf6lsPeuKcMLhdMcNSqjA- Received: from [75.6.227.136] by web43516.mail.sp1.yahoo.com via HTTP; Sun, 12 Apr 2009 21:14:31 PDT X-Mailer: YahooMailRC/1277.35 YahooMailWebService/0.7.289.1 References: <343948.77426.qm@web43513.mail.sp1.yahoo.com> Date: Sun, 12 Apr 2009 21:14:31 -0700 (PDT) From: Gordon Brown Subject: Re: Programmatically engage rampart/c To: Apache AXIS C User List In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1731768867-1239596071=:53684" X-Virus-Checked: Checked by ClamAV on apache.org --0-1731768867-1239596071=:53684 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Thanks Supun. So what are the APIs for adding a phase programmatically?=0A= =0AGordon=0A=0A________________________________=0AFrom: Supun Kamburugamuva= =0ATo: Apache AXIS C User List =0ASent: Saturday, April 11, 2009 1:51:16 AM=0ASubject: Re: Programmatic= ally engage rampart/c=0A=0AHi Gordon,=0A=0APlease see my comments inline.= =0A=0A=0AOn Sat, Apr 11, 2009 at 12:35 PM, Gordon Brown wrote:=0A=0AHi, All,=0A=0AI am starting to use axis2/c and rampart/c= to build a secured web service client. So far I have some success in setti= ng up the basic framework to communicate with a web server. I have a quick = question here:=0A=0A(1) While I can programmatically engage rampart/c (with= out adding module rampart/c in axis2.xml) using the following api: axis2_sv= c_client_engage_module(svc_client, env, "rampart");=A0I noted that I still = need to go to axis2.xml to add=A0=A0=A0=A0=A0=A0=A0 in the phaseOrder inflow/outflow, is there a way that this can also be d= one programmatically? =0A=0AYes, you can add a phase programmatically.=0A= =A0=0A=0AI am asking this because I am not sure if I=A0added the=A0security= phase, will it affect web service client=A0that does not need the security= enabled. In another work, will the same axis2.xml work for=A0BOTH ws-secur= ity enabled and=A0NO security required web service client?=0A=0ANo, It won'= t affect.=0A=A0=0A=0A=0A=0A(2) If I engage rampart/c programmatically, and = all I need is to set password/username for ws-security purpose,=A0which I c= an also do it programmatically, do I still need a policy file in the $CLIEN= T_HOME fold?=0A=0AYou don't need a policy file in the CLIENT_HOME folder. Y= ou can build the policy and set it.=0A=A0=0ASupun..=0A=0A=0A=0A=0AThanks!= =0AGordon=A0=0A=A0=0A=A0=0A=0A=0A=0A-- =0ASoftware Engineer, WSO2 Inc=0Ahtt= p://wso2.org=0Asupunk.blogspot.com=0A=0A=0A --0-1731768867-1239596071=:53684 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Thanks Supun. So what are the APIs for adding a phase = programmatically?
=0A
 
=0A
Gordon
=0A
=0A
=0A
=0AFrom: Supun Kamburugamuva <supun06@gm= ail.com>
To: Apache A= XIS C User List <axis-c-user@ws.apache.org>
Sent: Saturday, April 11, 2009 1:51:16 AM
<= SPAN style=3D"FONT-WEIGHT: bold">Subject: Re: Programmatically e= ngage rampart/c

Hi Gordon,

Please see my comments inli= ne.

=0A
On Sat, Apr 11, 2009 at 12:35 PM, Go= rdon Brown <go= rdonw.brown@yahoo.com> wrote:
=0A
=0A
=0A
=0A
Hi, All,
=0A<= DIV> 
=0A
I am starting to use axis2/c and rampart/c to build= a secured web service client. So far I have some success in setting up the= basic framework to communicate with a web server. I have a quick question = here:
=0A
 
=0A
(1) While I can programmatically eng= age rampart/c (without adding module rampart/c in axis2.xml) using the foll= owing api: axis2_svc_client_engage_module(svc_client, env, "rampart"); = ;I noted that I still need to go to axis2.xml to add    = ;   <phase name=3D"Security"/> in the phaseOrder inflo= w/outflow, is there a way that this can also be done programmatically?
=0A

Yes, you can add a phase programmati= cally.
 
=0A
=0A
=0A
=0A
I am asking this because I am not sure = if I added the security phase, will it affect web service client&= nbsp;that does not need the security enabled. In another work, will the sam= e axis2.xml work for BOTH ws-security enabled and NO security req= uired web service client?
=0A

No, It = won't affect.
 
=0A
=0A
=0A
=0A
=0A
 
=0A<= DIV>(2) If I engage rampart/c programmatically, and all I need is to set pa= ssword/username for ws-security purpose, which I can also do it progra= mmatically, do I still need a policy file in the $CLIENT_HOME fold?
=0A

You don't need a policy file in the CLIE= NT_HOME folder. You can build the policy and set it.
 
Supun..
=0A
=0A=0A
=0A
=0A
 
=0A
Thanks!
=0AGordon 
=0A
 
 




--
Software Engineer, WSO2 Inc
htt= p://wso2.org
supunk.blogspot.com



=0A=0A= --0-1731768867-1239596071=:53684--