Page 1 of 3
Error invoking REST service request body
Posted: Sun Sep 22, 2013 8:55 am
by Rituraj Earngo
hi, I am trying to invoke an external rest service, which requires objects to be parsed in json format. I have defined the service, when I test it independently, the service works. When I link the same service to a mobile page, the server that receives the request, does not receives the json content, even though the fields have been mapped from the mobile page to the rest service definition inside appery.
Screen name - testlogin
Service name - validatelogin
regards
Error invoking REST service request body
Posted: Sun Sep 22, 2013 9:01 am
by Alena Prykhodko
Hello!
Tell more details to reproduce Service. Please post screen shots of Service settings, Request tab and mapping.
Error invoking REST service request body
Posted: Sun Sep 22, 2013 12:37 pm
by Rituraj Earngo
hi Alena, Please note that the service works when tested independently. When invoked from the screen, the json objects are not getting passed.
Error invoking REST service request body
Posted: Sun Sep 22, 2013 12:51 pm
by Rituraj Earngo
Its a simple login service. to reproduce the service:
Response will be "success" for the following values:
user_emailid - balajee
user_password - 115555
for any other values, response shall be "error"
Error invoking REST service request body
Posted: Sun Sep 22, 2013 12:56 pm
by Alena Prykhodko
Please send Service URL, it's not legible in the screen shot.
Error invoking REST service request body
Posted: Sun Sep 22, 2013 12:58 pm
by Rituraj Earngo
Error invoking REST service request body
Posted: Sun Sep 22, 2013 12:58 pm
by Rituraj Earngo
Error invoking REST service request body
Posted: Sun Sep 22, 2013 12:59 pm
by Alena Prykhodko
Thanks. We'll test and get back asap.
Error invoking REST service request body
Posted: Sun Sep 22, 2013 12:59 pm
by Rituraj Earngo
not sure why the last part of the url is getting truncated.
it is ....8081/validatelogin
Error invoking REST service request body
Posted: Sun Sep 22, 2013 2:02 pm
by Alena Prykhodko
There are some errors with data type transformation. Try to use xml Data type instead of json.