Hi Xinjun,

On 4/7/06, Xinjun Chen <[EMAIL PROTECTED]> wrote:
> Hi Ruchith,
>
> I am using Axis2 0.95 now, testing the security module.
> If I want to enable different client configurations for different
> services, what should I put inside the client_repo\services folder? A
> folder with service name with axis2.xml inside?

Doing this will NOT ensure that the correct configuration is picked
for each invocation.

You should have axis2.xml with different configurations and you can
use those files when you create the configuration context for each
invocation.

Example:

You can have two axis2.xml file as follows:
service1-client-axis2.xml
service2-client-axis2.xml

Now before creating the ServiceClient for each invocation you can use
the ConfigurationContextFactory.createConfigurationContextFromFileSystem()
method and specify the appropriate axis2.xml file as the second
argument into the method. (The first argument is the axis2 repo dir
and you can use the same dir and the security-0.95.mar file can be
inside the 'modules' dir)

Thanks,
Ruchith

Reply via email to