In my policy I have request, response and common error rule.
If it fails to process the request or if we get any fault response from the backend error rule is getting triggered and its giving error response (Common error error response in both the cases).
Now I need to give different error response if request process fails and if response contains any fault exception.
Can you please help how can i handle this.
Thanks in advance.
This topic has been locked.
1 reply Latest Post - 2012-11-07T10:44:43Z by kenhygh
Pinned topic How to send Different error response
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2012-11-07T10:44:43Z at 2012-11-07T10:44:43Z by kenhygh
kenhygh 120000PD1B764 PostsACCEPTED ANSWER
Re: How to send Different error response2012-11-07T10:44:43Z in response to MFXX_Srinivasa_ReddyYou can use DP:responding() to figure out if the error happened during the request or the response. Your response rule will probably have to determine if a fault is returned by the service provider.