Hi again Ryan, the code is very simple (I set the keystore location in a
runtime variable). To answer your other question, they both work fine if I
dont use SSL.



import org.apache.xmlrpc.secure.*;
import java.util.*;

public class XClient {
  public static void main (String []args) {
    try {
      SecureXmlRpcClient server = new
SecureXmlRpcClient("https://localhost:8080";);
      //server.setup();
      Vector v = new Vector();
      v.addElement(new Boolean(true));
      System.out.println((String)server.execute("sample.getName",v));
    }catch(Exception e){e.printStackTrace();}
  }
}




> -----Original Message-----
> From: Ryan Hoegg [mailto:[EMAIL PROTECTED]
> Sent: 25 March 2003 13:20
> To: [EMAIL PROTECTED]
> Subject: Re: HTTPS hostname wrong
>
>
> Could you post your code that instantiates and uses the
> SecureXmlRpcClient?  Also, have you tested your code without certificates?
>
> Alex Young wrote:
>
> >Hi Ryan, I am using version 1.2B1.  The exception is thrown right at the
> >point where the Worker thread (in the XmlRpcClient) is trying to get the
> >OutputStream from the URLConnection.
> >
> >Thanks
> >Alex
> >
> >>-----Original Message-----
> >>From: Ryan Hoegg [mailto:[EMAIL PROTECTED]
> >>Sent: 24 March 2003 17:50
> >>To: [EMAIL PROTECTED]
> >>Subject: Re: HTTPS hostname wrong
> >>
> >>What version of the library are you using?
> >>
> >>Alex Young wrote:
> >>
> >>>Hi, I am trying to use the SecureXmlRpcClient class but am
> geting this error:
> >>>
> >>>java.io.IOException: HTTPS hostname wrong should be (localhost)
> >>>the path IS is set to localhost and the correct certificates
> are in place. I get a similar message if I replace 'localhost'
> with '127.0.0.1'.  Anyway seen this error before?
> >>>
> >>>
> >>>Thanks
> >>>
> >>>Alex Young
> >>>
>
>


Reply via email to