title: How to prevent serializer to enclose string with CDATA
body: <p>I am looking for a way to stop the Serializer in my Web API to enclose a String with a CDATA Tag. My Soap Service uses a escaped String field in the body to hold a xml Doc. The remote SoapService does not understand and handle CDATA enclosed String so i need to find a way to tell it either not to enclose it or find a way to remove it before its send.</p>
  
  <pre><code>`&lt;System.Web.Services.Protocols.SoapHeaderAttribute("AuthHeaderValue"), System.Web.Services.Protocols.SoapHeaderAttribute("tMLHeaderValue"),System.Web.Services.Protocols.SoapRpcMethodAttribute("", RequestNamespace:="java:lsr.webservice.wisor.com", ResponseNamespace:="java:lsr.webservice.wisor.com", Use:=System.Web.Services.Description.SoapBindingUse.Literal)&gt;  _
  
  Public Function processSyncRequest(ByVal [string] As String) As &lt;System.Xml.Serialization.XmlElementAttribute("response")&gt; String
  Dim results() As Object = Me.Invoke("processSyncRequest", New Object() {[string]})
  Return CType(results(0),String)
  End Function`
  </code></pre>
  
  <p>which creates this body with the CDATA</p>
  
  <pre><code>&lt;string xmlns=""&gt;&lt;![CDATA[&amp;lt;localserviceporequest xmlns:xsi=&amp;quot;http://www.w3.org/2001/XMLSchema-instance&amp;quot; xmlns:xsd=&amp;quot;http://www.w3.org/2001/XMLSchema&amp;quot; xmlns=&amp;quot;http://www.synchronoss.com/lsr/FTR_PO&amp;quot;&amp;gt;
  &amp;lt;addressvalidation&amp;gt;
  &amp;lt;ccna&amp;gt;XD1&amp;lt;/ccna&amp;gt;
  &amp;lt;txnum /&amp;gt;
  &amp;lt;dtsent /&amp;gt;
  &amp;lt;tos /&amp;gt;
  &amp;lt;ctval /&amp;gt;
  &amp;lt;location&amp;gt;
    &amp;lt;route /&amp;gt;
    &amp;lt;aft&amp;gt;N&amp;lt;/aft&amp;gt;
    &amp;lt;sano&amp;gt;1100&amp;lt;/sano&amp;gt;
    &amp;lt;sasf /&amp;gt;
    &amp;lt;sasd&amp;gt;S&amp;lt;/sasd&amp;gt;
    &amp;lt;sasn&amp;gt;Coast&amp;lt;/sasn&amp;gt;
    &amp;lt;sath&amp;gt;Hwy&amp;lt;/sath&amp;gt;
    &amp;lt;sass /&amp;gt;
    &amp;lt;city&amp;gt;Beach&amp;lt;/city&amp;gt;
    &amp;lt;state&amp;gt;CA&amp;lt;/state&amp;gt;
    &amp;lt;zip&amp;gt;90000&amp;lt;/zip&amp;gt;
  &amp;lt;/location&amp;gt;
  &amp;lt;/addressvalidation&amp;gt;
  &amp;lt;/localserviceporequest&amp;gt;]]&gt;&lt;/string&gt;
  </code></pre>