title: WCF XmlSerializerFormat and OperationContract: nested soap parameters serialization
body: <p>After reading the post <a href="https://stackoverflow.com/questions/7557887/xmlserializer-with-specified-pattern-not-working">XmlSerializer with specified pattern not working</a> I try to implement such a service : OperationContract with the XmlSerializerFormat. But my Soap message contains an additional tag that is the operation parameter. How can I remove that tag ?</p>
  
  <p>Here is my service sample</p>
  
  <pre><code>[System.ServiceModel.ServiceContractAttribute(Namespace = "http://mynamespace.com/", ConfigurationName = "ConfigName")]
  public interface MyInterfacePort
  {
      [System.ServiceModel.OperationContractAttribute(Action = "http://mynamespace.com/opName", ReplyAction = "*")]
      [System.ServiceModel.FaultContractAttribute(typeof(MyError), Action = "http://mynamespace.com/opName", Name = "opErr")]
      [System.ServiceModel.XmlSerializerFormatAttribute()]
      opResponse opName(opRequest request);
  </code></pre>
  
  <p>Then the serialized request:</p>
  
  <pre><code>[System.Serializable]
   public partial class opRequest
  {
          public string myProperty;
  </code></pre>
  
  <p>generated soap message:</p>
  
  <pre><code>&lt;s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"&gt;
      &lt;s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
          &lt;opName xmlns="http://mynamespace.com/"&gt;
              &lt;request&gt;
                  &lt;myProperty&gt;262157&lt;/myProperty&gt;
              &lt;/request&gt;
          &lt;/opName&gt;
      &lt;/s:Body&gt;
  &lt;/s:Envelope&gt;
  </code></pre>
  
  <p>My service doesn't handle the additional &lt;request&gt; tag</p>
  
  <p>Thank's for your help.</p>