title: consuming SOAP web services in classic ASP
body: <p>I have a problem with this is code:</p>
  
  <pre><code>Set oXmlHTTP = CreateObject("Microsoft.XMLHTTP")
  oXmlHTTP.Open "POST", "http://www.oursite.com/WebServices/ourService.asmx?WSDL", False 
  
  oXmlHTTP.setRequestHeader "Content-Type", "application/soap+xml; charset=utf-8" 
  oXmlHTTP.setRequestHeader "SOAPAction", "http://ourNameSpace/ourFunction"
  
  SOAPRequest = _
    "&lt;?xml version=""1.0"" encoding=""utf-8""?&gt;" &amp;_
    "&lt;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""&gt;" &amp;_
      "&lt;soap12:Body&gt;" &amp;_
        "&lt;ourFunction xmlns=""http://ourNameSpace/""&gt;" &amp;_
          "&lt;var1&gt;" &amp; Session("userid") &amp; "&lt;/var1&gt;" &amp;_
          "&lt;var2&gt;" &amp; Session("internetid") &amp; "&lt;/var2&gt;" &amp;_
        "&lt;/ourFunction&gt;" &amp;_
      "&lt;/soap12:Body&gt;" &amp;_
    "&lt;/soap12:Envelope&gt;"
  
  oXmlHTTP.send SOAPRequest
  </code></pre>
  
  <p></p>
  
  <p>It executes and gives no error, but I can't find any output, or I can't parse it even if it exists - but in both cases I don't know about it.</p>
  
  <p>After doing the call, how am I supposed to get the parsing of returned XML?</p>