Hi Axis Users!

I have a question about Axis 1.1

I have a Web Application that should call two Web Services with Axis 1.1.

The two Web Services can be reached via two different HTTP proxies.
Meaning WS #1 can be reached via HTTP proxy #1 (and only this one) and
WS #2 can be reached via HTTP proxy #2 (and only this one).

The two calls are not synchronised and can be done at the same time.
So in my case, i'm looking for a thread safe solution.

I read an article
(http://tjordahl.blogspot.com/2007/03/apache-axis-and-commons-httpclient.html)
saying i must change the client-config.wsdd, but according to me this
file is only for application servers offering the web service. i'm a
the client of the web services.. the "consumer" i mean.

Moreover, the solutions below are already out of the scope because they are not
thread safe :
  - system properties :
       System.setProperty("https.proxyHost", ....);
       System.setProperty("https.proxyPort", .....);
  - axis properties :
       AxisProperties.setProperty("https.proxyHost", ....);
       AxisProperties.setProperty("https.proxyPort", .....);

Finally, my question is :
    Do you have any idea how can I specify two different proxies for
calling WS with axis 1.1 from a Web Application in a thread-safe way?


Thanks for your kind responses.

Vince

Reply via email to