服务器上的asmx文件如下:UsersWebService
单击此处,获取完整的操作列表。DepartmentEdit测试
测试窗体只能用于来自本地计算机的请求。 
SOAP 1.1
以下是 SOAP 1.2 请求和响应示例。所显示的占位符需替换为实际值。POST /yzjsxy/UsersWebService.asmx HTTP/1.1
Host: 202.102.112.8
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/DepartmentEdit"<?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>
    <DepartmentEdit xmlns="http://tempuri.org/">
      <departmentId>int</departmentId>
      <departmentName>string</departmentName>
    </DepartmentEdit>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length<?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>
    <DepartmentEditResponse xmlns="http://tempuri.org/">
      <DepartmentEditResult>int</DepartmentEditResult>
    </DepartmentEditResponse>
  </soap:Body>
</soap:Envelope>
SOAP 1.2
以下是 SOAP 1.2 请求和响应示例。所显示的占位符需替换为实际值。POST /yzjsxy/UsersWebService.asmx HTTP/1.1
Host: 202.102.112.8
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length<?xml version="1.0" encoding="utf-8"?>
<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">
  <soap12:Body>
    <DepartmentEdit xmlns="http://tempuri.org/">
      <departmentId>int</departmentId>
      <departmentName>string</departmentName>
    </DepartmentEdit>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length<?xml version="1.0" encoding="utf-8"?>
<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">
  <soap12:Body>
    <DepartmentEditResponse xmlns="http://tempuri.org/">
      <DepartmentEditResult>int</DepartmentEditResult>
    </DepartmentEditResponse>
  </soap12:Body>
</soap12:Envelope>asp调用文件如果下:
<%
url = "http://服务器IP/UsersWebService.asmx"
SoapRequest="<?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>"& _
"<DepartmentEdit xmlns=""http://tempuri.org/"">"& _
"<departmentId>1</departmentId>"& _
"<departmentName>测试部门1</departmentName>"& _
"</soap:Body>"& _
"</soap:Envelope>"Set xmlhttp = server.CreateObject("Msxml2.XMLHTTP")
xmlhttp.Open "POST",url,false
xmlhttp.setRequestHeader "Content-Type", "text/xml;charset=utf-8"
xmlhttp.setRequestHeader "HOST","服务器IP"
xmlhttp.setRequestHeader "Content-Length",LEN(SoapRequest)
xmlhttp.setRequestHeader "SOAPAction", "http://tempuri.org/DepartmentEdit"
xmlhttp.Send(SoapRequest)thexml = xmlhttp.responseText
Set x = server.createobject("MSXML2.DOMDocument")
x.loadXML thexml
str = x.childNodes(1).Text   
response.write(str)
Set xmlhttp = Nothing
%>Microsoft VBScript 运行时错误 错误 '800a01a8' 缺少对象: 'x.childNodes(...)' /xml.asp,行 26
求服上面哪儿有误,先谢