Attaching headers to web service requests is pretty easy. I have an write-up here that you can check out (second half of the blog post):
http://www.cynergysystems.com/blogs/page/andrewtrice?entry=census_mashup s_using_strikeiron_web ...and source code here: http://www.cynergysystems.com/blogs/blogs/andrew.trice/strikeiron/srcvie w/index.html I instantiated a webservice in mxml, and attached the headers onto it on the creationComplete event of the application. Once the headers have been attached to your web service instance, you can make as many calls as you want without having to reattach any headers per service call. -Andy _____________________________________ Andrew Trice Cynergy Systems, Inc. http://www.cynergysystems.com Blog: http://www.cynergysystems.com/blogs/page/andrewtrice Email: [EMAIL PROTECTED] Office: 866-CYNERGY ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brian Holmes Sent: Friday, March 09, 2007 4:12 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: .NET Webservices 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: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> ] On Behalf Of scott_flex Sent: Friday, March 09, 2007 2:04 PM To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 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 <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 flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , "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 <http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com <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. ***