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/ndfdXMLserver.php?
wsdl"  
                
endpointURI="http://www.weather.gov/forecasts/xml/SOAP_server/ndfdXMLserver.php";
 
                service="ndfdXML"
                makeObjectsBindable="true"
                result="resultHandler(event)"
                fault="{showError(event)}"
                >
                <mx:operation name="LatLonListZipCode">
                        <mx:request xmlns="">
                                <zipCodeList>{zipCode.text}</zipCodeList>
                        </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="EncodingError" faultDetail="null"]
        at 
mx.rpc.soap::Operation/http://www.adobe.com/2006/flex/mx/internal::invokePendingCa
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/ndfdXMLserver.php";]. URL: 
http://www.weather.gov/forecasts/xml/SOAP_server/ndfdXMLserver.php";]
        at 
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()
        at mx.rpc::Responder/fault()
        at mx.rpc::AsyncRequest/fault()
        at ::DirectHTTPMessageResponder/errorHandler()
        at 
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at flash.net::URLLoader/flash.net:URLLoader::redirectEvent()


Linda
--- In [email protected], "bobignacio" <[EMAIL PROTECTED]> 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="NDFDgenByDayRequest">
>  <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="NDFDgenByDayResponse">
>  <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], "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??
>

Reply via email to