title: basic wcf message contract soap header question
body: <p>I have the following operation contract method:</p>
  
  <pre><code>[OperationContract]
  MyOutputMessageType DeleteVRequest(DeleteVRequest type);  
  
  [MessageContract]    
  public class DeleteVRequest
     {
  
      [MessageHeader(Name = "UserId")]
      public Guid UserId;
  
      [MessageHeader(Name = "Password")]
      public String Password;
  
      [MessageHeader(Name = "Version")]
      public String Version;
  
      [MessageBodyMember]
      public Guid Id;
  }
  
  [MessageContract]
  public class MyOutputMessageType
  {
      [MessageBodyMember]
      public string Response;
  }
  </code></pre>
  
  <p>My question is how are the soap header values of the contract (userid,password,version) set for the call on the client side? If I write a header value using Add on the outgoingmessageheaders it does not seem to map to the value in the messagecontract. So for instance if I add a UserId value to the headers, it does not seem to see that within the DeleteVRequest method.</p>
  
  <p>Thanks for any help, I've really been struggling with SOAP header reader/writing in SOAP.</p>