Any ideas on this? I'm having a real hard time here. Mark
--- In [email protected], "Mark" <[EMAIL PROTECTED]> wrote: > > In Flex 2 this works like a charm but not in 3, I can't seem to find > any info on the changes in the Help. Can someone lend a hand? > > <?xml version="1.0" encoding="utf-8"?> > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" > layout="absolute" creationComplete="onCreationComplete()"> > <mx:Script> > <![CDATA[ > // > import mx.rpc.soap.SOAPHeader; > import mx.rpc.events.FaultEvent; > import mx.rpc.events.ResultEvent; > import mx.utils.ObjectUtil; > // > /** > *** BEGING WEB SERVICE CALL WITH ADDING HEADERS *** > */ > private function onCreationComplete():void { > trace("GETTING"); > var qName:QName = new QName > ("http://radar.net/RadarXML.asmx","AuthHeader"); > var headerInfo:XML = <AuthHeader xmlns="http://tempuri.org/"> > > <UserName>admin</UserName> > > <Password>admin</Password> > </AuthHeader>; > var header:SOAPHeader = new SOAPHeader (qName, headerInfo); > ws.addHeader(header); > sendData(); > } > // > private function sendData(): void { > trace("SENDING"); > ws.PullXML.send(); > } > // > private function onFault(event:FaultEvent): void { > trace( "FAULT\n" + ObjectUtil.toString( event.fault )); > } > // > private function onResult(event:ResultEvent): void { > trace("RESULT\n" + event.result); > } > // > ]]> > </mx:Script> > <!-- web service --> > <mx:WebService id="ws" wsdl="http://radar.net/RadarXML.asmx?WSDL" > showBusyCursor="true"> > <mx:operation name="PullXML" result="onResult(event)" > fault="onFault(event)"/> > </mx:WebService> > </mx:Application> >

