ub ''-------------------------------------------------- ''获取返回xml的节点信息 ''XmlClassObj.GetSingleNode("//msg") ''-------------------------------------------------- Public Function GetSingleNode(nodestring) If IsObject(m_GetXmlDoc) Then GetSingleNode = m_GetXmlDoc.documentElement.selectSingleNode(nodestring).text Else GetSingleNode = "" End If End Function ''''''''''''''''''''''''''''''''''''发送xml部分结束
''''''''''''''''''''''''''''''''''''接收xml部分开始 ''-------------------------------------------------- ''接收XML包,错误信息通过Message对象获取 ''-------------------------------------------------- Public Function AcceptHttpData() Dim XMLdom Set XMLdom = Server.CreateObject("Microsoft.XMLDOM") XMLdom.Async = False XMLdom.Load(Request) If XMLdom.parseError.errorCode <> 0 Then MessageCode = "不能正确接收数据" & "Description: " & XMLdom.parseError.reason & "<br>Line: " & XMLdom.parseError.Line Set m_XmlDocAccept = Null Else Set m_XmlDocAccept = XMLdom End If End Function ''-------------------------------------------------- ''返回接收XML包节点信息 ''XmlClassObj.GetSingleNode("//msg") ''-------------------------------------------------- Public Function AcceptSingleNode(nodestring) If IsObject(m_XmlDocAccept) Then AcceptSingleNode = m_XmlDocAccept.documentElement.selectSingleNode(nodestring).text Else AcceptSingleNode = "" End If End Function ''-------------------------------------------------- ''打印接收端接收到的XML数据 ''-------------------------------------------------- Public Sub PrintAcceptXmlData() Response.Clear Response.ContentType = |