what to do when we have to post and get json at the same time i.e we post some data and based on that we get the the json but both at one service call
‎Dec 07, 2016
01:34 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
‎Dec 07, 2016
01:34 AM
what to do when we have to post and get json at the same time i.e we post some data and based on that we get the the json but both at one service call
for example we want to post json which contains an ID and based on that id we want to get the json which contains all details of that id.
Labels:
- Labels:
-
Connectivity
2 REPLIES 2
‎Dec 07, 2016
02:00 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
‎Dec 07, 2016
02:00 AM
Priyanshi Saxena​ , I would suggest reading the following article .
Is HTTP POST request allowed to send back a response body? - Stack Overflow
‎Dec 08, 2016
04:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
‎Dec 08, 2016
04:41 AM
Hi Ravi,
I tried using postJson for the same, which would post some content to the mentioned url and the result would receive a json. when I receive the result in the form of json array it is giving me an error as Undefined variable length(I used result.array.length function to loop through)