My preferred method to date is to use LoadVars and access the .Net web
services over a standard HTTP request.  The reason for this is that I can
easily write my own WebServices class that extends LoadVars, and it ends up
being lighter and faster than the one Adobe provides.

I haven't tried the Remoting method, although I would like to at some point
since the built-in compression would be highly desirable: XML web service
responses can end up being bloated due to the size of all the tags. 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of j.c.wichman
Sent: Thursday, May 18, 2006 10:46 AM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] .NET and XML Web services

Hi Jason, 
u probably can, but you dont *have* to use remoting.

You can create a reference to the webservice by simply using:
new WebService("http://location to your webservice here.asmx?wsdl",
this.logger);

Look at this one for example
http://www.flash-db.com/services/tutorials/mxclasses/mxwebservices.php?page=
2

I do think you need to include the WebserviceClasses in your swf, by
dropping them in your library (from window, common libraries).
Drop a button on your stage, name it result_btn, and copy and paste the code
from the example.

greetz
Hans
 
________________________________

 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Merrill, Jason
> Sent: Thursday, May 18, 2006 4:35 PM
> To: [email protected]
> Subject: [Flashcoders] .NET and XML Web services
> 
> I've been using XML in Flash for a while, just by loading in 
> a physical XML file from a server.  In my new job I have an 
> ASP.NET coworker who said they wouldn't be able to create a 
> flat .xml file on the server for me because of security 
> restrictions, so he said he will be providing a Web service - 
> sending XML data directly to my Flash file.  I assume Flash 
> Remoting is the way to go: call an ASP page with Remoting and 
> get XML returned from it?  Or how does that work?  I have 
> done some Remoting before.  What is the best approach?  
>  
> Is there any sample code anyone can send?  And is there any 
> .NET XML web service someone has out there publicly that I 
> can try and connect to to test this out?  Thanks!
>  
> Jason Merrill
> Bank of America
> Learning and Organizational Effectiveness Technology Solutions
>  
> _______________________________________________
> [email protected]
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> 
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training 
> http://www.figleaf.com http://training.figleaf.com
> 

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to