ScottIncz
Posts: 0
Joined: Sat May 26, 2012 9:03 am

Mapping REST service (XML) response to various text labels

Hi
I am querying a device that returns this xml

I have setup a rest xml service that returns this in tiggzi when i populate the response.

parameters
@lastmodified
parameter
@id
@value

I'm not sure how to pick out the individual lines and map them to various labels.

Any advice on getting for example some of the 'values' for arbitery 'id's to labels on one of the mobile app's screens?

Thanks

ScottIncz
Posts: 0
Joined: Sat May 26, 2012 9:03 am

Mapping REST service (XML) response to various text labels

The XML has been removed in the above post. I will add it as an image. Image

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Mapping REST service (XML) response to various text labels

You would map the fields in standard way... select the response parameter, then connect it (by dragging) to a label on a page. Is that the question..?

If you can post a screen shot of the mapping editor, with the connections you want to make, that would help.

ScottIncz
Posts: 0
Joined: Sat May 26, 2012 9:03 am

Mapping REST service (XML) response to various text labels

The question is how to map the response parameters @id and @value to six different labels. How do you map from those two to six different labels. That is not one to one mapping with the arrows.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Mapping REST service (XML) response to various text labels

You can map one response parameter to multiple components:
http://help.tiggzi.com/documentation/...

ScottIncz
Posts: 0
Joined: Sat May 26, 2012 9:03 am

Mapping REST service (XML) response to various text labels

OK! How do you select which xml id/value pair goes to which text label?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Mapping REST service (XML) response to various text labels

You need to map one id/value pair to multiple text labels..?

ScottIncz
Posts: 0
Joined: Sat May 26, 2012 9:03 am

Mapping REST service (XML) response to various text labels

If you look at the xml above you will see that the has several different id and values. When you test the connection it succeds in pulling back the xml above, but when you click the 'populate response structure' button, it fills it in as

parameters
|@lastmodified
..parameter
..|@id
..|@value
(ignore the .. and | above they are there to illustrate how the response structure looks on screen when populated by tiggzi.
So... How do you get a different response strucutre or use that one to map the various different lines from the xml to different text labels.
I hope that is clearer.
thanks.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Mapping REST service (XML) response to various text labels

I think the structure is correct because you get an array of id/value. You would like to map the first id (system.internet.dhcp.ip) to say label A and second id (system.internet.dhcp.sm) to say label B?

ScottIncz
Posts: 0
Joined: Sat May 26, 2012 9:03 am

Mapping REST service (XML) response to various text labels

Correct, but map the values to labels rather than IDs. So in the case of the first in the list, with the id of system.ethernet.dhcp.ip, have the label have a text value of 192.168.5.140 and so on.

Return to “Issues”