Hi all,
Currently I'm working on a project using SAP BC and SOAP messaging. My problem lies with the definition of a SOAP Fault message.
I've defined a record with the faultcode, faultmessage parameters etc.
This record is converted using recordToDocument followed by stringToDocument. The result is a node which I use as input parameter for addBodyEntry.
This node looks like this (I've omitted the faultcode etc. and the schema location in this example):
http://schemas.xmlsoap.org/soap/envelope/
...
</SOAP-ENV:Fault>
Till thus far no problem however if such Fault message is returned after flow service soapHTTP is executed the result is 0 but should be 1 after all a fault message is returned.
This indicated that the Fault element is not recognized by the SOAP processor most likely because the namespace SOAP-ENV is defined again in the Fault element.
Can you help me with this problem?
I think losing the namespace declaration SOAP-ENV in the Fault element will solve the problem but removing the namespace declaration in the documentToRecord flow is no option since this results in an other error message.
Any other solution will do as well.
With best regards,
Harald Kastelijn
Cheers Scott.
Found the answer. Just fail the flow using EXIT signaling FAILURE.
The only drawback is that the error message is somewhere in the detail part of the Fault message. Rather had it in the faulstring part.
Thanks for your help!
Best Regards, Harald
Add a comment