2 Replies Latest reply on Jul 28, 2006 4:34 PM by gumnam

    Problem creating WebService using MXML

    gumnam
      HI,

      I am trying to get myself familiar with Flex 2. I am trying to write a simple Webservice example which calls weather service.My problem is that when I use <mx:WebService> tag, The Flex builder 2 gives me compilation error :


      Encountered "<mx:WebService> " at line 75, col 2.
      Was expecting one of :
      Style...
      Script..
      Metadata..
      Model...
      XML...


      I read that in order to access simple webservices using SOAP it is not necessary to run FDS.And the strage thing is I am able to run the WebService using AS instantiation instead of using mxml tag.

      So why am I getting this error ?