SOAP Authentication service custom failure message
Hello Team,
is there any way to change the custom failure message of Authentication service? i want to set another message instead of
Failed: Service requestor could not be authenticated.
i am using authentication Activity on the Service Package to authenticate the User and Password, if the authentication credentials are not matched, i get this reponse
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>failed: Service requestor could not be authenticated</faultstring>
</soap:Fault>
</soap:Body>
</soap:Envelope>
i would like to customise the faultstring and show some other text. for example
Hello Team,
is there any way to change the custom failure message of Authentication service? i want to set another message instead of
Failed: Service requestor could not be authenticated.
i am using authentication Activity on the Service Package to authenticate the User and Password, if the authentication credentials are not matched, i get this reponse
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>failed: Service requestor could not be authenticated</faultstring>
</soap:Fault>
</soap:Body>
</soap:Envelope>
i would like to customise the faultstring and show some other text. for example
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>failed: you are not allowed to access to this service </faultstring>
</soap:Fault>
</soap:Body>
</soap:Envelope>