Web Service Soap认证[10]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 visualsw 的 blog

    set objhttp = createobject("msxml2.xmlhttp")

    set xmldoc = createobject("msxml2.domdocument")

   

    strurl = "http://localhost/soapcheck.asmx"

   

    struser = trim$(struser)

   

    strpassword = trim$(strpassword)

 

    '生成soap xml

    strsoap = "<?xml version=""1.0"" encoding=""utf-8""?>"

    strsoap = strsoap & vbcrlf & "<soap:envelope xmlns:xsi=""http://www.w3.org/2001/xmlschema-instance"" "

    strsoap = strsoap & vbcrlf & "xmlns:xsd=""http://www.w3.org/2001/xmlschema"" "

    strsoap = strsoap & vbcrlf & "xmlns:soap=""http://schemas.xmlsoap.org/soap/envelope/"">"

    strsoap = strsoap & vbcrlf & "<soap:header>"

    strsoap = strsoap & vbcrlf & "<account xmlns=testsoap.webservice>"

    strsoap = strsoap & vbcrlf & "<struser>" & struser & "</struser>"

    strsoap = strsoap & vbcrlf & "<strpassword>" & strpassword & "</strpassword>"

本文关键:Web Service,Soap
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top