title: WCF : Service receiving "null" string after being sent a full string
body: <p>I am developing a very simple WCF Example, but I am dismally failing into retrieving, in server side, the string value I am sending from client side. My code is very basic though. If anyone could lead me to the tracks where to look at to fix this I would be very grateful (And please forgive my limited WCF knowledge)</p>
  
  <p><strong>EDIT :</strong> Funny Part is that I am able to retrieve a return value in client back from server !<br> (see modified code below)</p>
  
  <p><strong>Client code :</strong> </p>
  
  <pre><code>    public void SendData()
      {
          string rogerback = proxy.SendData("String To Be Delivered");
          Console.Writeline(rogerback); //&lt;--Prints "PICKABOO" 
      }
  
      [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
      [System.ServiceModel.ServiceContractAttribute(ConfigurationName = "IServiceOrder")]
      public interface IServiceOrder
      {
          [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IServiceOrder/SendData")]            
          string SendData(string data);
      }
  </code></pre>
  
  <p><strong>Server Code :</strong> </p>
  
  <pre><code>[ServiceContract]
  public interface IServiceOrder
  {
      [OperationContract]
      string SendData(string data);        
  }
  
  public class ServiceOrder : IServiceOrder
  {     
      public string SendData(string value)
      {
  
          if (value== null) Console.WriteLine("value IS NULL"); //&lt;--Always the case when I execute Client code SendData()
          return "PICKABOO";
          //return value &lt;-- returns null
          doSomething(value);
  
      }
  }
  </code></pre>