title: SSRS ReportingService2010 SOAP Call returning HTML, not SOAP XML
body: <p>I'm trying to make a SOAP call to the SSRSReporting SOAP service, and receive a SOAP response in XML format. I am trying to use <a href="https://github.com/hooklift/gowsdl" rel="nofollow noreferrer">go-wsdl</a> to generate a SSRS SOAP API, however it seems that its "not working" in Go. I want to list the children using go-wsdl. The code below is returning an empty response. </p>
  
  <pre><code>package main
  
  import ssrs "ssrs/myservice"
  import "fmt"
  
  //curl  http://172.16.1.249/ReportServer/ListChildren -n -v --ntlm -u viewpointops\\dustinf.7C49
  func main() {
      fmt.Print("gucci\n")
      client := ssrs.NewSOAPClient("http://$HOST/ReportServer/ReportService2010.asmx", true, &amp;ssrs.BasicAuth{Login: "$USER", Password: "$PASSWORD"})
      resp := ssrs.ListChildrenResponse{}
  
      err := client.Call("ListChildren", ssrs.ListChildren{ ItemPath: "/VCS/Custom/", Recursive: true }, resp) 
      fmt.Println(err)
      fmt.Println("%v", resp)
  }
  </code></pre>
  
  <p>I'm thinking that maybe I don't understand SOAP and what it is, but also know that when I try to duplicate the request in curl, its not returning the XML response I expect it to return. </p>
  
  <pre><code>curl http://$HOST/ReportServer/ReportService2010.asmx -n -v --ntlm -u $USER  -H "Content-Type: text/xml; charset=utf-8" -H "SOAPAaction: ListChildren" --data '&lt;Envelope xmlns="http://schemas.xmlg/soap/envelope/"&gt;&lt;Body xmlns="http://schemas.xmlsoap.org/soap/envelope/"&gt;&lt;ListChildren xmlns="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer"&gt;&lt;ItemPath&gt;/VCS/Custom/&lt;/ItemPath&gt;&lt;Recursive&gt;true&lt;/Recursive&gt;&lt;/ListChildren&gt;&lt;/Body&gt;&lt;/Envelope&gt;' -H "Accept: text/xml; charset=utf-8" -H "User-Agent: PHP/SOAP" 
  </code></pre>
  
  <p>I receive this response: </p>
  
  <pre><code>&lt;html&gt;
    &lt;head&gt;
      &lt;meta name="Generator" content="Microsoft SQL Server Reporting Services Version 11.0.6251.0"&gt;
      &lt;title&gt;172.16.1.249/ReportServer - /&lt;/title&gt;
    &lt;/head&gt;
    &lt;body&gt;&lt;H1&gt;172.16.1.249/ReportServer - /&lt;/H1&gt;&lt;hr&gt;
  
  &lt;pre&gt;   Thursday, December 12, 2013 4:04 PM        &amp;lt;dir&amp;gt; &lt;A HREF="?%2fVCS&amp;amp;rs:Command=ListChildren"&gt;VCS&lt;/A&gt;
  &lt;/pre&gt;&lt;hr&gt;
  Microsoft SQL Server Reporting Services Version 11.0.6251.0
  
    &lt;/body&gt;
   &lt;/html&gt; 
  </code></pre>
  
  <p>I'd REALLY like to have the response returned in SOAP XML format so I can use a SOAP parser. I tried the Accept Header, but that's not working. I am mostly asking SO because I don't know what else to try.  If not, I guess I can just parse the HTML version, but the whole point is to use the generated code from wsdl and use the SOAP interface. </p>
  
  <p>Thanks!</p>