The F2B2 help file says:  Insert a WebService component - You use the Flex
WebService component to access a SOAP-based web service and retrieve
information about recent blog posts.

1.  In Source mode, enter the following <mx:WebService> tag immediately
after the opening <mx:Application> tag:


Not sure if that means you *can't* have the webservice tag anywhere else,
but I moved your code outside the Canvas and the error message went away :-)

Darren






>From: "Jeremy Rottman" <[EMAIL PROTECTED]>
>Reply-To: flexcoders@yahoogroups.com
>To: flexcoders@yahoogroups.com
>Subject: [flexcoders] Help with a Bug
>Date: Thu, 27 Apr 2006 20:48:27 -0000
>
>I am working on my app, and I was creating a link to my webservice,
>when I came across this. I am not sure if it is a bug or something
>wrong with my code. The webservice I am using, is coded exactly the
>same way all my other working webservices are coded. Anyone else have
>this issue.
>
>Here is my error:
>Severity      Description      Resource      In Folder      Location      Creation Time      Id
>2      Encountered "<mx:WebService>" at line 5, column 2.
>Was expecting one of:
>     Style ...
>     Script ...
>     Metadata ...
>     Effect ...
>     Model ...
>     XML ...
>     Array ...
>     Binding ...
>     String ...
>     Number ...
>     Boolean ...
>     Class ...
>     Function ...
>     Component ...
>     Non-MXML language element ...
>     Non-MXML language element ...
>     <CDATA> ...      agentUserList.mxml      hs2f/custom/components/company
>line 5      April 27, 2006 1:43:39 PM      15260
>
>
>Here is my code:
><?xml version="1.0" encoding="utf-8"?>
><mx:Canvas width="100%" height="100%"
>xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*">
>      <mx:Panel x="0"
>            title="" y="0"  width="100%" height="100%">
>      <mx:Script source="as/agentUserList.as" />
>      <mx:WebService id="DisplayAgentMod" useProxy="false"
>wsdl="http://flex.homesmartagent.com/cfc/adminAgent.cfc?wsdl"
>showBusyCursor="true">
>            <mx:operation name="searchAgentQry"
>result="DisplayAgentModsearchAgentQryResult(
>DisplayAgentMod.searchAgentQry.result )"
>fault="DisplayAgentModsearchAgentQryFault( event )" />
>      </mx:WebService>
>
>
>            <mx:Canvas width="100%" height="100%" id="canvas1">
>                  <mx:DataGrid x="140" y="71" id="agentDG" height="80%" width="100%">
>                        <mx:columns>
>                              <mx:DataGridColumn headerText="Agent Name" dataField="col1"/>
>                              <mx:DataGridColumn headerText="Agent Email" dataField="col2"/>
>                              <mx:DataGridColumn headerText="Agent Id" dataField="col3"/>
>                        </mx:columns>
>                  </mx:DataGrid>
>                  <mx:LinkButton x="6" y="70" label="Add Agent"/>
>                  <mx:LinkButton x="6" y="93" label="Delete Agent"/>
>                  <mx:LinkButton x="6" y="118" label="Exit"/>
>                  <mx:TextInput x="140" y="22"/>
>                  <mx:Button x="308" y="22" label="Search"/>
>            </mx:Canvas>
>            <mx:ApplicationControlBar x="0" width="100%"  height="35">
>                  <mx:Button label="Save"/>
>                  <mx:Button label="Reset"/>
>            </mx:ApplicationControlBar>
>      </mx:Panel>
></mx:Canvas>
>
>
>
>
>
>--
>Flexcoders Mailing List
>FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
>Yahoo! Groups Links
>
>
>
>
>
>
>







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to