Here is the code:


      System.out.println("Registriere Proxy fuer die Firewall...");
        SOAPHTTPConnection conn = new SOAPHTTPConnection();
        conn.setProxyHost("x.x.0.50");
        conn.setProxyPort(80);

      Call call = new Call(); // prepare the service invocation
      call.setSOAPTransport(conn); //set the proxy

Works fine with me.

Stephan

----- Original Message ----- 
From: "Drasko Kokic" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 30, 2001 7:51 PM
Subject: SOAP call not working over proxy !!!


> Hi everybody,
> 
> I am trying to prototype a very simple client/server
> model using SOAP.
> My problem is that the link goes via a proxy machine.
> I have read a SOAP documentation and found the remark
> that the following 3 lines are needed in order to make
> it working with a proxy:
>     System.setProperty("proxySet", "true");         
> // enable proxying
>     System.setProperty("proxyHost", "127.0.0.1");   
> // set name of proxy server
>     System.setProperty("proxyPort", "8088");        
> // set port number for proxy server
> 
> (in my example I am redirecting a proxy address to my
> localhost in hope to catch it on the TCP
> Tunnel/Monitor)
> 
> Has anybody managed to connect via a proxy???
> Where can I found more info about this subject?
> 
> TIA
> Drasko
> 
> __________________________________________________
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/

Reply via email to