title: webservice method parameter always null
body: <p>I created a C # webservice through a WSDL from another webservice made in PHP. All calls work but the parameters sent in xml always arrive null.
  This is my code:</p>
  
  <pre><code>[WebService(Namespace = "urn:PGSMS")]
  [GeneratedCode("System.Xml", "2.0.50727.3082")]
  [System.Xml.Serialization.SoapType(Namespace = "urn:PGSMS")]
  [SoapDocumentService(RoutingStyle = SoapServiceRoutingStyle.RequestElement)]
  [System.Web.Script.Services.ScriptService]
  public class PGSMS : System.Web.Services.WebService, PGSMSPortType
  {
      [WebMethod]
      [OperationContract(Action = "urn:PGSMS#PGSMS")]
      public string envioAvulso(string token, string carteira, string msg, string fones, string data, string retorno, string dadocliente)
      {
          IntegraBellinati.envioAvulsoRequest envio = new IntegraBellinati.envioAvulsoRequest();
          envio.token = token;
          envio.msg = msg;
          envio.fones = fones;
          envio.carteira = carteira;
          envio.data = data;
          envio.dadocliente = dadocliente;
          envio.retorno = retorno;
  
          IntegraBellinati.IntegraBellinati integra = new IntegraBellinati.IntegraBellinati();
          return integra.envioAvulso(envio);
      }
  
  }
  [System.ServiceModel.ServiceContract(Namespace = "urn:PGSMS", ConfigurationName = "PGSMSPortType")]
  public interface PGSMSPortType
  {    
      string envioAvulso(string token, string carteira, string msg, string fones, string data, string retorno, string dadocliente);
  }
  </code></pre>
  
  <p>The method sendsAvulso executes normally, but all methods arrive null.
  This is the xml that my client is trying to post:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="urn:PGSMS" xmlns:types="urn:PGSMS/encodedTypes" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
  &lt;soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"&gt;
  &lt;tns:envioAvulso&gt;
  &lt;token xsi:type="xsd:string"&gt;xxxxxxxxxxxxxxxx&lt;/token&gt;
  &lt;carteira xsi:type="xsd:string"&gt;12&lt;/carteira&gt;
  &lt;msg xsi:type="xsd:string"&gt;Teste de msg&lt;/msg&gt;
  &lt;fones xsi:type="xsd:string"&gt;41988326802&lt;/fones&gt;
  &lt;data xsi:type="xsd:string"&gt;2017-10-09 00:00:00&lt;/data&gt;
  &lt;retorno xsi:type="xsd:string"&gt;12&lt;/retorno&gt;
  &lt;dadocliente xsi:type="xsd:string"&gt;12&lt;/dadocliente&gt;
  &lt;/tns:envioAvulso&gt;
  &lt;/soap:Body&gt;
  &lt;/soap:Envelope&gt;
  </code></pre>
  
  <p>Using SoapUI I was able to make the post and received the correct parameters, it generated this xml.</p>
  
  <pre><code>&lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:PGSMS"&gt;
     &lt;soapenv:Header/&gt;
     &lt;soapenv:Body&gt;
        &lt;urn:envioAvulso&gt;
           &lt;urn:token&gt;?&lt;/urn:token&gt;
           &lt;urn:carteira&gt;?&lt;/urn:carteira&gt;
           &lt;urn:msg&gt;?&lt;/urn:msg&gt;
           &lt;urn:fones&gt;?&lt;/urn:fones&gt;
           &lt;urn:data&gt;?&lt;/urn:data&gt;
           &lt;urn:retorno&gt;?&lt;/urn:retorno&gt;
           &lt;urn:dadocliente&gt;?&lt;/urn:dadocliente&gt;
        &lt;/urn:envioAvulso&gt;
     &lt;/soapenv:Body&gt;
  &lt;/soapenv:Envelope&gt;
  </code></pre>
  
  <p>But my client can not change his xml. What can I be doing wrong?
  Thank's</p>