1 person found this helpful
I've never used HTTPService to load xml.
Here's how I've been doing it, if it helps.
protected function init():void
var loader:URLLoader = new URLLoader();
loader.load(new URLRequest('http://www.test.com/test.xml')); // or relative url path
protected function loader_completehandler(e:Event):void
var xml:XML = new XML((e.target as URLLoader).data);
I can't see in your code that you are using srv.send().
Try calling srv.send() at the creation complete event handler to load the xml.
It was missing the .send() command.
I made the code after an example in TourDeFlex, and just couldn't spot the .send() that was in there. I've encountered so many bugs and inconsistent things in Flex that I just thought this is another bug or something.
Thanks Edwan, too. I used to use the URLLoader but the HTTPService shrinks the 5 lines to one so I thought I'd figure that one out.