Chaps,

 

Trying to invoke the NOAA webservice using cfinvoke but getting a pretty
useless exception thrown back at me, you'll be able to see the WSDL document
in the code so you can examine it, I cant see anything wrong with my request
data.

 

<cfinvoke method="NDFDgenByDay"
webservice="http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl";
refreshWSDL="true" returnVariable="VARIABLES.Forecast">

      <cfinvokeargument name="latitude" value="50.797816" />

      <cfinvokeargument name="longitude" value="-1.10623" />

      <cfinvokeargument name="startDate" value="2008-03-01" />    

      <cfinvokeargument name="numDays" value="7" />   

      <cfinvokeargument name="format" value="24 hourly" />

</cfinvoke>

 

<cfdump var="#VARIABLES.Forecast#" />

 


Cannot perform web service invocation NDFDgenByDay.

         

The fault returned when invoking the web service operation is:

AxisFault

 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException

 faultSubcode: 

 faultString: java.lang.ClassCastException: org.apache.axis.message.Text
cannot be cast to org.apache.axis.message.MessageElement

 faultActor: 

 faultNode: 

 faultDetail: 

 
{http://xml.apache.org/axis/}stackTrace:java.lang.ClassCastException:
org.apache.axis.message.Text cannot be cast to
org.apache.axis.message.MessageElement

        at
org.apache.axis.message.SOAPFaultBuilder.onEndChild(SOAPFaultBuilder.java:29
9)

        at
org.apache.axis.encoding.DeserializationContext.endElement(DeserializationCo
ntext.java:1090)

        at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
Source)

        at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
Source)

        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
her.dispatch(Unknown Source)

        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)

        at org.apache.xerces.parsers.XML11Configurat... ''


 

        

The error occurred in C:\inetpub\workspace\www.yourblue.co.uk version
3\View\Reports\weather\weather_test.cfm: line 6


4 :     <cfinvokeargument name="startDate" value="2008-03-01" />     

5 :     <cfinvokeargument name="numDays" value="7" /> 

6 :     <cfinvokeargument name="format" value="24 hourly" />

7 : </cfinvoke>

8 : 

        

 

 

If I'm honest I've always had issues with coldfusion webservices, they seem
to be very good at consuming themselves but whenever trying to use CF to
consume another service, or another language to consume one of my own
services they always seem to misbahave L

 

Any ideas on this would really be appreciate,

 

Rob



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:319943
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