You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Vincent FINET <vf...@sqli.com> on 2009/03/05 20:21:47 UTC

Axis 1.1 / Multiple Proxies

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

Re: Axis 1.1 / Multiple Proxies

Posted by Vincent FINET <vf...@sqli.com>.
Any ideas ?

On Thu, Mar 5, 2009 at 8:21 PM, Vincent FINET <vf...@sqli.com> wrote:
> 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
>