Dim hc As New HttpClient("http://10.26.254.23:8080//Identity.asmx/IdentityCheck")
hc.FormData.Add("Name","李三")
hc.FormData.Add("User","000000")
hc.FormData.Add("Password","w0****")
Dim ret As String = hc.getData()
Dim xo As Xobject = XObject.parse(ret)
'msgbox(xo)
这样的代码不对吗? 弹出错误,怎么改呢?
---------------------------
版本:2017.3.6.1
---------------------------
代码执行出错,错误信息:
System.Xml.XmlException: 缺少根元素。
在 System.Xml.XmlTextReaderImpl.Throw(Exception e)
在 System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res)
在 System.Xml.XmlTextReaderImpl.ParseDocumentContent()
在 System.Xml.XmlTextReaderImpl.Read()
在 System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
在 System.Xml.XmlDocument.Load(XmlReader reader)
在 System.Xml.XmlDocument.LoadXml(String xml)
在 Foxtable.XObject..ctor(String A_0)
在 Foxtable.XObject.Parse(String XML)
在 UserCode.Test()
---------------------------
确定
---------------------------
[此贴子已经被作者于2017/4/5 15:09:53编辑过]