文章导航PC6首页软件下载单机游戏安卓资源苹果资源

pc软件新闻网络操作系统办公工具编程服务器软件评测

安卓新闻资讯应用教程刷机教程安卓游戏攻略tv资讯深度阅读综合安卓评测

苹果ios资讯苹果手机越狱备份教程美化教程ios软件教程mac教程

单机游戏角色扮演即时战略动作射击棋牌游戏体育竞技模拟经营其它游戏游戏工具

网游cf活动dnf活动lol周免英雄lol礼包

手游最新动态手游评测手游活动新游预告手游问答

您的位置:首页技术开发ASP 学院 → ASP调用带验证的XFire(soap Header)

ASP调用带验证的XFire(soap Header)

时间:2009/11/10 11:55:00来源:本站整理作者:我要评论(0)

-
<%
 '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&"&nbsp;"
 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框架模式方法如何实现分享