I am using ColdFusion 8.
I am trying to access my SOAP response nodes. I can't seem to access them though. What I get is an empty array. My SOAP response looks great. I get what I expect.
You can view the array and the SOAP response here: http://dev.iqcatalogs.com/avcat/myiq/test-11.cfm
I have used Ben Nadel's blog post as a starting point (http://www.bennadel.com/blog/1809-Making-SOAP-Web-Service-Requests-With-ColdFusion-And-CFHTTP.htm)
I am parsing the XML like this:
soapResponse = xmlParse(httpResponse.fileContent);
I am trying to access the nodes like this:
responseNodes = xmlSearch(soapResponse, "//*[ local-name() = 'exhibitorlist' ]");
Some of my XML looks like this:
<exhibitorlist boothid="104686">
<eventid>1</eventid>
<eventcode>
<eventname>Infocomm06</eventname>
<boothnumber>1263</boothnumber>
<companyid>408</companyid>
<companynumber>173023</companynumber>
<companyname>AMETEK Hunter Spring Products</companyname>
</eventcode>
</exhibitorlist>
When I dump responseNodes, I get an empty array. I've tried a bunch of things, but nothing seems to get into the array.
Can you help?
have you tried:?
responseNodes = xmlSearch(soapResponse, "//ExhibitorList");
It should return all exhibitorlist elements in the document.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.