title: WCF XML deserialization fail
body: <p>I've got this WSDL(the service is not mine): <a href="http://soaptest.webapi-beta.gratka.pl/dom.html?wsdl" rel="nofollow">http://soaptest.webapi-beta.gratka.pl/dom.html?wsdl</a></p>
  
  <p>When I get response from method "pobierz_kategorie" I get exception like that</p>
  
  <p>CommunicationException
  Error in deserializing body of reply message for operation 'pobierz_kategorie'.
  {"There is an error in XML document (2, 501)."} {"The specified type was not recognized: name='kategoria_drzewo', namespace='http://soap.webapi-beta.gratka.pl/dom.html', at ."}</p>
  
  <p>I would like to ask how to modify WSDL or WCF configuration or generated proxy to make it working. When I use PHP to call that method it works so I guess that must be some XMLSerializer problem.</p>
  
  <p>This the response message I get:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://soap.webapi-beta.gratka.pl/dom.html" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"&gt;
      &lt;SOAP-ENV:Body&gt;
          &lt;ns1:pobierz_kategorieResponse&gt;
              &lt;drzewo_kategorii SOAP-ENC:arrayType="ns1:kategoria_drzewo[48]" xsi:type="ns1:drzewo_kategorii"&gt;
                  &lt;item xsi:type="ns1:kategoria_drzewo"&gt;
                      &lt;id xsi:type="xsd:int"&gt;382&lt;/id&gt;
                      &lt;nazwa xsi:type="xsd:string"&gt;Dom&lt;/nazwa&gt;
                      &lt;dane xsi:type="xsd:string"&gt;0&lt;/dane&gt;
                      &lt;id_rodzic xsi:type="xsd:int"&gt;1&lt;/id_rodzic&gt;
                      &lt;poziom xsi:type="xsd:int"&gt;0&lt;/poziom&gt;
                      &lt;id_prasa xsi:type="xsd:int"&gt;2&lt;/id_prasa&gt;
                  &lt;/item&gt;
                  &lt;item xsi:type="ns1:kategoria_drzewo"&gt;
                      &lt;id xsi:type="xsd:int"&gt;8251&lt;/id&gt;
                      &lt;nazwa xsi:type="xsd:string"&gt;Pokoje&lt;/nazwa&gt;
                      &lt;dane xsi:type="xsd:string"/&gt;
                      &lt;id_rodzic xsi:type="xsd:int"&gt;382&lt;/id_rodzic&gt;
                      &lt;poziom xsi:type="xsd:int"&gt;1&lt;/poziom&gt;
                      &lt;id_prasa xsi:type="xsd:int"&gt;0&lt;/id_prasa&gt;
                  &lt;/item&gt;
              &lt;/drzewo_kategorii&gt;
          &lt;/ns1:pobierz_kategorieResponse&gt;
      &lt;/SOAP-ENV:Body&gt;
  &lt;/SOAP-ENV:Envelope&gt;
  </code></pre>
  
  <p>That is the request:</p>
  
  <pre><code>&lt;s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" xmlns:q1="http://soaptest.webapi-beta.gratka.pl/dom.html"&gt;
      &lt;s:Body s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
          &lt;q1:pobierz_kategorie&gt;
              &lt;sesja xsi:type="xsd:string"&gt;ad9e730460e334b916c95533c8da320003ac7e14&lt;/sesja&gt;
              &lt;id_kategoria xsi:type="xsd:int"&gt;382&lt;/id_kategoria&gt;
          &lt;/q1:pobierz_kategorie&gt;
      &lt;/s:Body&gt;
  &lt;/s:Envelope&gt;
  </code></pre>