Skip to Content
author's profile photo Former Member
Former Member

SOAP Fault message SAP Business Connector

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Feb 09, 2005 at 05:03 PM

    Harald,

    Have a look in the WmSample package.

    SAP BC can automatically build the fault message.

    Regards,

    Simon

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 09, 2005 at 05:38 PM

    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
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.