Thursday, October 29, 2009

Using WSSE with in a Java webservice client

Some webservice requires the client to add WS-Security to the SOAP header for authentication purposes.

E.g.


w900049abc123yg3mGu1yG4MvYG5L6PZIJw==2009-10-26T16:23:36.390Z
12


AA
BB
crmppoc
VLB
A
2008-10-24T11:47:39.105Z


12



33
CDG
2009-11-27T23:00:00
2009-10-12T23:00:00
BOS





Here's one way of doing it by using a message handler:

Using a Message Handler to alter the SOAP Header in a Web Service Client