Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

wsimport generated WebService and Proxy?

 
Florian Schaetz
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

is there any possibility to set a - webservice-specific - proxy host (and port) to a webservice-client (created with wsimport) without using the system properties (http.proxyHost and http.proxyPort)? Unfortunately, I can't use those, as they interfer with other processes and using the nonProxyHosts property makes the whole thing harder to maintain. So it would be great if someone had an idea how to insert, for example, a java.net.Proxy object into a Webservice created with wsimport.

Thanks,

Flo
 
Yogendra Rampuria
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I arrived on this post looking for a way to use proxy for internal (intranet) URLs and skip proxy for external URLs (w3c.com) using the wsimport.exe (part of JDK 1.6, 1.7,etc). I see that it does not have the facility to put nonProxyHosts, so I went ahead and used Java class invocations.

Something like this
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic