Page 1 of 3

REST service not working

Posted: Tue Jul 09, 2013 12:39 am
by Balajee Shrikanth6021459

I invoke a rest service which works in test but doesnt work when run in the app. No error in firebug console. I have tried with appery proxy in test mode as well as exported and tested


REST service not working

Posted: Tue Jul 09, 2013 12:46 am
by Alena Prykhodko

Please send us screenshots of the Mapping.


REST service not working

Posted: Tue Jul 09, 2013 1:09 am
by Balajee Shrikanth6021459

Here are the screenshots Image Image Image Image Image


REST service not working

Posted: Tue Jul 09, 2013 1:10 am
by Balajee Shrikanth6021459

If u see the screenshot on invocation of Login, the new screen should be shown. However the REST service has issues (not seen in firebug console) and I keep seeing spinning icon. If I remove the REST service, the new screen loads fine.


REST service not working

Posted: Tue Jul 09, 2013 1:18 am
by Balajee Shrikanth6021459

mapping of response screenshot Image


REST service not working

Posted: Tue Jul 09, 2013 2:48 am
by Alena Prykhodko

I'll test and let you know.


REST service not working

Posted: Tue Jul 09, 2013 1:10 pm
by Anton Artyukh5836028

Hello,

The thing is appery request tester works not the same as service in your app.

Please check Use Appery.io Proxy on Settings tab.

For understanding what happened here, you need look at Net tab in firebug while requests are running. You try make cross-domain request, which not allowed for many services.


REST service not working

Posted: Tue Jul 09, 2013 4:57 pm
by Maryna Brodina

Hello! Sorry for delay. Everything looks correct on screenshots. So please check if you changed anything on Source tab. If so try to delete edited files and do "Undo".


REST service not working

Posted: Tue Jul 09, 2013 5:20 pm
by Harold Gottschalk

What I find interesting is that you have the proxy turned off in your settings and it is creating code that says to use the proxy. I have to wonder why that is?


REST service not working

Posted: Tue Jul 09, 2013 6:12 pm
by Maryna Brodina

Could you clarify where do you see that "it is creating code that says to use the proxy"? Do you mean Source tab? Have you changed anything on Source tab in file you're referring to? If so then any changes you do in editor won't be applied to that file. If you didn't change anything in source file be sure you saved the project before check file (it's needed to refresh the code).