title: SOAP header Action was not understood
body: <p>I am trying to consume a webservice in C#.  Whenever i try to  call the function  from the web service class I am getting a "SOAP header Action was not understood".I've added web reference[not service reference] pointing the web service in my project. The following steps were  taken to add the web reference</p>
  
  <p>1) right click on the project -> Add WebReference</p>
  
  <p>when i examined the web service in web browser i found this in the header </p>
  
  <pre><code>&lt;wsdl:definitions name="MyService" targetNamespace="http://tempuri.org/"&gt;
      &lt;wsp:Policy wsu:Id="WSHttpBinding_ICAIService_policy"&gt;
          &lt;wsp:ExactlyOne&gt;&lt;wsp:All&gt;&lt;sp:TransportBinding&gt;
      &lt;wsp:Policy&gt;
  </code></pre>
  
  <p>I've done the following code to call the web service functions</p>
  
  <pre><code>WebStruct webS = new WebStruct();
  webS.Name = "Peter";
  webS.ID = 22;
  
  webS.Find(webS);
  </code></pre>