%@LANGUAGE="VBSCRIPT"%> <% dim xmlReq, xmlRsp, http_obj dim today 'open connection to rezcentral for posting set http_obj=createObject("Microsoft.XMLHTTP") call http_obj.Open("POST", Session("RezUrl"), false) 'post xml request Set xmlReq = Server.CreateObject("Microsoft.XMLDOM") xmlReq.async = False xmlReq.Load(Server.MapPath("reqloc.xml")) 'set properties xmlReq.getElementsByTagName("Dategmtime").item(0).text=Now() xmlReq.getElementsByTagName("SenderID").item(0).text="TSD01" xmlReq.getElementsByTagName("RecipientID").item(0).text="TRN" xmlReq.getElementsByTagName("TradingPartnerCode").item(0).text="WEB" xmlReq.getElementsByTagName("CustomerNumber").item(0).text="12083" xmlReq.getElementsByTagName("Passcode").item(0).text="ALASKA" xmlReq.getElementsByTagName("SID").item(0).text=Session.SessionID xmlReq.getElementsByTagName("RemoteAddress").item(0).text=Trim(Request.ServerVariables("REMOTE_ADDR")) call http_obj.Send(xmlReq) Set xmlRsp = Server.CreateObject("Microsoft.XMLDOM") xmlRsp.async = False 'xmlRsp.LoadXml(http_obj.responseText) xmlRsp.LoadXml(replace(http_obj.responseText,"<","<")) 'replace '<:' with '<' today = now() dMon = datepart("m",today) if len(dMon)=1 then dMon = "0" & dMon dDay = datepart("d",today) if len(dDay)=1 then dDay = "0" & dDay dYear = datepart("yyyy",today) today = dMon & "/" & dDay & "/" & dYear later = dateadd("d",1,today) dMon = datepart("m",later) if len(dMon)=1 then dMon = "0" & dMon dDay = datepart("d",later) if len(dDay)=1 then dDay = "0" & dDay dYear = datepart("yyyy",later) later = dMon & "/" & dDay & "/" & dYear %>