3 Replies Latest reply on Nov 12, 2007 3:13 AM by kcell

    Flex 3 beta - connect to Web Service - help

    SterlingDK
      Hi

      I am trying to connect to a web service using Flex 3 beta.

      Firstly, I cant find any documentation or examples on using the <srv tag, but I have a Linda.com tutorial where he uses this tag to connect to a Web Service - however i cannot get it to work. And the Linda.com video tutorial does not have any sample code.

      The error I am getting is:
      The prefix "srv" for element "srv:Service" is not bound. RemoteServicesController/src RemoteServicesController.mxml


      Heres my code:
      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute" xmlns:webservices="generated.webservices.*" creationCompleteEffect="initApp()">
      <mx:Script>

      <![CDATA[
      [Bindable]
      private var servicesXML:XML

      private function initApp():void
      {
      myService.addEventListerner("ShowServicesDetail_result",resultHandler);
      }
      private function resultHandler():void

      {
      servicesXML = new XML(event.result);
      }

      ]]>
      </mx:Script>
      <srv:Service id="myService" >
      <srv:ShowServicesDetail_result >
      <srv:ShowServicesDetail_request Request="{myButton.}" />
      </srv:ShowServicesDetail_result>
      </srv:Service>

      <mx:Button id="myButton" label="Call operation" click="myButton.ShowServicesDetail_send()" x="317" y="450"/>
      <mx:TextArea x="35" y="191" width="584" height="238" text="{myService.ShowServicesDetailResult_type0()}" />


      </mx:Application>

      And is there a Flex 3 forum?

      Thanks for any help you can offer.:confused;