?? index1.htm
字號(hào):
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新建網(wǎng)頁 1</title>
</head>
<body>
<script language="javascript">
function getXmlHttp(maxver)//創(chuàng)建XMLHttp
{
var obj=null;
if(arguments.length==0)maxver=2;
try
{
obj=new ActiveXObject("MSXML"+maxver+".XMLHTTP");
}
catch(ex)
{
try
{
obj=new ActiveXObject("Microsoft.XMLHTTP");
}
catch(ex)
{
document.write("創(chuàng)建XMLHttp ActiveX控件失敗!");
}
}
return obj;
}
function formatxml(str)
{
tstr=str.replace(/&/g,"&");
tstr=tstr.replace(/</g,"<");
tstr=tstr.replace(/>/g,">");
//tstr=tstr.replace(/\n/g," ")
return tstr;
}
function sendXML(str,url)
{
var oReq = getXmlHttp();
var outrst;
oReq.open("POST",url,false);
oReq.setRequestHeader("Host","192.168.0.210");
oReq.setRequestHeader("Content-Length",str.length);
oReq.setRequestHeader("CONTENT-TYPE","text/xml; charset=utf-8");
oReq.send(str);
var xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.async=false;
xmlDoc.load(oReq.responsebody);
document.write("<textarea style=\"width:1000px;height:600px\">"+oReq.responsetext+"</textarea>");
}
function CreateXML()
{
var str="<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n";
str+="<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">\r\n";
str+=" <soap12:Body>\r\n";
str+=" <ServiceConsumeNotify xmlns="http://tempuri.org/">\r\n";
str+=" <aa>\r\n";
str+=" <featureStr xmlns="http://req.sp.ismp.chinatelecom.com">string</featureStr>\r\n";
str+=" <linkID xmlns="http://req.sp.ismp.chinatelecom.com">string</linkID>\r\n";
str+=" <productID xmlns="http://req.sp.ismp.chinatelecom.com">string</productID>\r\n";
str+=" <streamingNo xmlns="http://req.sp.ismp.chinatelecom.com">string</streamingNo>\r\n";
str+=" <userID xmlns="http://req.sp.ismp.chinatelecom.com">string</userID>\r\n";
str+=" <userIDType xmlns="http://req.sp.ismp.chinatelecom.com">int</userIDType>\r\n";
str+=" </aa>\r\n";
str+=" </ServiceConsumeNotify>\r\n";
str+=" </soap12:Body>\r\n";
str+="</soap12:Envelope>
return str;
}
function getvalue()
{
var str=CreateXML();
sendXML(str,"http://192.168.0.210/WebSite2/Service.asmx")
}
getvalue();
</script>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -