Rest resource asset problem


(Darren Johnston) #1

Hi,

I have a REST resource asset setup, which when previewed displays xml markup.

(the data is coming from a soap webservice)

<soap:Envelope><soap:Body><GetGroupedCurrentStatsResponse>
<GetGroupedCurrentStatsResult>
<GroupStat><groupId>24</groupId>
<groupName>University Cafeteria Learning Hub NHM</groupName>
<offCount>0</offCount>
<availableCount>0</availableCount> etc etc..

however I cannot seem to make this content usable through any other matrix asset.

 I am trying to use an asset listing with type formats with xml data source, rest response, JSON data source etc but its returning no results?

 

JSON data source asset on its own returns the data in 'raw source data'  but brings up a parse error.

 

any ideas?


(Aleks Bochniak) #2

Darren you don't use a rest resource that way - it wont' create shadow assets for you.

 

Are you using a Rest Resource asset or Rest Resource JavaScript asset?


(Darren Johnston) #3

Hi Aleks,

its a REST Resource asset, have never had much luck with them. Ive also setup up the REST resource javascript asset with the twitter api example but no luck with that either.