Hi, I have place modules/rampart-1.3.mar and problem solved. Thank You Nandana.
--RAFI On Thu, Jun 19, 2008 at 7:06 PM, Nandana Mihindukulasooriya < [EMAIL PROTECTED]> wrote: > Just to make sure , you have deployed the rampart mar to the client > repository under modules directory and have all the rampart and third party > dependency classes in your client classpath ? > > And "/home/rafi/programming/java/webservice/wstest-client" points to the > correct location right ? Where you have > /home/rafi/programming/java/webservice/wstest-client/modules/rampart-1.3.mar > . > > thanks, > nandana > > On Thu, Jun 19, 2008 at 6:06 PM, Rafaqat Ali <[EMAIL PROTECTED]> wrote: > >> Hi, >> I am new to web services and following tutorial for addign rampart as >> security module from a website >> http://wso2.org/library/3190 >> >> Here is my client side code >> ConfigurationContext ctx = >> ConfigurationContextFactory.createConfigurationContextFromFileSystem("/home/rafi/programming/java/webservice/wstest-client", >> null); >> GreetingServiceStub stub = new GreetingServiceStub(ctx, " >> https://localhost:8443/axis2/services/GreetingService"); >> ServiceClient sc = stub._getServiceClient(); >> sc.engageModule("rampart"); >> >> Options options = sc.getOptions(); >> options.setUserName("apache"); >> options.setPassword("password"); >> >> System.setProperty("javax.net.ssl.trustStore", >> "/path/to/server.jks"); >> System.setProperty("javax.net.ssl.trustStorePassword", >> "password"); >> >> String greeting = stub.greeting(); >> >> >> --RAFI >> > > > > -- > Nandana Mihindukulasooriya > Software Engineer > WSO2 inc. > > http://nandana83.blogspot.com/ >
