Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 76058 invoked from network); 15 Feb 2006 19:57:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Feb 2006 19:57:33 -0000 Received: (qmail 95787 invoked by uid 500); 15 Feb 2006 19:57:24 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 95774 invoked by uid 500); 15 Feb 2006 19:57:23 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 95763 invoked by uid 99); 15 Feb 2006 19:57:23 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Feb 2006 11:57:23 -0800 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [131.239.47.43] (HELO eagle2.mro.com) (131.239.47.43) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Feb 2006 11:57:22 -0800 Received: from mta1.mro.com (mta1.mro.com [172.22.1.9]) by eagle2.mro.com (Postfix) with ESMTP id 5020817503 for ; Wed, 15 Feb 2006 14:57:01 -0500 (EST) In-Reply-To: <19e0530f0602151127r5ef6c63qfdb2147468ed74d9@mail.gmail.com> Subject: Re: client_config.wsdd and -Daxis.ClientConfigFile To: axis-user@ws.apache.org Cc: axis-user@ws.apache.org X-Mailer: Lotus Notes Release 6.5.2 June 01, 2004 Message-ID: From: Anamitra.Bhattacharyya@mro.com Date: Wed, 15 Feb 2006 14:59:10 -0500 X-MIMETrack: Serialize by Router on MTA1/MRO(Release 6.5.4|March 27, 2005) at 02/15/2006 02:58:15 PM MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N thanks Davnum - I got it working. So what I presume is - this api has changed in Axis 2 - right? or the generated wsdl2java code contains this piece of code [which u asked me to refer to] thanks Anamitra Davanum Srinivas To axis-user@ws.apache.org 02/15/2006 02:27 cc PM Subject Re: client_config.wsdd and Please respond to -Daxis.ClientConfigFile axis-user@ws.apac he.org my bad. get the sources and grep for XMLStringProvider in the test cases. thanks, dims On 2/15/06, Anamitra.Bhattacharyya@mro.com wrote: > I am using axis 1.2.1 - not axis 2. > thanks > Anamitra > > > > Davanum Srinivas > m> To > axis-user@ws.apache.org > 02/15/2006 01:33 cc > PM > Subject > Re: client_config.wsdd and > Please respond to -Daxis.ClientConfigFile > axis-user@ws.apac > he.org > > > > > > > > > Which version of axis2 are u using? > > thanks, > dims > > On 2/15/06, Anamitra.Bhattacharyya@mro.com > wrote: > > Hi > > thanks for the reply - I did the wsdl2java and got the resultant java > files > > - still dont see any mention of EngineConfiguration there! Not sure what > I > > am missing. > > thanks > > Anamitra > > > > > > > > > > Davanum Srinivas > > > m> > To > > axis-user@ws.apache.org > > 02/15/2006 09:49 > cc > > AM > > > Subject > > Re: client_config.wsdd and > > Please respond to -Daxis.ClientConfigFile > > axis-user@ws.apac > > he.org > > > > > > > > > > > > > > > > > > Yes, if you have already run "wsdl2java" check the generated sources. > > > > -- dims > > > > On 2/15/06, Anamitra.Bhattacharyya@mro.com > > wrote: > > > > > > Hi > > > Is there a way I can create a EngineConfiguration object based on the > > > client config file for Axis. I do not want to set the system property > > > -Daxis.ClientConfigFile as that will not work well for me in a > > > multithreaded environment where multiple instances of Web service > client > > > are trying to invoke different Web Services - each of the client > > instances > > > have their own Service and Call object [using DII]. If I can create the > > > EngineConfiguration instance based on the client config wsdd file then > I > > do > > > not need to set the system property and each of the client instances > can > > > have their own config [EngineConfiguration instance] > > > > > > thanks > > > Anamitra > > > ----- Forwarded by Anamitra Bhattacharyya/MRO on 02/15/2006 09:27 AM > > ----- > > > > > > Werner Dittmann > > > > > t-online.de> > > To > > > Anamitra.Bhattacharyya@mro.com > > > 02/15/2006 03:39 > > cc > > > AM wss4j-dev@ws.apache.org > > > > > Subject > > > Re: client_config.wsdd and > > > -Daxis.ClientConfigFile > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Anamitra, > > > > > > IMHO this is a question to the Axis user / Axis dev list because it's > > > a generic Axis question. How to deal with config files is not a > > > WSS4J specific problem. > > > > > > Can you pls resend the question to the Axis user mailing list?. > > > > > > Regards, > > > Werner > > > > > > Anamitra.Bhattacharyya@mro.com wrote: > > > > Hi > > > > I have tried and tested various ways of using wss4j in the client - > > both > > > > programmatically and the configuration way. When doing it > > > programmatically > > > > I have used > > > > > > > > EngineConfiguration clientConfig=createClientConfig(username, > > password); > > > > > > > > service.setEngineConfiguration(clientConfig); > > > > > > > > service.setEngine(new AxisClient(clientConfig)); > > > > > > > > And while doing the config way I have used the > -Daxis.ClientConfigFile. > > > > > > > > Doing it the config way seems easier and flexible and my client code > > > stays > > > > clean. But unfortunately setting the system proerty does not work > well > > in > > > a > > > > multi threaded env where multiple such client instances [which have > > their > > > > own Service and Call object - am using DII] are trying to invoke ws > > > > security enabled Web services. So here the > question------------------ > > > > Is there any way [fine if I have to use axis specific libs] that > given > > a > > > > client config file I can programmatically create the > > EngineConfiguration > > > > instance? If I can do that I am home free as then I am using the best > > of > > > > both worlds. > > > > Any api suggestions is welcome - the whole point is --- How to > generate > > > > EngineConfiguration from a client config file without really having > to > > > > understand whats there in the file. > > > > > > > > thanks > > > > Anamitra > > > > > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org > > > > For additional commands, e-mail: wss4j-dev-help@ws.apache.org > > > > > > > > > > > > > > > > > > > > > > > -- > > Davanum Srinivas : http://wso2.com/blogs/ > > > > > > > > > -- > Davanum Srinivas : http://wso2.com/blogs/ > > > -- Davanum Srinivas : http://wso2.com/blogs/