Skip to main content
Inspiring
August 3, 2011
Question

<CFINVOKE> webservice returning a list of items

  • August 3, 2011
  • 1 reply
  • 385 views

Hi there,

I am currently trying to invoke a webservice which should return a list of addresses.  Here is my code:

          <cfinvoke webservice="http://hbsappdev01/nlpg_test/nlpg_enquiry.asmx?wsdl"                          method="FindAddress"                          returnvariable="AddressDetails" >                   <cfinvokeargument name="findPostcode" value="#form.postcode#">                   <cfinvokeargument name="findHouseNo" value="#form.houseno#">                   <cfinvokeargument name="findStreet" value="#form.street#">                   <cfinvokeargument name="findTown" value="#form.town#">                <cfinvokeargument name="ispartial" value="#form.ispartial#">           </cfinvoke>

I am totally new to webservices and do not have much experience with them, can anyone tell me how to output the results in a cfloop so I can see mutliple results.


Thanks

    This topic has been closed for replies.

    1 reply

    Owainnorth
    Inspiring
    August 3, 2011

    Well these forums are utter crap, so they've cut out all your code.


    Regardless, you need to do first get the data from the webservice, using CFINVOKE.

    Once you have that data just to a CFDUMP on it to see what format it's in; Xml, list etc. Once you know that, you can just treat the data like any other CF data. Until you know that however, you can't do much