try this:

<cfoutput>
   <cfset countryArray = aResults.getValues().getKeyValuePair()>
   <cfloop index="i" from="1" to="#ArrayLen(countryArray)#">
     #i#   #countryArray[i].key#   #countryArray[i].value#    <br>
   </cfloop>
</cfoutput>


It appears that only keys are returned. There are no values.

Maybe the position in the array is the country code.
i.e. maybe "Albania" is country #3
      because countryArray[3].key is "Albania".

-tom-

james carberry wrote:
> I am having trouble figuring out how to access data returned from a web 
> service I am consuming from my ColdFusion app. The web service is in .NET if 
> that makes any difference. 
> 
> The web service is called "getCountries" and it should basically return a 
> result set with a list of country codes (probably a numeric key) and country 
> names. It appears that I am calling the service correctly and "something" is 
> getting returned, but I cannot figure out how to get at it. I cannot CFDUMP 
> it or figure out how to CFOUTPUT it either. Any help much appreciated! 
> 
> You can see the service description at:
> http://sme.atsol.org/lookups.asmx?op=getCountries
> 
> My source is:
> <cfinvoke 
>  webservice="http://sme.atsol.org/lookups.asmx?wsdl";
>  method="getCountries"
>  returnvariable="aResults">
> </cfinvoke>
> <cfdump var="#variables#" label="variables">
> <cfdump var="#aResults#" label="aResults">

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create Web Applications With ColdFusion MX7 & Flex 2. 
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS 

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283667
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to