Announcement Announcement Module
No announcement yet.
Webservice Client + one way ssl. Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Webservice Client + one way ssl.

    I am using spring webservice for webservice server and client.

    On client side i was able to send request with http end point without issue. But certain webservice are exposed through https - one way ssl. I am not able to find way in spring service client to connection to this webservice.

    Please advice,

    Thanks in advance.

  • #2
    well i am currently new in web designing so thing is i am also in trouble same like you in same subject so if any third person of this forum could solve your problem then plz post the method through we able to solve our problem


    • #3
      We are currently moving from CXF to spring webservice. Doing the above in CXF was well documented. This is very simple in spring as well. There is hardly any coding required but understanding it is little difficult.

      Spring uses 2 http tranport, one that comes by default in the java and second the apache commons httpclient. For achieve this i used the commons https client. I went to apache common httpclient site downloaded the jars. And put that in my libs folder. The common http client document says that it use JSSE, which depends on the JVM truststore and keystores.

      One set the system property or JVM argument to set keystore and truststore.

      System.setProperty("", "C:\\JAVA_INSTALLATION\\jdk1.6.0_16\\jre\\lib\\sec urity\\cacerts.jks");
      System.setProperty(" rd", "changeit");

      I perfer to use the ssl context to set the key store and truststore.

      I will shortly going to write blog about this.

      Refer - in spring ws documentation.