0 Replies Latest reply on Dec 5, 2006 11:15 AM by headjoog2

    Error #1009: RPC Fault - (Really strung out here!)

    headjoog2
      Did some searches on this but can't seem to find anything definitive. I have an ASP.NET Web Service that I have test via IE and it is working. I have FB2 and FDS, but just trying to call a simple WebService direcly like (extracts of the code below):

      ============================================
      <mx:WebService id="srv"
      useProxy="false"
      wsdl=" http://localhost/RM_Starter/Find_Patterns.asmx?wsdl" >
      <mx:operation name="ShowMyPatterns" >
      <mx:request>
      <param1>
      param1
      </param1>
      <param2>
      param2
      </param2>
      </mx:request>
      </mx:operation>
      </mx:WebService>

      ================================

      And I fire off the send from a button like this. I know this gets fired off and works and I see IIS log the GET for it:


      private function initBtn():void
      {
      srv.ShowMyDayPatterns.send();
      }

      =======================================================

      But when that fires I get the following error message:

      [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::invokePendingCall()[C:\dev\enterprise_gmc\fram eworks\mx\rpc\soap\Operation.as:582
      at mx.rpc.soap::Operation/ http://www.adobe.com/2006/flex/mx/internal::invokeAllPending()[C:\dev\enterprise_gmc\frame works\mx\rpc\soap\Operation.as:428
      at mx.rpc.soap::WebService/mx.rpc.soap:WebService::unEnqueueCalls()[C:\dev\enterprise_gmc\fr ameworks\mx\rpc\soap\WebService.as:861]
      at mx.rpc.soap::WebService/ http://www.adobe.com/2006/flex/mx/internal::wsdlHandler()[C:\dev\enterprise_gmc\frameworks \mx\rpc\soap\WebService.as:667
      at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.rpc.soap::WSDLParser/dispatchEvent()[C:\dev\enterprise_gmc\frameworks\mx\rpc\soap\WSDL Parser.as:788]
      at mx.rpc.soap::WSDLParser/mx.rpc.soap:WSDLParser::parseCompleted()[C:\dev\enterprise_gmc\fr ameworks\mx\rpc\soap\WSDLParser.as:305]
      at mx.rpc.soap::WSDLParser/ http://www.adobe.com/2006/flex/mx/internal::httpResultHandler()[C:\dev\enterprise_gmc\fram eworks\mx\rpc\soap\WSDLParser.as:181
      at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()


      IT WASN"T THIS HARD BEFORE! Is there something in the FDS files that have to be configured? What am I missing here?