[thelist] Web Disservices (CFMX)

Pete Freitag pf at cfdev.com
Mon Feb 10 17:22:01 CST 2003


Have you installed the latest updaters for ColdFusion MX?

I had no problem running your first example (updater 1):

<cfinvoke
  webservice = "http://www.ejse.com/WeatherService/Service.asmx?wsdl"
  method = "GetWeatherInfo"
  zipCode = "65641"
  returnvariable = "Weather">

<cfdump var="#weather#">


<cfoutput>
#weather.getForecast()#

#weather.getDewPoint()#
</cfoutput>

If you tried outputting <cfoutput>#weather#</cfoutput> you probably got the
object signiture com.host at etc

Using CFDUMP shows you all the methods you can call on the object.

_____________________________________________
Pete Freitag
CTO, CFDEV.COM
http://www.cfdev.com/

-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of danielEthan
Sent: Monday, February 10, 2003 12:13 PM
To: thelist at lists.evolt.org
Subject: [thelist] Web Disservices (CFMX)


Web services are driving me crazy.

Every tutorial on the web shows either a) ridiculously simple web
service consumption, or b) those made with ColdFusion.

I'm trying to consume some web services, and most don't work. My errors
include:

1. Document root element doesn't exist (because I'm not getting a valid
xml response, see #2)
2. Returns: com.host at 12345a
3. Not found (this one has to do with the port used)

The web services I'm trying to consume are all weather related:

<cfinvoke
  webservice = "http://www.ejse.com/WeatherService/Service.asmx?wsdl"
  method = "GetWeatherInfo"
  zipCode = "65641"
  returnvariable = "Weather">

info:
http://www.bindingpoint.com/Service.aspx?sKey=a7a709c1-0f9a-4ed1-a3fd-
af25215eb1a7

<cfinvoke
  method = "getWeatherReport"
  returnvariable = "WeatherReport"
  webservice = "http://live.capescience.com/wsdl/GlobalWeather.wsdl">
  	<cfinvokeargument name = "code" value = "KROG"/>
</cfinvoke>

info: http://www.capescience.com/webservices/globalweather/index.shtml

I realize both of my invoke statments are formatted differently. This
is because I've tried everything (not that I think it makes a
difference). The second service is the one where the port/binding has
to be specified. I'm unaware how to do this. I've tried creating a SOAP
call myself (using cfhttp), but always receive a connection failure.

Perhaps I was wrong thinking that you can consume any kind of service,
ColdFusion or not. Any help would be greatly appreciated (including
links to good tutorials on web services). Thanks.

--
* * Please support the community that supports you.  * *
http://evolt.org/help_support_evolt/

For unsubscribe and other options, including the Tip Harvester
and archives of thelist go to: http://lists.evolt.org
Workers of the Web, evolt !




More information about the thelist mailing list