The first asp (test.asp) is:
----------------------------------------------------------------------------
-------------------
Dim objxmlhttp
Set objxmlhttp = Server.CreateObject("Msxml2.ServerXMLHTTP")
xmlStr = "<?xml version=""1.0""
encoding=""utf-8""?><search><type>basic</type><sessid>959404635</sessid><use
r></user><pass></pass><op></op><dd>01/Oct/2003</dd><du>7</du><dp>ANY</dp><ds
ANY</ds><accom></accom><ad>1</ad><ch>0</ch><res></res><ra></ra><bo></bo><pr
ice></price><fto></fto><ftr></ftr></search>"
objxmlhttp.Open "POST", "http://tqtest.galileo.ie/xml/xmltest.asp", False
objxmlhttp.setRequestHeader "Content-Type", "text/xml"
objxmlhttp.send xmlStr
Response.write objxmlhttp.responseText
Set objxmlhttp=nothing
----------------------------------------------------------------------------
-------------------
The second asp (xmltest.asp) is:
----------------------------------------------------------------------------
-------------------
tempdata=Request.BinaryRead(Request.TotalBytes)
Response.ContentType="text/xml"
Response.BinaryWrite tempdata
Response.End
----------------------------------------------------------------------------
-------------------
Right now the second file just spits back the XML code. But what I want to
do is readin the XML information, access a database, and return an XML
string. I am able to do this through the GET method, but the XML string is
quite long and it looks unprofessional. I would greatly prefer to use the
POST method.
Bob