users@jax-rpc.java.net

Re: JAXRPC client through proxy

From: Arun Gupta <arun.gupta_at_sun.com>
Date: Tue, 21 May 2002 12:16:22 -0700

Hi Luc,

Try the following code:

URL url = new URL("http://java.sun.com/xml/jaxrpc/index.html");
URLConnection conn = url.openConnection();
System.out.println("Content-length: " + conn.getContentLength());
System.out.println("Content-type: " + conn.getContentType());

with your -Dhttp.proxyHost and -Dhttp.proxyPort. This is a very basic piece of code that should work if your proxy settings are correct. If this does not work, then you need to provide correct proxy host and port number.

Thanks for your interest in JAX-RPC.

Regards,
-Arun



Luc Plaetinck wrote:

>On Tue, 21 May 2002 07:11:06 -0600, Luc Plaetinck <luc_plaetinck_at_COMPUWARE.COM> wrote:
>
>>On Mon, 20 May 2002 14:37:45 -0700, Arun Gupta <arun.gupta_at_SUN.COM> wrote:
>>
>>>Hi Luc,
>>>
>>>You need to set the properties as -Dhttp.proxyHost and -Dhttp.proxyPort.
>>>It seems there is a slight typo, you are using -Dhttp:proxyHost.
>>>
>>>Thanks for your interest in JAX-RPC.
>>>
>>>Regards,
>>>-Arun
>>>
>>
>>Hi Arun, thanks for pointing that out. However, after changing this I now get an exception though:
>>
>>......
>>Thanks,
>>Luc Plaetinck
>>
>
>
>Never mind that question, someone did shut down the Tomcat server overnight.
>However, after correcting everything the client still refuses to go through the proxy server. What else could be wrong?
>Thanks,
>Luc Plaetinck
>

--
=============================================
There is only one me, I must live myself!
There is only one today, I must live itself!
=============================================
http://members.tripod.com/~apgupta/index.html
=============================================