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):

Code: Select all

 31 
 .... 

Example (not working):

Code: Select all

 Gold Belt Byway Tours RSS 
 .... 

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&#46;0" encoding="ISO-8859-15"?>
<root><points_of_interest><poi><nid>31<&#47;nid><title>
&#46;&#46;&#46;
/pre

NOT working:
pre
<?xml version="1&#46;0" encoding="ISO-8859-15" ?>
<rss version="2&#46;0" xml:base="http:&#47;&#47;www&#46;goldbeltbyway&#46;com&#47;" xmlns:atom="http:&#47;&#47;www&#46;w3&#46;org&#47;2005&#47;Atom" xmlns:dc="http:&#47;&#47;purl&#46;org&#47;dc&#47;elements&#47;1&#46;1&#47;">
<channel>
<title>Gold Belt Byway Tours RSS<&#47;title>
<link>http:&#47;&#47;www&#46;goldbeltbyway&#46;com&#47;<&#47;link>
<atom:link rel="self" href="http:&#47;&#47;www&#46;goldbeltbyway&#46;com&#47;rss_tours" &#47;>
<pubDate>Tue, 27 Aug 2013 11:08:15 -0600<&#47;pubDate>
<lastBuildDate>Tue, 27 Aug 2013 14:21:30 -0600<&#47;lastBuildDate>
<item>
&#46;&#46;&#46;&#46;
/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
Image

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&#46;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.