Thanks Scott, I guess the stuff I have to call is just a lot more complicated and I haven't quite gotten the format down. Your way was the way I've been calling other web services. I also need to attach soap headers to every request.
-----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of scott_flex Sent: Friday, March 09, 2007 2:04 PM To: [email protected] Subject: [flexcoders] Re: .NET Webservices Here's how i've been calling my web services.... right or wrong... private var ws:WebService = new WebService(); // handle any error for this web service instance ws.addEventListener("fault", faultHandler); ws.loadWSDL("http://mywebsite.com/service.asmx?WSDL); // MyFunction just takes one string parameter and returns a string ws.MyFunction.addEventListener("result", serviceResult); // actually calls the function... ws.MyFunction("Hello Web Service"); private function serviceResult(event:ResultEvent):void { // shows the string return from web services, // cast to whatever variable type you need to. Alert.show(event.result.toString()); } public function faultHandler(event:FaultEvent):void { Alert.show(event.toString(), "WebService Error"); { --- In [email protected], "Brian Holmes" <[EMAIL PROTECTED]> wrote: > > Does anyone have any examples they'd be willing to share or point me to > of connectin to .NET webservices with or without soap headers, > preferably both. > It'll be greatly appreciated. > > Thanks, > > b.. > > > *** > The information in this e-mail is confidential and intended solely for the individual or entity to whom it is addressed. If you have received this e-mail in error please notify the sender by return e- mail delete this e-mail and refrain from any disclosure or action based on the information. > *** > -- 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 *** The information in this e-mail is confidential and intended solely for the individual or entity to whom it is addressed. If you have received this e-mail in error please notify the sender by return e-mail delete this e-mail and refrain from any disclosure or action based on the information. ***

