There were some security changes in the Flash Player that can affect
webservice access.

 

Search for my post: FYI: WebService, FP version 9.0.124.0, "Security
error accessing URL" crossdomain.xml fix

 

Tracy

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Josh McDonald
Sent: Thursday, June 12, 2008 9:14 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: My Web Service with soap headers code no
longer work with Flex 3

 

I don't know much about funky soap headers, but what kind of error are
you getting? Or is it just dropping the headers?

On Thu, Jun 12, 2008 at 11:02 PM, Mark <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> > wrote:

Any ideas on this? I'm having a real hard time here.

Mark

--- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
, "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
<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 <http://radar.net/RadarXML.asmx>
","AuthHeader");
> var headerInfo:XML = <AuthHeader xmlns="http://tempuri.org/
<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
<http://radar.net/RadarXML.asmx?WSDL> " 
> showBusyCursor="true">
> <mx:operation name="PullXML" result="onResult(event)" 
> fault="onFault(event)"/>
> </mx:WebService>
> </mx:Application>
>




-- 
"Therefore, send not to know For whom the bell tolls. It tolls for
thee."

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>  

 

Reply via email to