I have been trying to post this on the labs forums, but the pages are 
stuck in a perpetual loop of asking me to re-verify my details.

anyway, Im trying to use mx.rpc.HTTPService from just AS3 code, but as 
soon as i invoke the send method it gives me a fault:

[RPCFault faultcode='InvokeFailed' faultstring-'Error #1009: null has no 
properties.']

Heres the code im using:

package
{
        import flash.display.MovieClip;
        import mx.rpc.http.*;
        import mx.rpc.events.*;
        import flash.util.trace;
        
        public class ServiceTest extends MovieClip
        {
                private var myService:HTTPService;
        
                public function ServiceTest()
                {
                        myService = new HTTPService();
                        myService.useProxy = false;
                        myService.url="http://biljanche/test.xml";;
                        myService.addEventListener("result",result);
                        myService.addEventListener("fault",fault);
                        myService.send();
                }
        
                private function result(evt:ResultEvent)
                {
                        trace("GOT RESULT");
                }
                
                private function fault(evt:FaultEvent)
                {
                        trace("GOT FAULT : " + evt);
                }
        }
}

and i've tried numerous variations, including populating every property 
of the object. I have also tried using the mx.rpc.mxml.HTTPService and 
get the same results.

If i use the mxml HTTPService tag i have no problems at all.

Does anyone know what im missing?

thanks,

Martin


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to