Page 1 of 1
Unsupported REST service RSS format?
Posted: Tue Sep 10, 2013 8:41 pm
by Helen
Hello,
I'm working with 3 REST services in my app which I invoke then populate local sqlite database. All 3 work in iOS, however Android cannot load one of them.
Its format differs from the other two.
Example (working):
Example (not working):
I've since changed encoding to both be 'ISO-8859-15' and no change.
Any guidelines?
Thanks!
Helen
Unsupported REST service RSS format?
Posted: Tue Sep 10, 2013 8:58 pm
by Kateryna Grynko
Hi Helen,
Could you please place code examples in < pre tag?
Unsupported REST service RSS format?
Posted: Tue Sep 10, 2013 9:02 pm
by Helen
Oops, yes.
Working:
pre
<?xml version="1.0" encoding="ISO-8859-15"?>
<root><points_of_interest><poi><nid>31</nid><title>
...
/pre
NOT working:
pre
<?xml version="1.0" encoding="ISO-8859-15" ?>
<rss version="2.0" xml:base="http://www.goldbeltbyway.com/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Gold Belt Byway Tours RSS</title>
<link>http://www.goldbeltbyway.com/</link>
<atom:link rel="self" href="http://www.goldbeltbyway.com/rss_tours" />
<pubDate>Tue, 27 Aug 2013 11:08:15 -0600</pubDate>
<lastBuildDate>Tue, 27 Aug 2013 14:21:30 -0600</lastBuildDate>
<item>
....
/pre
Unsupported REST service RSS format?
Posted: Tue Sep 10, 2013 11:10 pm
by Helen
My app is shared, name is Gold Belt Tour, test page is DataSynch
problematic REST service is 'RSS tours'
Unsupported REST service RSS format?
Posted: Wed Sep 11, 2013 12:05 am
by Igor
Hello,
We'll test and let you know..
Unsupported REST service RSS format?
Posted: Wed Sep 11, 2013 2:49 pm
by Maryna Brodina
Hello!
1) To see error details of REST service ds_synch_feed_tours_poi you have to add the following code on "Error" event:
codealert('NO, ds_synch_rss_tours ERROR: ' + textStatus + errorThrown);/code
2) If you run app on Android you'll see error as on screenshot
It seems to be there is an error on your server that's why instead of XML text gets to the app
codeFatal error: Call to undefined function url() in C:\itenpub\wwwroot\goldbeltbyway\sites\all\modules\mobile_tools\mobile_tools.module on line 531/code
So there is a problem on your server.
Unsupported REST service RSS format?
Posted: Wed Sep 11, 2013 3:45 pm
by Helen
Thank you Marina! I'd no idea how to call those error objects, very helpful.
It's strange how only when accessed via Android device do I get that error. but like you said, it's on my side.
Thanks for pointing me in right direction.