I think that I've see that about connection reset because of the missing
keystore javax.net.ssl.trustStore property
System.setProperty("javax.net.ssl.trustStore", "/path/to/.keystore");
System.setProperty("javax.net.ssl.trustStorePassword", "changeit");
ConfigurationContext ctx =
ConfigurationContextFactory.createConfigurationContextFromFileSystem(null);
authStub = new EmrAuthWsStub(ctx,
"https://172.17.0.24:8443/emrws" +
"/services/emrAuthWs.emrAuthWsHttpSoap12Endpoint");
/*
//SUpport for username token (wss)
ServiceClient sc = authStub._getServiceClient();
sc.engageModule("rampart");
Options options = sc.getOptions();
options.setUserName("user");
options.setPassword("password");
*/
then you have an authStub that supports calls over https, check the port
https://172.17.0.24:8443/..., you have to copy it from your wsdl, and change
http for https and the port too.
You can generate the .keystore using, keytool.exe but I'm not pretty sure, I
just copied the one generated for the server side, but I suppose it is not the
best way.
Jaime Hablutzel | 9-8964-0369
(tildes omitidas intencionalmente)
> Date: Mon, 16 Nov 2009 16:24:45 -0500
> From: [email protected]
> Subject: RE: Creating Web Service client using HTTPS from wsdl files
> To: [email protected]
>
> Hi Prabath,
>
> Sorry, I don't think I have permission to expose the client code. But
> someone who had tried a similar scenario, please help.
>
> Thanks,
> Suma
>
> -----Original Message-----
> From: Prabath Siriwardena [mailto:[email protected]]
> Sent: Monday, November 16, 2009 1:52 PM
> To: [email protected]
> Subject: Re: Creating Web Service client using HTTPS from wsdl files
>
> Can you please attach your client code ?
>
> Thanks& regards.
> -Prabath
>
> [email protected] wrote:
> >
> > Hi
> >
> > I need to invoke a set of web services through HTTPS. The WSDL files
> > and the XSD files are provided. I was able to get the token from the
> > client with the Authentication web service. But when I invoke the
> > other web service I get a SocketException: Connection Reset. As I'm
> > new to Java and web service I'm not sure where has it gone wrong.
> >
> > If I invoke the web service without providing the token, its hitting
> > the server. But when I provide the token I get the above mentioned
> > error. Could anyone help me with the issue? Also may be if anyone has
> > a sample program for HTTPS it will be helpful. Please help
> >
> > Thanks,
> >
> > Suma
> >
> > *SUMA (Sumathi Musuwathi Subramanian)* Software Engineer
> >
> > *Thomson Reuters*
> >
> > Phone: (314)468-2565
> >
> > [email protected]
> > thomsonreuters.com
> >
> >
> >
> > This email was sent to you by Thomson Reuters, the global news and
> > information company.
> > Any views expressed in this message are those of the individual
> > sender, except where the sender specifically states them to be the
> > views of Thomson Reuters.
>
>
>
> This email was sent to you by Thomson Reuters, the global news and
> information company.
> Any views expressed in this message are those of the individual sender,
> except where the sender specifically states them to be the views of Thomson
> Reuters.
>
>
_________________________________________________________________