cancel
Showing results for 
Search instead for 
Did you mean: 

Handle SOAP Fault as Application exception and with fault string

Former Member
0 Kudos

BPM send data to sync SOAP interface. In respose I get SOAP:Fault.


<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<soapenv:Body>
		<soapenv:Fault>
			<faultcode>soapenv:Server.userException</faultcode>
			<faultstring>javax.xml.soap.SOAPException: test error message</faultstring>
			<detail>
				<ns1:hostname xmlns:ns1="http://xml.apache.org/service/">some_host</ns1:hostname>
			</detail>
		</soapenv:Fault>
	</soapenv:Body>
</soapenv:Envelope>

If I check "Do not use soap envelope" I recieve fault string and code in error block of message, but BPM identify that message as System exception and I don't hane Payload.

If i do not check "Do not use soap envelope" BPM identify message as Application exception and I have message -Payload-, but I don't have fault string and code.

How get fault message with Payload filled by fault string, code and content of tag <detail>. And BPM identify that message as Application exception ?

P.S. Blog "Handling Web Service SOAP Fault Responses in SAP NetWeaver XI" don't help.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Have you resolved this issue. I have same problem. Please share the resolution.

Former Member
0 Kudos

No. Problem unsolved. I ask SAP consalt and answer was a sad. It is imposible. You must ask developer of reciever system to fill tag DETAILS with necessary data. Get soapfault from dynamic parameters or some one other way are NOT planned in future.

You may create developer request. I do not know how to do it. If you tell me I create by my self.

SOAP fault is real problem as I see.

Former Member
0 Kudos

Did you check this blog?

/people/jin.shin/blog/2007/05/21/handling-web-service-soap-fault-responses-in-sap-netweaver-xi

Former Member
0 Kudos

Did you read P.S.?

May you explain how to solve my problem using that blog.