on 07-16-2016 6:55 AM
Hi All,
We have a scenario IDOC to Rest service(Async)... Receiver system sends the response with status 200, this 200 status can have successful information + can have Error information like Field1 is missing etc... User doens not exist etc..
I tried using the Rest receiver adapter provided customer Error Handling, but never i am able to capture the Missing field information from Status 200...
Question here is Can we catch the Responses from Status 200 for Rest service call? If not do we need to use other ways like async --Sync? but this may involve BPM here..
Please suggest with your valuable inputs..
Thanks and Regards,
Sridhar
Hi Sridhar,
I'd say that is a defect in the receiving system, the HTTP spec is pretty clear about that:
The request has succeeded. The information returned with the response is dependent on the method used in the request, for example:
So the receiving system doesn't follow the HTTP protocol and the REST adapter can't distinguish a successful call from an unsuccessful one.
All status codes with 2xx signal a successful operation. The receiving system should return an error code 4xx which signals an error by the client as a missing mandatory field would be. A good choice would for example be: 400 Bad Request
More info here: HTTP/1.1: Status Code Definitions
Best regards,
Frank
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Normally you can use Sync-Async bride to get the response message if the adapter is SOAP. But i don't know Sync-async bridge works with REST adapter, you should check. if supports it's easier than using BPM.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.