怎样使用SOAP协议连接asp与C#函数(急!在线等) asp去ms下载一个工具包,名字忘了你查查,服务器上注册后就可以了 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 不知道对你有没有用处,我学webService时一段测试javascript代码function test() { var strSend = "<?xml version=\"1.0\" encoding = \"utf-8\"?>"; strSend += "<soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">"; strSend += "<soap:Body>"; strSend += "<To3 xmlns=\"http://tempuri.org/\">"; strSend += "<TC>" + document.all.TC.value + "</TC>"; strSend += "</To3>"; strSend += "</soap:Body>"; strSend += "</soap:Envelope>"; document.all.txtDisplay.innerText = strSend; var httpMain=new ActiveXObject("Microsoft.XMLHTTP"); httpMain.Open("POST", "http://localhost/demo/22/TestService.asmx",false); httpMain.setRequestHeader("Content-Type","text/xml"); httpMain.setRequestHeader("SOAPAction","http://tempuri.org/To3");//To3()是调用的方法 httpMain.Send(strSend); if (httpMain.responseXML.xml!='') { document.all.txtDisplay2.innerText = httpMain.responseXML.xml; } } datagridview批量修改单元格值,麻烦来看看,急 WPF 类QQ头像 WPF中,在Property Trigger里面使用自定义的dependency property的问题 .NET 环境下用C# 如何连接Oracle10g 紧急问题求助,重分相谢! 输出到excel列显示不能自动调整高度。 zahuifan 请进 求获取这个网页中的ip与端口国家的一个正则 winform的线程的问题。 web 页面间数据传递 命名空间问题?在线马上给分....... 简单问题,求助,答着有分!
function test()
{
var strSend = "<?xml version=\"1.0\" encoding = \"utf-8\"?>";
strSend += "<soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">";
strSend += "<soap:Body>";
strSend += "<To3 xmlns=\"http://tempuri.org/\">";
strSend += "<TC>" + document.all.TC.value + "</TC>";
strSend += "</To3>";
strSend += "</soap:Body>";
strSend += "</soap:Envelope>";
document.all.txtDisplay.innerText = strSend;
var httpMain=new ActiveXObject("Microsoft.XMLHTTP");
httpMain.Open("POST", "http://localhost/demo/22/TestService.asmx",false);
httpMain.setRequestHeader("Content-Type","text/xml");
httpMain.setRequestHeader("SOAPAction","http://tempuri.org/To3");//To3()是调用的方法
httpMain.Send(strSend);
if (httpMain.responseXML.xml!='')
{
document.all.txtDisplay2.innerText = httpMain.responseXML.xml;
}
}