ASP调用WEBSERVICE文档(1)
----INDEX----1. soap请求方式2. post请求方式3. SHOWALLNODE函数(关于节点各属性和数据显示)---------------------一.SOAP请求示例下面是一个 SOAP 请求示例。所显示的占位符需要由实际值替换。POST /WebService1/UserSignOn.asmx HTTP/1.1Host: 192.100.100.81Content-Type: text/XML; charset=utf-8Content-Length: lengthSOAPAction: "http://tempuri.org/LoginByAccount"
<?xml version="1.0" encoding="utf-8"?><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/"> <soap:Body> <LoginByAccount xmlns="http://tempuri.org/"> <username>string</username> <passWord>string</password> </LoginByAccount> </soap:Body></soap:Envelope>为了与WEBSERVICE交互,需要构造一个与上完全相同的SOAP请求:<%url = "http://192.100.100.81/WebService1/UserSignOn.asmx"
SoapRequest="<?xml version="&CHR(34)&"1.0"&CHR(34)&" encoding="&CHR(34)&"utf-8"&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)&" "& _