0 Replies Latest reply on Nov 8, 2007 1:41 PM by funpilot2

    .Net Dataset Failure

    funpilot2
      I have not been able to read a DataSet in Flex3 at all. Below is the code I am using. I would appreciate any help in getting started with datasets. Thanks!

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute" xmlns:olis="com.olis.*">

      <mx:Script>
      <![CDATA[
      import com.olis.*;
      ]]>
      </mx:Script>

      <olis:WsCookCounty id="ws">
      </olis:WsCookCounty>

      <mx:Button label="Call HelloWorld" click="{ws.helloWorld_send()}" top="10" left="10"/>
      <mx:Label id="_Test" text="{ws.helloWorld_lastResult}" top="12" left="139"/>
      <mx:DataGrid dataProvider="{ws.getPartiesByNameTable_lastResult}" bottom="10" right="10" top="40" left="10">
      <mx:columns>
      <mx:Array>
      <mx:DataGridColumn headerText="Party Name" dataField="PartyName" />
      </mx:Array>
      </mx:columns>
      </mx:DataGrid>
      <mx:Button label="Search" click="{ws.getPartiesByNameTable('olis')}" right="10" top="10" width="65"/>
      <mx:TextInput id="_Name" text="olen" width="123" top="10" right="83"/>
      </mx:Application>


      Here is the error ---------------------------------

      Error: Cannot find definition for type ' http://tempuri.org/::GetPartiesByNameTableResult_type1'
      at mx.rpc.xml::XMLDecoder/decodeType()[E:\dev\flex_3_beta2\sdk\frameworks\projects\rpc\src\m x\rpc\xml\XMLDecoder.as:1549]
      at mx.rpc.soap::SOAPDecoder/decodeType()[E:\dev\flex_3_beta2\sdk\frameworks\projects\rpc\src \mx\rpc\soap\SOAPDecoder.as:637]
      at mx.rpc.xml::XMLDecoder/decode()[E:\dev\flex_3_beta2\sdk\frameworks\projects\rpc\src\mx\rp c\xml\XMLDecoder.as:154]
      at mx.rpc.soap::SOAPDecoder/decodeBody()[E:\dev\flex_3_beta2\sdk\frameworks\projects\rpc\src \mx\rpc\soap\SOAPDecoder.as:426]
      at mx.rpc.soap::SOAPDecoder/decodeEnvelope()[E:\dev\flex_3_beta2\sdk\frameworks\projects\rpc \src\mx\rpc\soap\SOAPDecoder.as:270]
      at mx.rpc.soap::SOAPDecoder/decodeResponse()[E:\dev\flex_3_beta2\sdk\frameworks\projects\rpc \src\mx\rpc\soap\SOAPDecoder.as:211]
      at com.olis::BasewsCookCounty/processResult()[C:\AdobeCode\Flex3\Test1\src\com\olis\BasewsCo okCounty.as:288]
      at mx.rpc::AsyncResponder/result()[E:\dev\flex_3_beta2\sdk\frameworks\projects\rpc\src\mx\rp c\AsyncResponder.as:73]
      at mx.rpc::AsyncRequest/acknowledge()[E:\dev\flex_3_beta2\sdk\frameworks\projects\rpc\src\mx \rpc\AsyncRequest.as:81]
      at DirectHTTPMessageResponder/completeHandler()[E:\dev\flex_3_beta2\sdk\frameworks\projects\ rpc\src\mx\messaging\channels\DirectHTTPChannel.as:381]
      at flash.events::EventDispatcher/dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at flash.net::URLLoader/onComplete(