Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 11092 invoked from network); 18 Oct 2008 00:17:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Oct 2008 00:17:03 -0000 Received: (qmail 81556 invoked by uid 500); 18 Oct 2008 00:16:57 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 81080 invoked by uid 500); 18 Oct 2008 00:16:56 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 81069 invoked by uid 99); 18 Oct 2008 00:16:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Oct 2008 17:16:56 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mgainty@hotmail.com designates 65.55.116.78 as permitted sender) Received: from [65.55.116.78] (HELO blu0-omc3-s3.blu0.hotmail.com) (65.55.116.78) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Oct 2008 00:15:47 +0000 Received: from BLU142-W30 ([65.55.116.74]) by blu0-omc3-s3.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 17 Oct 2008 17:16:04 -0700 Message-ID: Content-Type: multipart/alternative; boundary="_2d166368-7713-454a-8717-b359be368e37_" X-Originating-IP: [65.96.230.99] From: Martin Gainty To: Subject: RE: How to engage a module for a ServiceClient with a service.xml file? Date: Fri, 17 Oct 2008 20:16:03 -0400 Importance: Normal In-Reply-To: References: MIME-Version: 1.0 X-OriginalArrivalTime: 18 Oct 2008 00:16:04.0580 (UTC) FILETIME=[B59B3A40:01C930B6] X-Virus-Checked: Checked by ClamAV on apache.org --_2d166368-7713-454a-8717-b359be368e37_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable ./META-INF/services.xml Martin=20 ______________________________________________=20 Disclaimer and confidentiality note=20 Everything in this e-mail and any attachments relates to the official busin= ess of Sender. This transmission is of a confidential nature and Sender doe= s not endorse distribution to any party other than intended recipient. Send= er does not necessarily endorse content contained within this transmission.= =20 Date: Fri=2C 17 Oct 2008 16:14:30 -0700 From: midon@intalio.com To: axis-user@ws.apache.org Subject: How to engage a module for a ServiceClient with a service.xml file= ? Hi all=2C I'm trying to *invoke* a web service that requires some security settings. = So I need to engage Rampart. I had no particular issues so far but I have one question regarding my conf= iguration. Here are the details: My server may interact with many different external services=2C using vario= us settings. To be DRY=2C I have one main axis2.xml file that defines all common setting= s=2C and eventually one service.xml per service. I configure my ServiceClients with both files with the following code: ConfigurationContext configContext =3D ... // based on the = main axis2.xml file InputStream ais =3D new File("service.xml").toURI().toURL()= .openStream()=3B ServiceBuilder builder =3D new ServiceBuilder(ais=2C config= Context=2C service)=3B builder.populateService(builder.buildOM())=3B Because Rampart is not required by all the services I interact with=2C I've= tried to engage it in the service.xml only (see below). In vain. So my questions are: is there a way to engage a module for a given service= through a service.xml file? if so what am I missing? Thanks in advance for your help! Alexis =20 ... _________________________________________________________________ You live life beyond your PC. So now Windows goes beyond your PC. http://clk.atdmt.com/MRT/go/115298556/direct/01/= --_2d166368-7713-454a-8717-b359be368e37_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable ./META-INF/services.xml

 =3B<=3Bservice name=3D"FuBarService"&= gt=3B
 =3B =3B =3B =3B =3B <=3Bmodule ref=3D"modul= e_name" />=3B

Martin
_________________________________________= _____
Disclaimer and confidentiality note
Everything in this e-mail= and any attachments relates to the official business of Sender. This trans= mission is of a confidential nature and Sender does not endorse distributio= n to any party other than intended recipient. Sender does not necessarily e= ndorse content contained within this transmission.



Date: Fr= i=2C 17 Oct 2008 16:14:30 -0700
From: midon@intalio.com
To: axis-user= @ws.apache.org
Subject: How to engage a module for a ServiceClient with = a service.xml file?

Hi all=2C

I'm trying to = *invoke* a web service that requires some security settings. So I need to e= ngage Rampart.
I had no particular issues so far but I have one question= regarding my configuration.

Here are the details:
My server may interact with many different ext= ernal services=2C using various settings.
To be DRY=2C I have one main a= xis2.xml file that defines all common settings=2C and eventually one servic= e.xml per service.

I configure my ServiceClients with both files =3B with the followin= g code:

 =3B =3B =3B =3B =3B =3B =3B&nbs= p=3B =3B =3B =3B =3B =3B =3B =3B ConfigurationC= ontext configContext =3D ... // based on the main axis2.xml file
 = =3B =3B =3B =3B =3B =3B =3B =3B =3B =3B=  =3B =3B =3B =3B =3B InputStream ais =3D new File("serv= ice.xml").toURI().toURL().openStream()=3B
 =3B =3B =3B =3B =3B =3B =3B =3B =3B&nb= sp=3B =3B =3B =3B =3B =3B ServiceBuilder builder =3D ne= w ServiceBuilder(ais=2C configContext=2C service)=3B
 =3B =3B&nb= sp=3B =3B =3B =3B =3B =3B =3B =3B =3B = =3B =3B =3B =3B builder.populateService(builder.buildOM())=3B
Because Rampart is not required by all the services I i= nteract with=2C I've tried to engage it in the service.xml only (see below)= . In vain.

So my questions are: is there a way to engage a module for =3B a gi= ven service through a service.xml file? if so what am I missing?

Tha= nks in advance for your help!

Alexis


<=3Bservice>=3B<= br> =3B =3B =3B <=3Bmodule ref=3D"rampart" />=3B
 =3B =3B =3B
 =3B =3B =3B <=3Bparameter name= =3D"OutflowSecurity">=3B
 =3B =3B =3B =3B =3B <= =3Baction>=3B
 =3B =3B =3B =3B =3B =3B =3B=  =3B =3B =3B =3B =3B =3B ...
 =3B =3B&nb= sp=3B =3B =3B <=3B/action>=3B
 =3B =3B =3B <= =3B/parameter>=3B
<=3B/service>=3B


You live life beyond your PC. So now Windows goes beyond your P= C. See how = --_2d166368-7713-454a-8717-b359be368e37_--