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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to