Hi Ruchith,

I created the ServiceClient instance with a configuration context in the
following manner:

ConfigurationContext ctx = 
                ConfigurationContextFactory.
                   createConfigurationContextFromFileSystem(confPath,
null);
        
ServiceClient client = new ServiceClient(ctx, null); 

where confPath = C:\rampart\policy

The contents of C:\rampart\policy is:

+policy
  +conf
    -policy.xml
  +modules
    -addressing-1.3.mar
    -rampart-SNAPSHOT.mar

What am I doing wrong? I didn't encounter any such problems with the
rampart-1.3.mar from the offical Apache Rampart site. Thanks again.

Regards
Sanjay

>-----Original Message-----
>From: Ruchith Fernando [mailto:[EMAIL PROTECTED] 
>Sent: 25 February 2008 11:07
>To: [email protected]
>Subject: Re: Timestamp validation error when invoking a 
>Rampart service with a .NET client.
>
>
>
>Sanjay Vivek wrote:
>> I just realised I forgot to update rampart.mar files on the client 
>> side with the SNAPSHOT version. I updated the client side with the 
>> latest SNAPSHOT version. However, I get the following errors when I 
>> try to consume the service with the client shown below:
>> 
>> Exception in thread "main" org.apache.axis2.AxisFault: Unable to 
>> engage module : rampart
>>      at
>> 
>org.apache.axis2.client.ServiceClient.engageModule(ServiceClient.java:
>> 33
>> 9)
>>      at
>> 
>org.apache.rampart.policy.CommandLineClient.main(CommandLineCli
>ent.java:
>> 59)
>> 
>> Basically, I'm getting errors at
>> 
>> client.engageModule("rampart");
>> 
>> I've tried changing it to:
>> 
>> client.engageModule("rampart-SNAPSHOT");
>> 
>> But I get similiar errors. What should the right parameter 
>be for the 
>> above method? My client is given below. Cheers
>
>
>It should be :
>
>client.engageModule("rampart");
>
>Did you create the ServiceClient instance with a configuration 
>context (created out of an axis2 repo where 
>rampart-SNAPSHOT.mar is available in the modules directory)?
>
>Thanks,
>Ruchith
>

Reply via email to