Appendix A
Push XML API
Sample ASP Pages
Broadcast Server User Guide
72
'Load the XML into an XMLDOM object
Set SendDoc = server.createobject("Microsoft.XMLDOM")
SendDoc.ValidateOnParse= True
SendDoc.LoadXML(xmlString)
'Set the URL of the receiver
sURL = "http://192.168.1.201:9998/"
'Call the XML Send function (defined below)
set NewDoc = xmlSend (sURL, SendDoc)'xmlString)
'We receive back another XML DOM object!
'Tell the user what happened
response.Write "<b>XML DOC posted off:</b><br>"
response.write SendDoc.XML & "<br>"
response.write "<b>Target URL:</b> " & sURL & "<br>"
response.write "<b>XML DOC Received back: </b><br>"
response.write (NewDoc.Xml)
private function xmlsend(url, docSubmit)
Set poster = Server.CreateObject("MSXML2.ServerXMLHTTP")
poster.open "POST", url, false
poster.setRequestHeader "CONTENT_TYPE", "text/xml"
poster.send docSubmit
Set NewDoc = server.createobject("Microsoft.XMLDOM")
newDoc.ValidateOnParse= True
newDoc.LoadXML(poster.responseTEXT)
Set XMLSend = NewDoc
Set poster = Nothing
end function
%>
Summary of Contents for 16-300272
Page 1: ...Broadcast Server User Guide Release 2 1 Service Pack 16 300272 Issue 2 1 April 2006...
Page 8: ...Related Documentation viii Broadcast Server User Guide...
Page 22: ...Chapter 3 System Management Home page tips 14 Broadcast Server User Guide...
Page 24: ...Chapter 4 System Messages Quick FAQ 16 Broadcast Server User Guide...
Page 30: ...Chapter 5 User Management The User Page 22 Broadcast Server User Guide...
Page 48: ...Chapter 8 Media Management The Media Page 40 Broadcast Server User Guide...
Page 52: ...Chapter 9 External Service Management The External Service Page 44 Broadcast Server User Guide...
Page 60: ...Chapter 10 Broadcast Alert Management The Alert Page 52 Broadcast Server User Guide...
Page 64: ...Chapter 12 Troubleshooting Common problems 56 Broadcast Server User Guide...