Drive your Flash Front-Ends with SOAP (cont.)

Step 1: Create the ASP Listener
On the server, you need a way to handle incoming SOAP requests. You can use an ASP file to service the request. First, create a directory or virtual root in IIS and name it SOAPCalc. In that directory, create a new ASP file named "default.asp," containing the following code:

   <%@language=vbscript%>
   <%
      Set CalcSrv = 
         Server.CreateObject("SOAPCalc.CalcSrv")
      CalcSrv.Process Request, Response
   %>            
The ASP page receives the SOAP XML request from the Flash movie and passes its Request and Response objects to the CalcServ component (see Figure 1). CalcSrv loads and parses the SOAP request from the data stream, performs the requested calculation, and writes the SOAP reply to the ASP Response object, which sends it to the client (see Figure 2). The Flash application on the client reads the returned data and updates the calculator display.


Introduction

Step 2: Build the Server Calculator Component

Introduction Step 1: Create the ASP Listener Step 2: Build the Server Calculator Component
Step 3: Create the Flash Interface Step 4: Implement SOAP messaging  







 TALK BACK
Did you know that Flash 5 was capable of making SOAP calls to server-side code? Using Flash 5's XML capabilities, you can build highly interactive thin-client applications? Let us know what you think of the techniques in this article? Join the discussions at web.server.general and let us know.
Click here to Join
Try the demo

Get the code for this article

Macromedia Flash 5

Macromedia Flash Support Center

Learn more about SOAP

Microsoft SOAP Toolkit 2.0 SP2





 
Sponsored Links

Advertising Info  |   Member Services  |   Contact Us  |   Help  |   Feedback  |   Site Map
Jupiterweb networks

internet.comearthweb.comDevx.comClickZ

Search Jupiterweb:

Jupitermedia Corporation has four divisions:
JupiterWeb, JupiterResearch, JupiterEvents, and JupiterImages

Copyright 2004 Jupitermedia Corporation All Rights Reserved.
Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Jupitermedia Corporate Info | Newsletters | Tech Jobs | E-mail Offers

Copyright Information/Privacy Statement