POST REST Call in VBCS
Summary
POST REST Call in VBCSContent
Please comment on this issue, what is the solution for it..
1. I registered as Service Connection for creating webApp - When we do Test, it is working and returned the response
2. I am creating a form, caputring all form feilds
3. With JS function call, I am capturing all fields and assigning it a var like
ItemVal = document.getelementbyID; var result = { "Item": ItemVal }; console prints variables
4. Passing the variable " result" to body of webservice.
5. REST call fails with 502 error - I tried with JSON.stringfy - still having issue
6. I get an error like(in developer tools) - Unexpected token < in JSON at position 0
Tagged:
0