title: Accessing sharepoint webservice from ASP
body: <p>I want to access sharepoint list webservice from classic ASP Page. I am creating the soap xml format and trying to call the webservice url, like this</p>
  
  <pre><code>Dim http ,soap
  
  soap = "&lt;?xml version='1.0' encoding='utf-8'?&gt;"
  soap =soap &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;"
  soap =soap &amp; "&lt;soap12:Body&gt;"
  soap =soap &amp; "&lt;GetListItems xmlns='http://schemas.microsoft.com/sharepoint/soap/'&gt;"
  soap =soap &amp; "&lt;listName&gt;Posts&lt;/listName&gt;"
  soap =soap &amp; "&lt;viewName&gt;&lt;/viewName&gt;"
  soap =soap &amp; "&lt;query&gt;&lt;/query&gt;"
  soap =soap &amp; "&lt;ViewFields&gt;&lt;FieldRef Name='Title' /&gt;&lt;FieldRef Name='Modified'/&gt;&lt;FieldRef Name='DefaultViewUrl'/&gt;&lt;FieldRef Name='ID'/&gt;&lt;FieldRef Name='Author'/&gt;&lt;FieldRef Name='Name'/&gt;&lt;FieldRef Name='Body'/&gt;&lt;FieldRef Name='NumComments'/&gt;&lt;FieldRef Name='DefaultViewUrl'/&gt;&lt;/ViewFields&gt;"
  soap =soap &amp; "&lt;rowLimit&gt;5&lt;/rowLimit&gt;"
  soap =soap &amp; "&lt;QueryOptions&gt;&lt;IncludeMandatoryColumns&gt;FALSE&lt;/IncludeMandatoryColumns&gt;&lt;DateInUtc&gt;FALSE&lt;/DateInUtc&gt;&lt;/QueryOptions&gt;"
  soap =soap &amp; "&lt;/GetListItems&gt;"
  soap =soap &amp; "&lt;/soap12:Body&gt;"
  soap =soap &amp; "&lt;/soap12:Envelope&gt;"
  
  Set http = CreateObject("MSXML2.XMLHTTP")
  http.Open "POST", URL, False
  http.setRequestHeader "Content-Type", "application/soap+xml;  charset=utf-8"
  http.send(soap)
  </code></pre>
  
  <p>But i am getting the error like "An error occurred on the server when processing the URL. Please contact the system administrator. 
  If you are the system administrator..." </p>
  
  <p>Do I need to pass any authentication or something else is the problem?.</p>