axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thomas.che...@ascentialsoftware.com
Subject RE: help with proxy
Date Thu, 06 Mar 2003 14:05:13 GMT
Forget about that one, miss-configuration on my side.
My Axis client is now talking to the web service through the Microsoft ISA
server proxy with basic authentication without any problems.

I guess one possible improvement to Axis would be to have Digest
authentication as well for the proxy (and not just basic, see source of
DefaultSocketFactory.java).

Thomas

-----Original Message-----
From: thomas.cherel@ascentialsoftware.com
[mailto:thomas.cherel@ascentialsoftware.com] 
Sent: Wednesday, March 05, 2003 3:43 PM
To: axis-user@ws.apache.org
Subject: RE: help with proxy

I have an issue along the same lines of that ones.
I am accessing my web service through a proxy.
All the right system properties are correctly set, but the issue seems to
come from a different interpretation of the HTTP spec between my client
(Axis) and my proxy server (Microsoft ISA server).

The HTTP spec seems to say that the client must first send an
unauthenticated request to the proxy that will reply with a 407 error and
the Proxy-Authenticate http header then the client can send back an
authenticated request (a request with the Proxy-Authorization header).

In the case of Axis as a client, it seems that the first request is sending
directly the Proxy-Authorization header, this request is denied by my proxy
server and Axis is not sending a new request for sure.

Am I missing something or is there an Axis (or java) issue? Or is it my
proxy server which is too strict?

Thomas.


-----Original Message-----
From: Nicola Muratori [mailto:nicola.muratori@cnare.it] 
Sent: Wednesday, February 26, 2003 5:58 AM
To: axis-user@ws.apache.org
Subject: Re: help with proxy

i've solved the bug. there is some confusion in environment variables!!!

the correct values are:

        System.setProperty( "proxySet", "true" );
        System.setProperty( "http.proxyHost", "linuxintra" );
        System.setProperty( "http.proxyPort", "8080" );

        System.setProperty("http.proxyUser", "xxx");
        System.setProperty("http.proxyPassword", "yyy");

many articles written in JavaWorld are in wrong!! please
send feedback to this article:
http://www.javaworld.com/javaworld/javatips/jw-javatip42.html

regards,
Nicola


----- Original Message -----
From: "Nicola Muratori" <nicola.muratori@cnare.it>
To: <axis-user@ws.apache.org>
Sent: Wednesday, February 26, 2003 10:45 AM
Subject: help with proxy


> i'm in trouble with proxy authentication in a client generated by
WSDL2Java
> that
> will access to GoogleSearch Web Service.
>
> I've tried to set the
>
>         System.setProperty( "proxySet", "true" );
>         System.setProperty( "proxyHost", "linuxintra" );
>         System.setProperty( "proxyPort", "8080" );
>
>         System.setProperty("http.proxyUserName", "xxx");
>         System.setProperty("http.proxyPassword", "yyy");
>
> properties but it still won't works....
>
> in the Forte For Java 4 environment it catches a HTTP 407 error (proxy
auth
> required),
> but running the same client in a window shell gives me a Connection
refused
> exception.
>
> in the first case the request is denied by the proxy, but in the second it
> neither reaches the proxy..!!!
>
> however, the client generated by Systinet WASP Engine (has the same
function
> that WSDL2Java)
> with the SAME properties works....
>
> can someone help me???

Mime
View raw message