[jboss-user] [JBossWS] - Re: How can I change mustUnderstand attribute of wsse:securi
mariovvl
do-not-reply at jboss.com
Sat Jan 12 22:53:29 EST 2008
I was able to change the "mustUnderstand" attribute of the wsse:Security element by using the following code:
| public class SpimTestingOutboundSOAPHandler
| extends WSSecurityHandlerOutbound {
| ...
| public boolean handleRequest(MessageContext msgContext) {
| if (debug) logger.debug("handleRequest() entered.");
|
| SOAPMessage soapMessage = ((SOAPMessageContext)msgContext).getMessage();
| Element sel = Util.findElement(soapMessage.getSOAPPart().getDocumentElement(), new QName(org.jboss.ws.wsse.Constants.WSSE_NS, "Security"));
| sel.setAttributeNS(Constants.NS_SOAP11_ENV, Constants.PREFIX_ENV + ":" + Constants.SOAP11_ATTR_MUST_UNDERSTAND, "0");
|
| if (debug) logger.debug("handleRequest() exited.");
| return true;
| }
| ...
| }
|
Problem solved!
-Mario
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119393#4119393
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119393
More information about the jboss-user
mailing list