|
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.
|
 |
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.
|
|
|
|
|
|
|