Hi Sanjay, I remember that because you also have to inform the full path of your axis2.xml file to the ConfigurationContext object, as explained in [1].
So it would look like this: ConfigurationContext ctx = ConfigurationContextFactory. createConfigurationContextFromFileSystem(confPath,"C:\something\axis2.xml"); Cheers, Joana [1] - http://mail-archives.apache.org/mod_mbox/ws-rampart-dev/200802.mbox/[EMAIL PROTECTED] On Mon, Feb 25, 2008 at 12:37 PM, Sanjay Vivek <[EMAIL PROTECTED]> wrote: > 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: rampart-dev@ws.apache.org > >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 > > > -- Student Intern SAP Research - Security & Trust SAP Labs France 805 Avenue du Dr. Maurice Donat 06250 Mougins T +33/492286319 F +33/492286201 Personal Homepage: http://www.inf.ufrgs.br/~jmftrindade