I have been playing with this web service.  I have found that I have had to 
make sure any server I've used this on had the 6.1 updater applied.  Ultimately 
I would like to use this on our shared hosted server.  The initial tests I've 
done have not worked.  But when contacted, the host says their server is 
completely updated.

Can somebody point out the exact hot fix that solved whatever the root problem 
was with using web services such as this?


--------------
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA
 
"C code. C code run. Run code run. Please!"
- Cynthia Dunning

....-----Original Message-----
....From: Dawson, Michael [mailto:[EMAIL PROTECTED]
....Sent: Tuesday, January 18, 2005 2:29 PM
....To: CF-Talk
....Subject: RE: Solution - NOAA Weather Forcast via CFMX Web Service
....
....I downloaded your CFC and copied the sample code from your web site.
....
....When I run the page, I get the following error:
....
....Could not perform web service invocation "NDFDgenByDay" because
....java.lang.IllegalArgumentException: argument type mismatch
....
....The error appears to be related to the "format" argument.  At least,
....that is what CF has highlighted.
....
....-----Original Message-----
....From: Jon Block [mailto:[EMAIL PROTECTED]
....Sent: Monday, January 17, 2005 4:19 PM
....To: CF-Talk
....Subject: Solution - NOAA Weather Forcast via CFMX Web Service
....
....CF'ers,
....
....I figured out the problem that everybody was talking about in a previous
....thread from earlier in the month. This email describes how to make it
....work.
....
....The problem that (I think) everybody was having is that they forgot that
....web services are strongly typed but ColdFusion is not. That means you
....can't pass a string into an array of bits. You can use my simple CFC
....interface to all of this at
....(http://www.jonathanblock.com/pineapple/noaa.html) or you can do it
....yourself like I have in the example below...
....
....(example.cfm)
....----------------
....<CFPARAM NAME="WAVEH"               DEFAULT="false" type="boolean">
....<CFPARAM NAME="maxt"                DEFAULT="true"  type="boolean">
....<CFPARAM NAME="mint"                DEFAULT="true"  type="boolean">
....<CFPARAM NAME="temp"                DEFAULT="false" type="boolean">
....<CFPARAM NAME="dew"                 DEFAULT="false" type="boolean">
....<CFPARAM NAME="pop12"               DEFAULT="false" type="boolean">
....<CFPARAM NAME="qpf"                 DEFAULT="false" type="boolean">
....<CFPARAM NAME="snow"                DEFAULT="false" type="boolean">
....<CFPARAM NAME="sky"                 DEFAULT="false" type="boolean">
....<CFPARAM NAME="wspd"                DEFAULT="false" type="boolean">
....<CFPARAM NAME="wdir"                DEFAULT="false" type="boolean">
....<CFPARAM NAME="wx"                  DEFAULT="false" type="boolean">
....<CFPARAM NAME="icons"               DEFAULT="false" type="boolean">
....<CFPARAM NAME="waveh"               DEFAULT="false" type="boolean">
....<CFPARAM NAME="startDate"   DEFAULT="#CreateDate(2005, 1, 17)#"
....type="date">
....<CFPARAM NAME="numDays"             DEFAULT="2"
....type="numeric">
....<CFPARAM NAME="format"              DEFAULT="24 hourly"
....type="string">
....<cfset strWeatherParameters                 = STRUCTNEW() />
....<cfset strWeatherParameters.WAVEH   = WAVEH />
....<cfset strWeatherParameters.maxt    = maxt />
....<cfset strWeatherParameters.mint    = mint />
....<cfset strWeatherParameters.temp    = temp />
....<cfset strWeatherParameters.dew             = dew />
....<cfset strWeatherParameters.pop12   = pop12 />
....<cfset strWeatherParameters.qpf             = qpf />
....<cfset strWeatherParameters.snow    = snow />
....<cfset strWeatherParameters.sky             = sky />
....<cfset strWeatherParameters.wspd    = wspd />
....<cfset strWeatherParameters.wdir    = wdir />
....<cfset strWeatherParameters.wx              = wx />
....<cfset strWeatherParameters.icons   = icons />
....<cfset strWeatherParameters.waveh   = waveh />
....<cfinvoke
....    webservice              =
...."http://weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl";
....    method                  = "NDFDgenByDay"
....    returnvariable  = "xmlWeatherData">
....    <cfinvokeargument name="latitude"
....value="42.3485"/>
....    <cfinvokeargument name="longitude"
....value="-71.0733"/>
....    <cfinvokeargument name="startDate"
....value="#startDate#"/>
....    <cfinvokeargument name="numDays"
....value="#numDays#"/>
....    <cfinvokeargument name="format"
....value="#format#"/>
....</cfinvoke>
....<cfset weatherXMLobject = XMLParse(xmlWeatherData) /> <CFDUMP
....VAR="#weatherXMLobject#">
....----------------
....
....Jon Block
....
....
....
....
....

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193379
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to