on 11-18-2015 6:20 AM
Hi Experts,
I am working on a synchronous scenario Proxy to Rest web service and I have been given a requirement to capture the exceptions
that will get thrown from the webservice . They have not shared a fault message type WSDL structure .
Is there any possible way to capture the exceptions thrown by the REST webservice and pass it back to the service consumer Proxy. A sample exception thrown by the webservice as below.
<ns3:error>
<errorText>Not Found</errorText>
</ns3:error>
Hi Nick
WSDL is only applicable to SOAP-based web service so you won't have any for REST services.
I haven't personally used SAP's REST adapter but I have used Advantco's. In my experience using that to consume REST services, I just define fault message types in ESR for both sender and receiver service interfaces, and link them via a fault mapping. I've mentioned it in the "Fault handling" section of my blog below. Maybe you can try that approach with SAP's REST adapter.
Another alternative you can try out is to implement some custom error handling as detailed in the blog below.
Rgds
Eng Swee
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.