I have a combobox on the form and I can not figure out how to bind my data to it. I am calling a webservice, I am getting back a SOAP response. Now, how do I bind the SOAP response to the combobox? Here is the data in JSON format. This is what I am getting back from the API.
{
"ns1:getCountryListResponse":
{"@soapenv:encodingStyle":"http://schemas.xmlsoap.org/soap/encoding/",
"@xmlns:ns1":"http://asigra/apiservice","getCountryListReturn":
{"@soapenc:arrayType":"ns2:Country[3]",
"@xsi:type":"soapenc:Array",
"@xmlns:ns2":"http://asigra/apiservice/list",
"@xmlns:soapenc":"http://schemas.xmlsoap.org/soap/encoding/",
"getCountryListReturn":[{"@href":"#id0"},{"@href":"#id1"},{"@href":"#id2"}]
}
},
"multiRef":
[
{"@id":"id0",
"@soapenc:root":"0",
"@soapenv:encodingStyle":"http://schemas.xmlsoap.org/soap/encoding/",
"@xsi:type":"ns3:Country","@xmlns:soapenc":"http://schemas.xmlsoap.org/soap/encoding/",
"@xmlns:ns3":"http://asigra/apiservice/list",
"countryCode":{"@xsi:type":"xsd:string","#text":"???"},
"countryName":{"@xsi:type":"xsd:string","#text":""}
},
{"@id":"id1",
"@soapenc:root":"0",
"@soapenv:encodingStyle":"http://schemas.xmlsoap.org/soap/encoding/",
"@xsi:type":"ns4:Country",
"@xmlns:ns4":"http://asigra/apiservice/list",
"@xmlns:soapenc":"http://schemas.xmlsoap.org/soap/encoding/",
"countryCode":{"@xsi:type":"xsd:string","#text":"CDA"},
"countryName":{"@xsi:type":"xsd:string","#text":"Canada"}
},
{"@id":"id2",
"@soapenc:root":"0",
"@soapenv:encodingStyle":"http://schemas.xmlsoap.org/soap/encoding/",
"@xsi:type":"ns5:Country","@xmlns:ns5":"http://asigra/apiservice/list",
"@xmlns:soapenc":"http://schemas.xmlsoap.org/soap/encoding/",
"countryCode":{"@xsi:type":"xsd:string","#text":"USA"},
"countryName":{"@xsi:type":"xsd:string","#text":"United States"}
}
]
}
combobox items
Submitted by bgauvey on Tue, 11/20/2007 - 15:11.
- Login or register to post comments
- Unsubscribe post
