Rituraj Earngo
Posts: 0
Joined: Sun Sep 22, 2013 8:55 am

Error invoking REST service request body

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

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Error invoking REST service request body

Hello!

Tell more details to reproduce Service. Please post screen shots of Service settings, Request tab and mapping.

Rituraj Earngo
Posts: 0
Joined: Sun Sep 22, 2013 8:55 am

Error invoking REST service request body

hi Alena, Please note that the service works when tested independently. When invoked from the screen, the json objects are not getting passed.

Image

Image

Image

Rituraj Earngo
Posts: 0
Joined: Sun Sep 22, 2013 8:55 am

Error invoking REST service request body

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"

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Error invoking REST service request body

Please send Service URL, it's not legible in the screen shot.

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Error invoking REST service request body

Thanks. We'll test and get back asap.

Rituraj Earngo
Posts: 0
Joined: Sun Sep 22, 2013 8:55 am

Error invoking REST service request body

not sure why the last part of the url is getting truncated.
it is ....8081/validatelogin

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Error invoking REST service request body

There are some errors with data type transformation. Try to use xml Data type instead of json.

Return to “Issues”