Announcement Announcement Module
Collapse
No announcement yet.
2 way SSL Spring WS Client Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 2 way SSL Spring WS Client

    I am currently trying to implement a 2 way SSL Spring WS Client. Can somebody provide inputs on this , preferably with an example ?

  • #2
    The example is in the manual. You just call the endpoint via HTTPS, e.g.

    Code:
    WebServiceTemplate wst =
            new WebServiceTemplate();
          StreamSource ss = new StreamSource(new StringReader("SOME MESSAGE"));
          StreamResult sr = new StreamResult(System.out);
          
          wst.sendSourceAndReceiveToResult("https://localhost:8443/service/", 
            ss, sr);
    Setting up 2-way SSL doesn't really have much in common with Spring (as long as the ACEGI is not there) and is quite beyond the scope of this forum. You just configure it like any other ssl connection.
    Last edited by lukasz.bielak; Sep 15th, 2009, 04:52 PM.

    Comment

    Working...
    X