spring - Namespace for wsse:security -
my problem trying call web service has wss4jsecurityinterceptor username password authentication.
the request generated :
<wsse:security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" soap-env:mustunderstand="1">
this not working when change namespace i.e. xmlns:wsse
<wsse:security xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/07/secext" soap-env:mustunderstand="1">
it works fine.
i want know how can change namespace generated tag code
you extends endpointinterceptoradapter , override method handleresponse this:
@override public boolean handleresponse(messagecontext messagecontext_, object endpoint_) { webservicemessage _webservicemessage = messagecontext_.getresponse(); soapmessage _soapmessage = (soapmessage) _webservicemessage; if (_soapmessage != null) { soapenvelope _soapenvelope = _soapmessage.getenvelope(); if (_soapenvelope != null) { soapheader _soapheader =_soapenvelope.getheader(); // modify soapheader casting domsource , manipulate nodes
Comments
Post a Comment