Before, I tried it both ways, neither worked.  I just now added in the
following code:

        String password = " " + proxyUserName + ":" + " " + proxyPassword;
        BASE64Encoder B64Encoder = new BASE64Encoder ();
        String encodedPassword = B64Encoder.encode( password.getBytes ());
        System.setProperty( "https.proxyAuth", "Basic " + encodedPassword );

and I still get the same SOAPException. So, unless my code above is wrong
there's some other problem.

As for the API I would prefer...IMO it would be best if the
host/port/username/password parameters are set the same way, regardless of
whether the target is http or https.

mike.

-----Original Message-----
From: Scott Nichol [mailto:snicholnews@;scottnichol.com]
Sent: Friday, October 18, 2002 3:27 PM
To: [EMAIL PROTECTED]
Subject: Re: Problems with HTTPS + Proxy + Authentication


Did you call setProxyUserName/setProxyPassword and expect them to work
with https?  I always thought they should, but they don't.  If that's
what you were doing, I will change the code to support this.

Scott Nichol

----- Original Message -----
From: "Scott Nichol" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 18, 2002 3:20 PM
Subject: Re: Problems with HTTPS + Proxy + Authentication


> The code will only try to authenticate if you have defined the system
> property https.proxyAuth, which would have to be the Base64-encoded
> authentication string.  I think this was used instead of having
separate
> https.proxyUser and https.proxyPassword to provide some meager amount
of
> privacy.  Do you think it would be good/better to have https.proxyUser
> and https.proxyPassword?
>
> Scott Nichol
>
> ----- Original Message -----
> From: "Ladwig, Mike" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, October 18, 2002 3:07 PM
> Subject: RE: Problems with HTTPS + Proxy + Authentication
>
>
> > Sorry.  I'll try and get your source in here to make this more
> readable, but
> > here is what I have now.
> >
> > mike.
> >
> >
> > java.lang.reflect.InvocationTargetException
> >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
> >         at
> >
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39
> > )
> >         at
> >
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl
> > .java:25)
> >         at java.lang.reflect.Method.invoke(Method.java:324)
> >         at
org.apache.soap.util.net.HTTPUtils.getSecureSocket(Unknown
> > Source)
> >         at org.apache.soap.util.net.HTTPUtils.post(Unknown Source)
> >         at org.apache.soap.util.net.HTTPUtils.post(Unknown Source)
> >         at
> org.apache.soap.transport.http.SOAPHTTPConnection.send(Unknown
> > Source)
> >         at org.apache.soap.rpc.Call.invoke(Unknown Source)
> >         at
> sage2.src.Sensors.Core2.testauthproxy.main(testauthproxy.java:70)
> > Caused by: java.io.IOException: Unable to tunnel through
> > httpdal2.northgrum.com:80.  Proxy returns "HTTP/1.0 407 Proxy
> authorization
> > required"
> >         at
org.apache.soap.util.net.SSLUtils.doTunnelHandshake(Unknown
> > Source)
> >         at org.apache.soap.util.net.SSLUtils.buildSSLSocket(Unknown
> Source)
> >         ... 10 more
> >
> > -----Original Message-----
> > From: Scott Nichol [mailto:snicholnews@;scottnichol.com]
> > Sent: Friday, October 18, 2002 2:52 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Problems with HTTPS + Proxy + Authentication
> >
> >
> > Can you catch the SOAPException and do
> > e.getRootException().printStackTrace()?  That would be a big help.
> >
> > Thanks.
> >
> > Scott Nichol
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:soap-user-unsubscribe@;xml.apache.org>
> > For additional commands, e-mail:
> <mailto:soap-user-help@;xml.apache.org>
> >
> >
>
>
> --
> To unsubscribe, e-mail:
<mailto:soap-user-unsubscribe@;xml.apache.org>
> For additional commands, e-mail:
<mailto:soap-user-help@;xml.apache.org>
>
>


--
To unsubscribe, e-mail:   <mailto:soap-user-unsubscribe@;xml.apache.org>
For additional commands, e-mail: <mailto:soap-user-help@;xml.apache.org>

--
To unsubscribe, e-mail:   <mailto:soap-user-unsubscribe@;xml.apache.org>
For additional commands, e-mail: <mailto:soap-user-help@;xml.apache.org>

Reply via email to