Helen
Posts: 0
Joined: Wed Aug 28, 2013 8:35 pm

Unsupported REST service RSS format?

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

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

Unsupported REST service RSS format?

Hi Helen,

Could you please place code examples in < pre tag?

Helen
Posts: 0
Joined: Wed Aug 28, 2013 8:35 pm

Unsupported REST service RSS format?

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

Helen
Posts: 0
Joined: Wed Aug 28, 2013 8:35 pm

Unsupported REST service RSS format?

My app is shared, name is Gold Belt Tour, test page is DataSynch

problematic REST service is 'RSS tours'

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Unsupported REST service RSS format?

Hello,

We'll test and let you know..

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Unsupported REST service RSS format?

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.

Helen
Posts: 0
Joined: Wed Aug 28, 2013 8:35 pm

Unsupported REST service RSS format?

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.

Return to “Issues”