title: XmlSerializer attribute not valid in Web Service using WCF
body: <p>I'm using WSCF.blue for generating the web service classes based on the WSDL and xsd. Calling the web service I receive the following error:</p>
  
  <p><code>"XmlSerializer attribute System.Xml.Serialization.XmlAttributeAttribute is not valid in Email. Only XmlElement, XmlArray, XmlArrayItem, XmlAnyAttribute and XmlAnyElement attributes are supported when IsWrapped is true."</code></p>
  
  <p>I'm getting the same result using <code>svcutil.exe</code>. (VS 2010, .NET Framework 3.5)</p>
  
  <p>Anybody ever heard about this problem?</p>
  
  <p>Generating the code using <code>WSDL.exe</code> (old web service .NET 2.0) gets me the expected result but the return value is always from type object where as the WSCF.blue gets me a specific return object (e.g. ResponseProfileDto instead of object)</p>
  
  <p>One of the class definitions looks like the following:</p>
  
  <pre><code>[System.Diagnostics.DebuggerStepThroughAttribute()]
  [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
  [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  [System.ServiceModel.MessageContractAttribute(WrapperName="ResendEmailRequest", WrapperNamespace="http://xy.com/test", IsWrapped=true)]
  public partial class ResendEmailRequest
  {
  
      [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "http://xy.com/test", Order = 0, Name = "Email")]
      [System.Xml.Serialization.XmlAttributeAttribute()]
      public string Email;
  
      [System.ServiceModel.MessageBodyMemberAttribute(Namespace = "http://xy.com/test", Order = 1, Name = "LoginName")]
      [System.Xml.Serialization.XmlAttributeAttribute()]
      public string LoginName;
  
      public ResendEmailRequest()
      {
      }
  
      public ResendEmailRequest(string Email, string LoginName)
      {
          this.Email = Email;
          this.LoginName = LoginName;
      }
  }
  </code></pre>
  
  <p>Regards</p>