Hi,
I am trying to write a web service in ASP classic which will trigger an e-mail alert when XML data is received from a printer.
After much investigation I have found the data is posted with the name "XML_String" and so I can display it in my email by saying
<% = Request.Form("XML_String") %>
I have another web service that works with XML that arrives in a different way and uses the following code:
How can I adapt this so it uses XML_String instead?
Thanks very much
Ed
I am trying to write a web service in ASP classic which will trigger an e-mail alert when XML data is received from a printer.
After much investigation I have found the data is posted with the name "XML_String" and so I can display it in my email by saying
<% = Request.Form("XML_String") %>
I have another web service that works with XML that arrives in a different way and uses the following code:
Code:
set docReceived = CreateObject("Microsoft.XMLDOM")
docReceived.async = False
docReceived.load Request
'Convert the date to SQL format
SQLDate=DatePart("yyyy", Date()) & "/" & DatePart("m", Date()) & "/" & DatePart("d", Date())
'Use the hostname to get an AssetID
MakeAndModel = docReceived.getElementsByTagName("sys:DeviceIdentification").item(0).childNodes(0).text
MachineName = docReceived.getElementsByTagName("sys:CustomerInformation").item(0).childNodes(0).text
ControlPanelMessage = docReceived.getElementsByTagName("sys:DeviceInformation").item(0).childNodes(2).text
How can I adapt this so it uses XML_String instead?
Thanks very much
Ed