title: .NET WCF Can't Decode "Chunked" response
body: <p>I am calling an axis web service from WCF.  The request works just fine but I get back null values.  Using Fiddler I was able to determine that the response is coming base as Transfer-Encoding: chunked.  This means that there are control characters in in the response BEFORE the xml.  WCF does NOT throw an error.  It just moves on and the object that is supposed to be returned by the Method is null.  Can anyone tell me how to tell WCF how to correctly handle an HTTP 1.1 chunked encoded message?</p>
  
  <p>Here is a link to someone asking a similer question:</p>
  
  <p><a href="http://www.biztalkgurus.com/forums/t/10860.aspx" rel="nofollow noreferrer">http://www.biztalkgurus.com/forums/t/10860.aspx</a></p>
  
  <p>Soap Response:</p>
  
  <pre><code>HTTP/1.1 200 OK
  Date: Wed, 06 May 2009 15:34:41 GMT
  Server: Apache
  Set-Cookie: JSESSIONID=01A43C26DB5E284B70F1F6D466D5CD5D; Path=/arsys
  Keep-Alive: timeout=15, max=100
  Connection: Keep-Alive
  Transfer-Encoding: chunked
  Content-Type: text/xml;charset=utf-8
  
  ba7
  &lt;?xml version="1.0" encoding="utf-8"?&gt;&lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;&lt;soapenv:Body&gt;&lt;ns0:HelpDesk_QueryList_ServiceResponse xmlns:ns0="urn:Port" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
      &lt;ns0:getListValues&gt;
          &lt;ns0:Assigned_Group&gt;CHQ-TSR-WEL&lt;/ns0:Assigned_Group&gt;
          &lt;ns0:Assigned_Group_Shift_Name/&gt;
          &lt;ns0:Assigned_Support_Company&gt;IT Support&lt;/ns0:Assigned_Support_Company&gt;
          &lt;ns0:Assigned_Support_Organization&gt;WH&lt;/ns0:Assigned_Support_Organization&gt;
          &lt;ns0:Assignee&gt;David&lt;/ns0:Assignee&gt;
          &lt;ns0:Categorization_Tier_1&gt;ADD&lt;/ns0:Categorization_Tier_1&gt;
          &lt;ns0:Categorization_Tier_2&gt;HARDWARE&lt;/ns0:Categorization_Tier_2&gt;
          &lt;ns0:Categorization_Tier_3&gt;DESKTOP/LAPTOP/NOTEBOOK&lt;/ns0:Categorization_Tier_3&gt;
          &lt;ns0:City/&gt;
          &lt;ns0:Closure_Manufacturer/&gt;
          &lt;ns0:Closure_Product_Category_Tier1/&gt;
          &lt;ns0:Closure_Product_Category_Tier2/&gt;
          &lt;ns0:Closure_Product_Category_Tier3/&gt;
          &lt;ns0:Closure_Product_Model_Version/&gt;
          &lt;ns0:Closure_Product_Name/&gt;
          &lt;ns0:Company&gt;IT Support&lt;/ns0:Company&gt;
          &lt;ns0:Contact_Company&gt;IT Support&lt;/ns0:Contact_Company&gt;
          &lt;ns0:Contact_Sensitivity&gt;Standard&lt;/ns0:Contact_Sensitivity&gt;
          &lt;ns0:Country/&gt;
          &lt;ns0:Department&gt;WEL&lt;/ns0:Department&gt;
          &lt;ns0:Summary&gt;Old PC to be Cascaded
  &lt;/ns0:Summary&gt;
          &lt;ns0:Notes&gt; User Name:
  Make: Dell
  Model: Latitude D600
  Serial Number: 
  Location: &lt;/ns0:Notes&gt;
          &lt;ns0:First_Name&gt;James&lt;/ns0:First_Name&gt;
          &lt;ns0:Impact&gt;3-Moderado/Limitado&lt;/ns0:Impact&gt;
          &lt;ns0:Incident_Number&gt;INC000000009017&lt;/ns0:Incident_Number&gt;
          &lt;ns0:Internet_E-mail&gt;&lt;/ns0:Internet_E-mail&gt;
          &lt;ns0:Last_Name&gt;Goodrich&lt;/ns0:Last_Name&gt;
          &lt;ns0:Manufacturer/&gt;
          &lt;ns0:Middle_Initial/&gt;
          &lt;ns0:Organization&gt;--&lt;/ns0:Organization&gt;
          &lt;ns0:Phone_Number&gt;+326&lt;/ns0:Phone_Number&gt;
          &lt;ns0:Priority&gt;Medium&lt;/ns0:Priority&gt;
          &lt;ns0:Priority_Weight/&gt;
          &lt;ns0:Product_Categorization_Tier_1&gt;HARDWARE&lt;/ns0:Product_Categorization_Tier_1&gt;
          &lt;ns0:Product_Categorization_Tier_2&gt;DESKTOP/LAPTOP/NOTEBOOK&lt;/ns0:Product_Categorization_Tier_2&gt;
          &lt;ns0:Product_Categorization_Tier_3&gt;CASCADE PC&lt;/ns0:Product_Categorization_Tier_3&gt;
          &lt;ns0:Product_Model_Version/&gt;
          &lt;ns0:Product_Name/&gt;
          &lt;ns0:Region&gt;&lt;/ns0:Region&gt;
          &lt;ns0:Reported_Source/&gt;
          &lt;ns0:Resolution&gt;New PC
  Make: 
  Model: 
  Serial Number: 
  Ship to:
  Shipping Carrier:
  Tracking Number:&lt;/ns0:Resolution&gt;
          &lt;ns0:Resolution_Category/&gt;
          &lt;ns0:Resolution_Category_Tier_2/&gt;
          &lt;ns0:Resolution_Category_Tier_3/&gt;
          &lt;ns0:Service_Type&gt;User Service Request&lt;/ns0:Service_Type&gt;
          &lt;ns0:Site&gt;Salt Lake City&lt;/ns0:Site&gt;
          &lt;ns0:Site_Group/&gt;
          &lt;ns0:Status&gt;Assigned&lt;/ns0:Status&gt;
          &lt;ns0:Status_Reason/&gt;
          &lt;ns0:Urgency&gt;3-Medium&lt;/ns0:Urgency&gt;
          &lt;ns0:VIP&gt;No&lt;/ns0:VIP&gt;
      &lt;/ns0:getListValues&gt;
  &lt;/ns0:HelpDesk_QueryList_ServiceResponse&gt;&lt;/soapenv:Body&gt;&lt;/soapenv:Envelope&gt;
  0
  </code></pre>