this could help
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=585&threadid=1292101&forumid=60
but if i were to guess remove all the xml in the NDFDgenByDay and start working 
up one by one to see what is wrong. Change Latitude to string and in the PHP 
and see if it goes through etc..


----- Original Message ----
From: arignote <[EMAIL PROTECTED]>
To: [email protected]
Sent: Sunday, January 27, 2008 12:45:47 AM
Subject: [flexcoders] Re: Error 1009 When Calling a WebService

I've been having the same problem. Here's my web service.

<mx:WebService 
id="weatherService" 
wsdl="http://www.weather. gov/forecasts/ xml/SOAP_ server/ndfdXMLse rver.php?
wsdl" 

endpointURI= "http://www.weather. gov/forecasts/ xml/SOAP_ server/ndfdXMLse 
rver.php" 
service="ndfdXML"
makeObjectsBindable ="true"
result="resultHandl er(event) "
fault="{showError( event)}"
>
<mx:operation name="LatLonListZip Code">
<mx:request xmlns="">
<zipCodeList> {zipCode. text}</zipCodeLi st>
</mx:request>
</mx:operation>

<mx:operation name="NDFDgenByDay" >
<mx:request xmlns="">
<latitude>{latitude }</latitude>
<longitude>{ longitude} </longitude>
<startDate>{ startDate} </startDate>
<numDays>{numDays} </numDays>
<format>{format} </format>
</mx:request>
</mx:operation>

</mx:WebService>

Calling LatLonListZipCode works, calling NDFDgenByDay gives the 1009 error.

I call event.fault. getStackTrace( ); in the error handler which returns:

[RPC Fault faultString= "Error #1009: Cannot access a property or method of a 
null object 
reference." faultCode="Encoding Error" faultDetail= "null"]
at 
mx.rpc.soap: :Operation/http://www.adobe. com/2006/ flex/mx/internal 
::invokePendingC a
ll()[C:\dev\ enterprise_ bali\frameworks\ mx\rpc\soap\ Operation. as:582]
at 
mx.rpc.soap: :Operation/ send()[C: \dev\enterprise_ bali\frameworks\ 
mx\rpc\soap\ Operatio
n.as:492]
at Function/http://adobe. com/AS3/2006/ builtin:: apply()
at 
mx.rpc.soap. mxml::Operation/ send()[C: \dev\enterprise_ bali\frameworks\ 
mx\rpc\soap\ m
xml\Operation. as:140]
at Function/http://adobe. com/AS3/2006/ builtin:: apply()
........

I cut and paste so all of the parameters are spelled correctly.

Purposely miss-spelling latitude gives the error "Required parameter 'latitude' 
not found 
in input arguments." So I know an attempt was made to call NDFDgenByDay.

Trying to pass non-strings -startDate:Date= new Date(2008, 1, 26, 0, 0, 0, 0); 
and numDays:int= 5; gives the error:

[RPC Fault faultString= "HTTP request error" faultCode="Server. Error.Request" 
faultDetail= "Error: [IOErrorEvent type="ioError" bubbles=false 
cancelable=false 
eventPhase=2 text="Error #2032: Stream Error. URL: 
http://www.weather. gov/forecasts/ xml/SOAP_ server/ndfdXMLse rver.php"]. URL: 
http://www.weather. gov/forecasts/ xml/SOAP_ server/ndfdXMLse rver.php"]
at 
mx.rpc::AbstractInv oker/http://www.adobe. com/2006/ flex/mx/internal 
::faultHandler()
at mx.rpc::Responder/ fault()
at mx.rpc::AsyncReques t/fault()
at ::DirectHTTPMessage Responder/ errorHandler( )
at 
flash.events: :EventDispatcher /flash.events: EventDispatcher: :dispatchEventFu 
nction()
at flash.events: :EventDispatcher /dispatchEvent( )
at flash.net::URLLoade r/flash.net: URLLoader: :redirectEvent( )

Linda
--- In [EMAIL PROTECTED] ups.com, "bobignacio" <bobignacio@ ...> wrote:
>
> Hey Jay,
> 
> When looking at the WSDL from weather.gov:
> 
> http://www.weather. gov/forecasts/ xml/DWMLgen/ wsdl/ndfdXML. wsdl
> 
> These are the following sections of the WSDL which is posted which you
> are attempting to use:
> 
> <message name="NDFDgenByDayR equest">
> <part name="latitude" type="xsd:decimal" />
> <part name="longitude" type="xsd:decimal" />
> <part name="startDate" type="xsd:date" />
> <part name="numDays" type="xsd:integer" />
> <part name="format" type="typens: formatType" />
> </message>
> 
> <message name="NDFDgenByDayR esponse">
> <part name="dwmlByDayOut" type="xsd:string" />
> </message>
> 
> In your flex application, reexamine that the method name is spelled
> correctly (NDFDgenByDay) , all of your arguments are spelled correctly
> (latitude, longitude, etc.) and check the case of your spelling as
> well. Also double check that what you are sending are not null.
> 
> Posting a snippet of your code may help as well.
> 
> Hope this gives you some more clues...
> 
> Bob I.
> 
> --- In [EMAIL PROTECTED] ups.com, "jaywood58" <jaywood@> wrote:
> >
> > Thanks Bob... that's a very helpful tag that I didn't know about. 
> > 
> > The trace shows I'm getting as far as "encoding soap request body" 
> > before the error crops up - seems to suggest something wrong with my 
> > input args??
>





      
____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Reply via email to