Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
5 replies
Subscribers
6 subscribers
Views
2081 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Integrations
Hi team, I'm calling a REST webservice using jsontodictionary plug-in.
phanibabuk
over 11 years ago
Hi team,
I'm calling a REST webservice using jsontodictionary plug-in.
jsontodictionary(
httppost(
endpoint: "EndPoint URL"
))
I'm able to get the response from the service when the service is available and also able to handle other exception scenarios. All this works when the service is up and running.
I want to handle a scenario where the service is not up(may be server down).
In this case, the request itself doesn't reach the server.
How can I handle this scenario?
If I use webservicequery, it has a property httpErrorOccured. But in case of jsondictionary, how can I handle this?
Is there any property in jsondictionary that helps me or any other way?
Please provide your inputs!!!...
OriginalPostID-114218
OriginalPostID-114218
Discussion posts and replies are publicly visible
Parents
0
Stefan Helzle
A Score Level 3
over 11 years ago
You could put the result of the HTTP post into a local variable and first check whether it contains some valid json or error messages. Then build the dictionary or return some error message or an empty dictionary.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Stefan Helzle
A Score Level 3
over 11 years ago
You could put the result of the HTTP post into a local variable and first check whether it contains some valid json or error messages. Then build the dictionary or return some error message or an empty dictionary.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data