|
Replies:
2
-
Last Post:
Oct 15, 2008 7:50 AM
by: muchhalsumeet
|
|
|
|
|
|
|
HTTP Proxy through JAX-WS
Posted:
Oct 13, 2008 5:46 AM
|
|
|
Hello,
We are creating web service client which use some of the services from intranet and some from out side the intranet. To connect to outside services we need to use the HTTP Proxy. Please let us know how we can do this through JAX-WS.
We can not use System Properties as to use the services from intranet we do not need to use the HTTP Proxy.
Thanks
|
|
|
|
|
|
|
Re: HTTP Proxy through JAX-WS
Posted:
Oct 13, 2008 5:58 AM
in response to: muchhalsumeet
|
|
|
Hi,
metro@javadesktop.org schrieb:
> We are creating web service client which use some of the services > from intranet and some from out side the intranet. To connect to > outside services we need to use the HTTP Proxy. Please let us know > how we can do this through JAX-WS.
> We can not use System Properties as to use the services from intranet > we do not need to use the HTTP Proxy.
you have to register your own java.net.ProxySelector implementation instance as the default ProxySelector.
This class can then implement a strategy to use different proxies (or no proxies at all) for different URLs.
Hope this helps & best regards,
Andreas
-- Andreas Loew Java Architect Sun Microsystems (Germany)
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net For additional commands, e-mail: users-help@metro.dev.java.net
|
|
|
|
|
|
|
|
Re: HTTP Proxy through JAX-WS
Posted:
Oct 15, 2008 7:50 AM
in response to: muchhalsumeet
|
|
|
Thanks. It worked.
|
|
|
|
|