consuming SOAP web services in classic ASP

后端 未结 2 1097
不知归路
不知归路 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") %>
    
      <% For Each node in nodes %>
    • <%=node.text%>
    • <% Next %>

    See also:

    • DomDocument
    • ServerXMLHTTP
    • Using ServerXMLHTTP

提交回复
热议问题