Results 1 to 2 of 2

Thread: 2 way SSL Spring WS Client

Hybrid View

  1. #1
    Join Date
    Jul 2009
    Posts
    1

    Default 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. #2

    Default

    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 at 04:52 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •