How to set mustUnderstand attribute in Security element of the SOAP header?

Brent Putman putmanb at georgetown.edu
Mon Mar 26 22:08:52 BST 2012


Yes, that's the best way.  The wsse:Security element is an
AttributeExtensibleXMLObject, so what that helper method is actually
doing is mutating the wildcard attibute AttributeMap exposed via
getUnknownAttributes().



On 3/26/12 3:38 PM, Gina Choi wrote:
> I was able to set mustUnderstand attribute using following code.
> 
> 		boolean mustUnderstand = true;
> 		SOAPHelper.addSOAP11MustUnderstandAttribute(security,
> mustUnderstand);
> Thanks.
> 
> Gina
> 
> -----Original Message-----
> From: Gina Choi 
> Sent: Monday, March 26, 2012 12:08 PM
> To: dev at shibboleth.net; 'putmanb at georgetown.edu'
> Subject: How to set mustUnderstand attribute in Security element of the SOAP
> header?
> 
> Hi,
> 
> I try to set mustUnderstand attribute in Security element of the soap header.
> Somehow, I couldn't find related API from open-ws library. Perhaps, this
> attribute is set in different way?
> 
> 
> <S11:Envelope>
> 	<S11:Header>
> 	<wsse:Security S11:actor="..." S11:mustUnderstand="...">
> 	</wsse:Security>
> 	</S11:Header>
> </S11:Envelope>
> 
> Thanks.
> 
> Gina


More information about the dev mailing list