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

Mapping a Web Service Fault Message to RFC Exception

Hi All,

I've been trying to map the Fault message returned by a web service to the calling RFC Exception.

Want I want, is to see the faultstring returned by the web service (see message below) to map to the RFC exception Text field. I've mapped the exception that I want to raise to one that is contained in the enumeration list for the RFC exception Name field, but it seems that the faultcode returned by the web service is always mapped to SYSTEM_ERROR.

Am I correct in reasoning that the faultcode below is picked up by the XI engine and mapped to SYSTEM_ERROR by default, or am I missing something in the mapping? The web service is setup using JAXRPC and we're using XI 2.0.

  • begin xml

<?xml version="1.0" encoding="UTF-8"?>

<soapenv:Envelope xmlns:soapenv=...>

<soapenv:Body>

<soapenv:Fault>

<faultcode xmlns="">Server.generalException</faultcode>

<faultstring xmlns=""><![CDATA[java.lang.Exception: Planned date must be at least 1 day from today.]]></faultstring>

<detail xmlns=""/>

</soapenv:Fault>

</soapenv:Body>

</soapenv:Envelope>

  • end

Regards,

Martin

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 26, 2005 at 12:44 PM

    I've a similar problem. I want to read the fault message and write it to a message interface (inside a business process).

    How do I do it?

    I'm trying to map these two messages, but the mapping interface don't let me put a fault message in a source field.

    Thanks for any help.

    Alessandro.

    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.