Christopher Pradeep John Britto (CHRISTOPHER-1)
standard chartered bank
standard chartered bank
CHRISTOPHER-1 Member since 2012 3 posts
standard chartered bank
Posted: April 25, 2017
Last activity: May 5, 2017
Posted: 25 Apr 2017 6:21 EDT
Last activity: 5 May 2017 8:33 EDT

Soap Service with Custom Error

Hi Team,

I created a SOAP service with basic authentication. let we take the scenario

Ex .If authentication failure happen we can define as Fault tab Security Error to set some constant value " Service Failed due to bad Authentication " . So we get the below response.

<soap:Envelope xmlns:soap="" xmlns:soapenc="" xmlns:xsi="" xmlns:xsd="">
<faultstring>Service Failed due to bad Authentication</faultstring>

Instead (<soap:Fault>) of above response how to set the customized Error as below . ( Note : If authentication fails, service activity should not be invoked )

Customized Error Response FYI :

<soap:Envelope xmlns:soap="" xmlns:soapenc="" xmlns:xsi="" xmlns:xsd="">
<Error Details>Service Failed due to bad Authentication</Error Details>

Data Integration
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.