I'm not clear about the location of the mustUnderstand attribute. Is it only allowed in the SOAP header? I think Ivan's notes say that it can also be in the envelope and body elements ...
Regards,
Dan
Dan Drillich wrote: I think Ivan's notes say that it can also be in the envelope and body elements ...
The mustUnderstande attribute is part of the same namespace as the Envelope, Body and Header elements of the SOAP schema.
Ivan Krizsan wrote:This does not say anything about where in an XML document the attribute may appear - that has to be determined looking at the XML schema in question.
removed default value from mustUnderstand attribute declaration
Dan Drillich wrote:
Looking at Schema for the SOAP/1.1 envelope (couldn't find the 1.2 version) that defines mustUnderstand as a global attribute.
A SOAP sender generating a SOAP message SHOULD use the mustUnderstand attribute information item only on SOAP header blocks. A SOAP receiver MUST ignore this attribute information item if it appears on descendants of a SOAP header block or on a SOAP body child element information item (or its descendents).
The SOAP Header attributes defined in this section determine how a recipient of a SOAP message should process the message as described in section 2. A SOAP application generating a SOAP message SHOULD only use the SOAP Header attributes on immediate child elements of the SOAP Header element. The recipient of a SOAP message MUST ignore all SOAP Header attributes that are not applied to an immediate child element of the SOAP Header element.
Dan Drillich wrote:
So, why doesn't the the schema itself define mustUnderstand as an attribute of the Header element?