Page 2 of 3

Error invoking REST service request body

Posted: Sun Sep 22, 2013 2:47 pm
by Rituraj Earngo

hi,

Wont using xml create additional overhead on the service?

What type of errors are these? and can they be fixed anytime soon?

regards


Error invoking REST service request body

Posted: Sun Sep 22, 2013 3:19 pm
by Illya Stepanov

Hello -- there is also another thing you can try - turning on the "Use Appery.io Proxy".


Error invoking REST service request body

Posted: Mon Sep 23, 2013 2:50 am
by Rituraj Earngo

Hi, XML data type and proxy are NOT solving the problem. Please provide alternate solution asap. It is holding us up. Thanks.


Error invoking REST service request body

Posted: Mon Sep 23, 2013 2:50 am
by Rituraj Earngo

Hi, XML data type and proxy are NOT solving the problem. Please provide alternate solution asap. It is holding us up. Thanks.


Error invoking REST service request body

Posted: Mon Sep 23, 2013 2:59 am
by Balajee Shrikanth6182102

Hi, I am working with Rituraj on this. The problem is that when we invoke the test service in the service definition, the json values are sent to the rest service (http://54.214.254.15:8081/validatelogin) and a valid response json is received successfully. When we map the same from UI components and invoke the service from UI, the content is not having the json formed. Here two text fields are mapped to the json content. When the request is received on the service side, the content just has /validatelogin string and not the json content. Looks like somehow the url has got into the content.


Error invoking REST service request body

Posted: Mon Sep 23, 2013 3:10 am
by Balajee Shrikanth6182102

Missed out a point to add.. The service is POST service. the behaviour inside appery UI seems more like GET rather than POST while testing the service from service definition test option works correctly as POST.


Error invoking REST service request body

Posted: Mon Sep 23, 2013 3:44 am
by maxkatz

If you define the service as POST, when you invoke the service from the page it will be a POST. Did you check what you get as response in Network tab (Chrome Dev. Tools or Firebug)?


Error invoking REST service request body

Posted: Mon Sep 23, 2013 3:57 am
by Balajee Shrikanth6182102

when i test the service from service definition, I can see the post object in Firebug in Net tab. When I do the same from the UI screen - I dont see any post tab and not able to see the POSTcontent.


Error invoking REST service request body

Posted: Mon Sep 23, 2013 3:59 am
by Balajee Shrikanth6182102

screenshots of firebug - POST is seen when testing the service and not seen when running from UI
Image Image


Error invoking REST service request body

Posted: Mon Sep 23, 2013 3:59 am
by maxkatz

Did you try with the proxy on?

If the service is invoked (with error or not), it will have an entry in Network tab. You can also check the Console view for any errors.