> 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.

I wonder if the extra spaces when you create password are a problem.  As
an alternative, try calling this method in HTTPUtils to generate the
part after "Basic ":

   public static String encodeAuth(String userName, String password)

> 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.

Yeh, I think I will do that, since I think it is less confusing.  I get
the feeling that the SSL proxy code was added by someone who needed it,
but it has not really been used widely.

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>

Reply via email to