-
<%
'response.ContentType = "text/html"
'Response.Charset = "utf-8"
url = "http://172.17.99.94:8080/rishis/services/QueryService"
soapUserName = "ris"
soapPassword = "tzyyage542"
SoapRequest="<?xml version="&CHR(34)&"1.0"&CHR(34)&" encoding="&CHR(34)&"gbk"&CHR(34)&"?>"& _
"<soap:Envelope xmlns:xsi="&CHR(34)&"http://www.w3.org/2001/XMLSchema-instance"&CHR(34)&" "& _
"xmlns:xsd="&CHR(34)&"http://www.w3.org/2001/XMLSchema"&CHR(34)&" "& _
"xmlns:soap="&CHR(34)&"http://schemas.xmlsoap.org/soap/envelope/"&CHR(34)&">"& _
"<soap:Header>"& _
"<AuthenticationToken xmlns="&CHR(34)&"http://spring.com"&CHR(34)&">"&_
"<Username>"& soapUserName &_
"</Username>"&_
"<Password>" & soapPassword &_
"</Password>"&_
"</AuthenticationToken>"&_
"</soap:Header>"& _
"<soap:Body>"& _
"<GetYjSqd_All xmlns="&CHR(34)&"http://spring.com"&CHR(34)&">"& _
"<in0>1</in0>"& _
"<in1>2007-06-01 00:00:00</in1>"& _
"<in2>2007-06-06 00:00:00</in2>"& _
"</GetYjSqd_All>"& _
"</soap:Body>"& _
"</soap:Envelope>"
Set xmlhttp = server.CreateObject("Msxml2.XMLHTTP")
xmlhttp.Open "POST",url,false
xmlhttp.setRequestHeader "Content-Type", "text/xml;charset=gbk"
xmlhttp.setRequestHeader "HOST","172.17.99.94:8080"
xmlhttp.setRequestHeader "Content-Length",LEN(SoapRequest)
xmlhttp.setRequestHeader "SOAPAction", "http://spring.com/GetYjSqd_All"
xmlhttp.Send(SoapRequest)
If xmlhttp.Status = 200 Then
Set xmlDOC =server.CreateObject("MSXML.DOMDocument")
Response.write xmlhttp.getResponseHeader("Content-Type")
xmlDOC.load(xmlhttp.responseXML)
xmlDOC.save("C:\1.xml")
Else
Response.Write xmlhttp.Status&" "
Response.Write xmlhttp.StatusText
End if
Set xmlDOC = nothing
Set xmlhttp = Nothing
相关视频
相关阅读 ASP获取到的系统时间有上午,下午的解决方法图解狂野飙车8无限 Asphalt 8:Infinity首度曝光ASP中常用的文件处理函数asp下面javascript上传图片限制格式大小方法ie6下面asp.net mvc3 部署应用程序ASP网站安装不成功的解决办法asp的日期转换星座函数快速掌握ASP连接11种数据库的常用语法
热门文章 没有查询到任何记录。
最新文章
127.0.0.1 需要输入用Microsoft JET Databa
ASP木马密码加密的破解方法Asp中文件上传,fso方法大全js报错 抛出例外解决方法-适用于ecshop 调用127.0.0.1 需要输入用户名密码的解决方法
人气排行 教你如何用ASP生成HTML静态网页127.0.0.1 需要输入用户名密码的解决方法编写简单ASP代码测试WEB服务器环境asp用户登录模块实例代码ASP保存远程文件到本地(实用版)js报错 抛出例外解决方法-适用于ecshop 调用如何调试ASP的环境ASP.NET中MVC框架模式方法如何实现分享
查看所有0条评论>>