axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Gainty <>
Subject RE: How to engage a module for a ServiceClient with a service.xml file?
Date Sat, 18 Oct 2008 00:16:03 GMT


 <service name="FuBarService">
      <module ref="module_name" />

Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business of Sender.
This transmission is of a confidential nature and Sender does not endorse distribution to
any party other than intended recipient. Sender does not necessarily endorse content contained
within this transmission. 

Date: Fri, 17 Oct 2008 16:14:30 -0700
Subject: How to engage a module for a ServiceClient with a service.xml file?

Hi all,

I'm trying to *invoke* a web service that requires some security settings. So I need to engage
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 external services, using various settings.
To be DRY, I have one main axis2.xml file that defines all common settings, and eventually
one service.xml per service.

I configure my ServiceClients with both files  with the following code:

                ConfigurationContext configContext = ... // based on the main axis2.xml file
                InputStream ais = new File("service.xml").toURI().toURL().openStream();

                ServiceBuilder builder = new ServiceBuilder(ais, configContext, service);
Because Rampart is not required by all the services I interact with, 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!


    <module ref="rampart" />

    <parameter name="OutflowSecurity">

You live life beyond your PC. So now Windows goes beyond your PC.
View raw message