Announcement Announcement Module
No announcement yet.
urgent: how to use jax-rpc with a proxy server? Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • urgent: how to use jax-rpc with a proxy server?

    Hi all,

    we are using Spring with Axis and Tomcat which worked very nice so far. But now we need to access a web service that is only accessible through a proxy server. Now my question is how this can be done.
    Do I need to create a generic handler? But what must I actually do then in this handler? Any other way or ideas?

    thanks for your help,


  • #2
    Maybe this is what you need..

    System.setProperty("http.proxyHost", ipAddress);
    System.setProperty("http.proxyPort", "80");


    • #3
      Tthank you. I found code like yours a while later somewhere. And indeed this works, but it's not really satisfying as it sets the proxy for all connections, and I need to call some services I don't like to use the proxy for. Moreover I think it affects the whole (tomcat)server where also other applications are running.
      So I still hope there is a way to set the proxy just for one service.