Question

50
Views
khosro awhadi (Royal0777)
DEVK

DEVK
DE
Royal0777 Member since 2017 1 post
DEVK
Posted: April 12, 2021
Last activity: April 19, 2021
Posted: 12 Apr 2021 12:13 EDT
Last activity: 19 Apr 2021 5:16 EDT

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> 

 

 

Pega Platform 8.4.1 Security System Architect