The Source for Java Technology Collaboration

Home » java.net Forums » GlassFish » Metro and JAXB

Thread: HTTP Proxy through JAX-WS

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
This question is answered. Helpful answers available: 2. Correct answers available: 1.

Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 2 - Last Post: Oct 15, 2008 7:50 AM by: muchhalsumeet
muchhalsumeet

Posts: 10
HTTP Proxy through JAX-WS
Posted: Oct 13, 2008 5:46 AM
 
  Click to reply to this thread Reply

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

Andreas Loew
Re: HTTP Proxy through JAX-WS
Posted: Oct 13, 2008 5:58 AM   in response to: muchhalsumeet
  Click to reply to this thread Reply

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


muchhalsumeet

Posts: 10
Re: HTTP Proxy through JAX-WS
Posted: Oct 15, 2008 7:50 AM   in response to: muchhalsumeet
 
  Click to reply to this thread Reply

Thanks. It worked.




 XML java.net RSS