title: Keep < and > in CData when sending SOAP request from .NET client
body: <p>We have a standard web service client created in VS 2012 with .NET 4.5 where the service reference is created through “Add service reference” in VS.</p>
  
  <p>The service has an element defined like: </p>
  
  <pre><code>&lt;xsd:element minOccurs="0" maxOccurs="1" name="Data" type="xsd:string" /&gt;
  </code></pre>
  
  <p>This element is supposed to contain CDATA with XML like:</p>
  
  <pre><code>&lt;![CDATA[&lt;data&gt;somedata&lt;/data&gt;]]&gt;
  </code></pre>
  
  <p>Since this is a string, the element is serialized and sent to the service like</p>
  
  <pre><code>&amp;lt;![CDATA[&amp;lt;data&amp;gt;somedata&amp;lt;/data&amp;gt;]] &amp;gt;
  </code></pre>
  
  <p>The problem is that the web service don’t understand &amp;lt and &amp;gt. Since the web service is managed by a government agency this will not change anytime soon.
  Is there an easy way to tell the client not to escape &lt; and >?</p>
  
  <p><strong>Update:</strong>
  Simplified version of how we send the request (C#):</p>
  
  <pre><code>Form form = new Form();
  form.FormData = "&lt;![CDATA[&lt;message&gt;data&lt;/message&gt;]]&gt;";
  WebServiceClient client = new WebServiceClient();
  var respons = client.SubmitForm(form);
  </code></pre>