Page 1
Page 2
Page 3
The ASP file
To make this application easy to understand,
I have kept the ASP file very simple. The ASP file only
takes the XML document from the "Request" object
in the server and runs a query on the uploaded XML document.
<%
dim objXMLDocument
set objXMLDocument = Server.CreateObject( "Microsoft.XMLDOM"
)
objXMLDocument.async = false
objXMLDocument.load Request
Response.write "File uploaded successfully" &
vbcrlf
Response.write "Phone: " & objXMLDocument.documentElement.selectSingleNode("input[@name='cli_phone']").getAttribute(
"value" )
%>
So, the query is very simple, it just
looks into the XML document to get the phone number of the
client and send it back as a response to the successful
upload. This also means that the XML parser at the server
end can parse the XML document and you can do all sorts
of things on the server i.e. update database, email somebody,
etc.
I guess you have a question that we
are using "Request" object without passing any
variable where traditionally we are used to with "Request(some_variable)".
This is because if you do not specify any variable name,
the "Request" object is going to return the values
that the client browser passed to the server during an HTTP
request. That's exactly what we want since the MSXML parser
will transfer the entire XML document as a HTTP request
to the web server. I am going to show you an in-depth debugging
information which will help you to understand what the MSXML
parser writes to a web server.
Setting up the IIS Server
The IIS Server comes bundled with Active
Server Pages(ASP) support, so there is nothing to do about
that. Due to the security reasons, IIS does not allow any
script execution permission on a folder. You have to manually
set the permission to run scripts on the folder. This is
pretty easy. Open the IIS management console and select
the folder properties. On the "Execute Permission"
combo box, select the "Scripts only" and restart
IIS.

Previous Page
Next Page