if you do a cfdump on the variable you put the results into, you'll see the
methods available to you from the result.

call one of these for different result data:

I used this: to get Beverly Hills, CA

<cfinvoke 
        webservice="http://www.alethea.net/webservices/ZipCode.asmx?WSDL";
        method="ZipCodeToCityState"
        returnvariable="res">
        <cfinvokeargument 
    name="ZipCode" value="90210">
</cfinvoke>
<cfdump var="#res#">
<cfset this = res.getString()>
<cfdump var="#this#">

> -----Original Message-----
> From: Justin Hansen [mailto:[EMAIL PROTECTED]]
> Sent: 16 May 2002 16:59
> To: CF-Talk
> Subject: MX, WebService, and XML - Help
> 
> 
> Hi group,
> 
> I'm trying to get a webservice to work with MX and it just 
> won't behave. All
> I can get back is "net.alethea.www.ArrayOfString@1283bf". 
> IsXmlDoc returns
> NO. It should be, right? Below is the code and reference 
> information needed
> to perform this action. Gez, Ben made it sound so easy. What 
> is wrong with
> this picture? Thanks in advance.....
> 
> Xmethods service page:
> http://www.xmethods.net/ve2/ViewListing.po;jsessionid=QEWc8ECN
> ga-JV_ZfW2JioH
> _c(QhxieSRM)?serviceid=7534
> 
> View the packet that should get returned:
> http://www.alethea.net/webservices/ZipCode.asmx/ZipCodeToAreaC
ode?ZipCode=64
114

The Code:
<cfinvoke
         webservice="http://www.alethea.net/webservices/ZipCode.asmx?WSDL";
         method="zipCodeToAreaCode"
         returnvariable="AreaCodePacket">
                <cfinvokeargument name="zipCode" value="64114"/>
</cfinvoke>

<cfoutput>
AreaCodePacket : #AreaCodePacket#<br>
isXmlDoc(AreaCodePacket) : #isXmlDoc(AreaCodePacket)#<br>
</cfoutput>



Justin Hansen
--------------------------
Uhlig Communications
Web Developer / Programmer
--------------------------
[EMAIL PROTECTED]
913-754-4273
--------------------------



______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to