danpickard
Posts: 0
Joined: Wed Feb 12, 2014 2:37 pm

Getting XML from rest service into List problem

I've setup a REST service which gets the XML format and looks something like this:

"

"

I then generate an automatic response in the editor.
I add the datasource using the data tab and join the teams parameter to a list, and the teamName to where it says text.

On opening the page I've set an event that invokes the service but when I open the page on the test feature nothing comes up.

I've tested out the list and event when using the EPSN API service demo which all works fine.

Is it something to do with the XML format? or the fact that the variable names start with @teamName, @teamId...etc

Any help would be appreciated!

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

Getting XML from rest service into List problem

Hello! Could you add code using < code tag?

danpickard
Posts: 0
Joined: Wed Feb 12, 2014 2:37 pm

Getting XML from rest service into List problem

code
<readResponse>
<leagues leagueName="La Liga" country="Spain" typeOfSport="Football" />
<leagues leagueName="Premier League" country="England" typeOfSport="Football" />
</readResponse>
/code

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

Getting XML from rest service into List problem

Hi Dan,

We reproduced the issue. Working on it.

danpickard
Posts: 0
Joined: Wed Feb 12, 2014 2:37 pm

Getting XML from rest service into List problem

I managed to sort this by using an appery.io proxy. I guess this somehow validated the XML response produced and was able to map the teamNames to the list items :)

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

Getting XML from rest service into List problem

Hello! Thank you for update!

Return to “Issues”