cancel
Showing results for 
Search instead for 
Did you mean: 

Fault Message SOAP

Former Member
0 Kudos

Hello.

My design is next.

IN SAP XI/PI

  • Interface Object

1.- Create Fault Message Types. (MT_FAULT)

2.- Message Interfaces / add Fault Message Types (MT_FAULT) (Add Proxy and SOAP interfaces)

  • Mapping Object

3.- Message Mapping / Add Mapping (MT_FAULT mapping MT_FAULT) -> (MM_FAULT = mapping generate)

4.- Interfaces Mapping / Method Request,Response and Fault.

In Method Fault add (MM_FAULT).

IN SPROXY SAP ECC

5.- Execute transacction Sproxy and regenerate namespaces of interface.

6.- Debug interface and NOT MESSAGE ERROR.

But entry transaction SXI_MONITOR, in SAP ECC the XML is next.

(SOAP HEADER - ERROR)

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

  • <!-- Inbound Message

-->

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

<SAP:Category>XIAdapter</SAP:Category>

<SAP:Code area="PARSING">ADAPTER.SOAP_EXCEPTION</SAP:Code>

<SAP:P1 />

<SAP:P2 />

<SAP:P3 />

<SAP:P4 />

<SAP:AdditionalText>soap fault: Server was unable to read request. ---> There is an error in XML document (1, 526). ---> Instance validation error: 'CL' is not a valid value for SolicitudOrdenPagoMonedaOperacion.</SAP:AdditionalText>

<SAP:ApplicationFaultMessage namespace="" />

<SAP:Stack />

<SAP:Retry>M</SAP:Retry>

</SAP:Error>

bold The error "AdditionalText" want add in table Z.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Solve my problem

VijayKonam
Active Contributor
0 Kudos

What was your requirement? A fault message is sent from Proxy only in case of exceptions or errors.

VJ

Former Member
0 Kudos

Hello.

It happens that I have created all this and do not know how to obtain the values of error.

The only mistake I have used SXI_MONITOR.

But I need to take the error message and send to a table Z. The idea is that in the Proxy My SAP ECC returns an exception with the error.

So far not done.

VijayKonam
Active Contributor
0 Kudos

The fault message structure are useful only when you want to pass them to the sender system via XI. IF you want to push them to a Z table in ECC itself, you need not have to define them. In the proxy code, use Try Catch blocks to catch the exceptions and write them to Z tables.

VJ