cancel
Showing results for 
Search instead for 
Did you mean: 

element in the header - mustunderstand

Former Member
0 Kudos

hello

in the header of every response message that I have error in, I recieve:

SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">

I would like to know if it is possible to not recieve in the answer this element 'mustUnderstand="1"', or if I can change it to recieve '0' or maybe empty string.

my version of XI is 3.0.

thanks for your help

Kfir

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

A must understand value of '1' is a Fault Code in an SOAP message.

From my point of view, you cannot and should not supress it.

The processing of the SOAP depends on the Faultcode.

The appliacation should throw an error when a FaultCode appears.

if you want more info on this check out

LINK: [http://www.w3.org/TR/2000/NOTE-SOAP-20000508/#_Toc478383507]

Regards,

Abhishek

Edited by: Abhishek Vinayaka on Feb 28, 2008 11:22 PM

Former Member
0 Kudos

thanks for the information.

the link is great, and very helpful.

one last Q on that issue, now that it is mandatory,

is it possible to force this element to be '0' for example, or it is returned by defalt for a SOAP answer?

(1 if it is a fault message, and 0 if the message is ok)

Former Member
0 Kudos

one more Q, could it be change if the XI will be upgraded to V7 or else?

Answers (1)

Answers (1)

Former Member
0 Kudos

hi,

The SOAP mustUnderstand attribute can be used to indicate whether a header entry is mandatory or optional for the recipient to process.

If you add "mustUnderstand="1" to a child element of the Header element it indicates that the receiver processing the Header must recognize the element. If the receiver does not recognize the element it must fail when processing the Header.

Only other value is true.

The header entry is mandatory for your recevier.

Make is Optional.

Reward points if useful

Regards

Abhishek

Former Member
0 Kudos

didnt really under stand every thing that you said.

is it a default value for the reciever?

can it be changed, and if so how?

I am not writing it as a child element, and more over, my that what cuase the reciever the problem.

I would like to know, how can I send the request and get the response with out using this element, or if it is possible to ignore it. I wouldnt want the user to see it or that I will recieve it back in the response.

please, if possible, use an example of how to solve it, becuase I am a bit new, and not familiar with every thing

Kfir