consuming SOAP web services in classic ASP

后端 未结 2 1094
不知归路
不知归路 2021-01-19 05:00

I have a problem with this is code:

Set oXmlHTTP = CreateObject(\"Microsoft.XMLHTTP\")
oXmlHTTP.Open \"POST\", \"http://www.oursite.com/WebServices/ourServic         


        
相关标签:
2条回答
  • 2021-01-19 05:44

    You're missing the:

    Set xmlResp = oXmlHTTP.responseXML
    

    This gives you access to an Msxml2.DOMDocument object. How you get the data from that really depends on the format of your soap response.

    It should probably look something like this:

    <%    Set nodes = xmlResp.getElementsByTagName("returnVal") %>
    <ul>
    <%    For Each node in nodes    %> 
       <li><%=node.text%></li>
    <%    Next    %>
    </ul>
    

    See also:

    • DomDocument
    • ServerXMLHTTP
    • Using ServerXMLHTTP
    0 讨论(0)
  • 2021-01-19 05:53

    Consuming web services in classic asp

    0 讨论(0)
提交回复
热议问题