I can’t figure this out for the life of me – I’m
following other people’s examples, but still getting errors. This
must be something obvious… Here’s my code (I’ve removed the
actual WSDL url): <?xml version="1.0"
encoding="utf-8"?> <mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute"> <mx:Script> <![CDATA[ import
mx.rpc.soap.WebService; var
myWebService:WebService; function
initWS(){ myWebService
= new WebService(); myWebService.loadWSDL("**********************"); } ]]> </mx:Script> </mx:Application> And here’s my error: 1061: Call to a possibly undefined method loadWSDL through a
reference with static type WebService. (Line 9) I’ve tried a bunch of different stuff – here’s
another variation, which throws different errors: <?xml version="1.0"
encoding="utf-8"?> <mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute"> <mx:Script> <![CDATA[ import
mx.rpc.soap.WebService; var
myWebService:WebService; myWebService
= new WebService(); myWebService.loadWSDL("******************************"); ]]> </mx:Script> </mx:Application> And the errors: 1120: Access of undefined property myWebService.
(Lines 8 & 9) Thanks! - tom -- 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
YAHOO! GROUPS LINKS
__,_._,___ |
- [flexcoders] WebService - What's wrong with this code? Tom Lee
- [flexcoders] Re: WebService - What's wrong with this... ben.clinkinbeard
- RE: [flexcoders] Re: WebService - What's wrong w... Tom Lee
- [flexcoders] Re: WebService - What's wrong w... ben.clinkinbeard
- Re: [flexcoders] Re: WebService - What's... sinatosk
- RE: [flexcoders] Re: WebService - What's... Tom Lee
- Re: [flexcoders] Re: WebService - W... sinatosk
- Re: [flexcoders] Re: WebService... Samuel D. Colak