怎样在后台代码中调用远程web服务,调用后返回一个xml文件,关键是如何解析这个xml文件!
RT...................
远程接口的URL是:
http://UserName:Password@211.*.*.*/service/service.asmx/具体方法名及参数
返回的XML格式如下:
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<IRequestResult xmlns="http://wapdm.com/SmbpHttpAgent/">
<ErrorInfo>string</ErrorInfo>
<Result>int</Result>
</IRequestResult>
当Result节点的值不为0时,要获得ErrorInfo节点的值.