title: Getting Exception while calling soap webservice
body: <p>When I am using SoapUI to call <a href="http://www.ocrwebservice.com/services/OCRWebService.asmx?op=OCRWebServiceRecognize" rel="nofollow">this web service</a>  I am getting the correct response but when I implement this in android, I am getting the below exception,</p>
  
  <blockquote>
    <p>system.web.services.protocols.soapheaderexception (some information is missing).</p>
  </blockquote>
  
  <p>This is what I tried,</p>
  
  <pre><code>       HttpPost httppost = new HttpPost("http://www.ocrwebservice.com/services/OCRWebService.asmx");
         StringEntity se = new StringEntity(SOAPRequestXML,HTTP.UTF_8);
         se.setContentType("text/xml");
         httppost.setHeader("Content-Type", "text/xml;charset=UTF-8");
         httppost.setEntity(se);
         HttpClient httpclient = new DefaultHttpClient();
         BasicHttpResponse httpResponse = 
          (BasicHttpResponse) httpclient.execute(httppost);
      HttpEntity resEntity = httpResponse.getEntity();
  </code></pre>
  
  <p>I tried other combinations also like,
                 <code>httppost.setHeader("Accept-Charset","utf-8")</code>
  and
                 <code>httppost.setHeader("Content-Type","application/soap+xml;charset=UTF-8")</code></p>
  
  <p>But nothing worked.</p>
  
  <p>The error says,</p>
  
  <blockquote>
    <p>System.Web.Services.Protocols.SoapHeaderException: WSE012: The input was not a valid SOAP message because the following information is missing: action.</p>
  </blockquote>