paul durrant
Posts: 0
Joined: Sun Feb 09, 2014 3:41 pm

no results from REST service in web mobile pages

i have an external REST service in my app which in the data test screen gets the correct response, when i down load the app everything works fine, but in the online debug/test screen and the mobile web version no data gets displayed. i've tries creating a proxy but still the same result

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

no results from REST service in web mobile pages

Hi Paul,

Do you pass the same parameters? Are there any console errors?

paul durrant
Posts: 0
Joined: Sun Feb 09, 2014 3:41 pm

no results from REST service in web mobile pages

taking a second look, one of the parameters is a date and it looks like the date is being passed differently between the app version and the web version, is there a way to detect what platform it is running on

paul durrant
Posts: 0
Joined: Sun Feb 09, 2014 3:41 pm

no results from REST service in web mobile pages

digging a little further i see this

Origin 'http://appery.io' is therefore not allowed access.

paul durrant
Posts: 0
Joined: Sun Feb 09, 2014 3:41 pm

no results from REST service in web mobile pages

resolved

added the following to web.config of the WCF service

system.webServer
httpProtocol
customHeaders
add name="Access-Control-Allow-Origin" value="*" /
/customHeaders
/httpProtocol
/system.webServer

with tags of course

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

no results from REST service in web mobile pages

Paul,

Thank you for the update!

Return to “Issues”