Skip to Content
0
Former Member
Jul 25, 2017 at 07:39 AM

Fault message in SOAP outbound Sync when response is in HTML

701 Views

Hi Guys,

My Scenario is Synchronous outbound. We are sending request from ECC and getting response. We are getting authorization error for the users who dont have access. I have only 1 xsd which I have used for request and response. I dont have any error structure from Third party. So I made a below Fault message and imported it as a external definition.

The HTML response which I get in SOAP UI

<html>
<body>
<h3>[HTPRP0102]Authorisation failed!
<br>dcx.eva.advanced.urlcall.exception.AuthorisationFailedException occurred!
</h3>
<br>Command is /process_claim
</body>
</html>

The XSD Which I have made for fault message which I use in External definition is

http://www.w3.org/2001/XMLSchema">;

The system error which I get in PI is

Transmitting the message using connection SOAP_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: SOAP: Response message contains an errorXIAdapter/HTTP/ADAPTER.HTTP_EXCEPTION - HTTP 402 [HTPRP0102]Authorisation failed

My motive is to send the authorization error in Payload in ECC. I am not sure how to proceed here.