In the vast majority of cases, you should use the WebService class.  If you
find that performance becomes an issue (the data is taking too long to
parse, or the Player is consuming large amounts of RAM after the data is
loaded), using LoadVars can be a good workaround.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: Thursday, May 18, 2006 12:02 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] .NET and XML Web services

So I might need to use LoadVars instead of the Webservices Classes since
I am targeting Flash player 7 correct? 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tom Lee
Sent: Thursday, May 18, 2006 11:53 AM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] .NET and XML Web services

Jim,

If you use the LoadVars.onData handler rather than the onLoad handler,
you get the raw response before it is parsed and you can invoke your own
parser.

I should note that the reason I ended up doing this is because I'm
dealing with huge chunks of data (greater than 1MB) and the WebService
class was simply not fast enough.  The WebService class uses a SoapCall
object to load the data, which in turn uses an XML object.  The XML
object had a memory leak in Player 7 (would consume 40MB of RAM for a
1MB web service response), and would also hang the player for about 10
seconds while it parsed all that data.

So, under normal circumstances, the WebService class would be just fine.
I don't mean to recommend that anyone use the LoadVars object for web
services unless they are targeting Player 7 and have no other
alternative.

-tom


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jim
Robson
Sent: Thursday, May 18, 2006 11:32 AM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] .NET and XML Web services

Tom:

How do you use a LoadVars object for an XML web service? I thought that
the LoadVars object only handled URL-encoded data.

Jim

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tom Lee
Sent: Thursday, May 18, 2006 11:26 AM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] .NET and XML Web services

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?p
age=
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

_______________________________________________
[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


_______________________________________________
[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