This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Web Services and the fly likes wsimport generated WebService and Proxy? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "wsimport generated WebService and Proxy?" Watch "wsimport generated WebService and Proxy?" New topic
Author

wsimport generated WebService and Proxy?

Florian Schaetz
Greenhorn

Joined: Oct 14, 2009
Posts: 11
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

Joined: Jun 05, 2013
Posts: 1
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: wsimport generated WebService and Proxy?
 
Similar Threads
Best Practice for creating a webservice client Not a coding question
JAX-WS RI wsimport not working
I need to write a client for Testing the SEI implemented as stateless session bean
WSIMPORT error while using it with AXIS2
create web service client url https