Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

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

psaxena
1-Visitor

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.

2 REPLIES 2
rupadhyay
12-Amethyst
(To:psaxena)

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) 

Announcements


Top Tags