高手救命,在线等待 为什么我在asp中 用GetTextNode取不出数据
客户端程序 用vba写
Set oSoapConnect = New HttpConnector
oSoapConnect.Property( "EndPointURL ") = "http://localhost/soaptest/test.asp "
oSoapConnect.Property( "Timeout ") = 10000
oSoapConnect.Connect
oSoapConnect.Property( "SoapAction ") = "testAction "
oSoapConnect.BeginMessage
Set oSoapMsg = New SoapSerializer
With oSoapMsg
.Init oSoapConnect.InputStream
.startEnvelope
.startBody
.startElement "PERSON "
.startElement "NAME "
.writeString cUserID
.endElement
.startElement "PSW "
.writeString cPassWord
.endElement
.endElement
.endBody
.endEnvelope
End With
服务器端程序 用asp写
Set oRequestMsg = CreateObject( "MSSOAP.SoapReader ")
oRequestMsg.Load Request
cSoapAction = oRequestMsg.soapAction
Call GetTextNode(oRequestMsg.Body.childNodes, "PERSON/NAME/ ", cName)
为什么就是上面GetTextNode这句话出错呢??写法不对吗 这句话去掉就能通过。
请问高手 哪里写的不对还缺少点什么呢?
[解决办法]
你检查GetTextNode的代码
[解决办法]
你先要看看这个节点的类型是否是Text