title: How to add authentication header in webservice?
body: <p>I have a webservice </p>
  
  <pre><code>`&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"&gt;
    &lt;soap:Header&gt;
      &lt;AuthenticationHeader xmlns="http://tempuri.org/"&gt;
        &lt;UserID&gt;int&lt;/UserID&gt;
        &lt;Password&gt;string&lt;/Password&gt;
      &lt;/AuthenticationHeader&gt;
    &lt;/soap:Header&gt;
    &lt;soap:Body&gt;
      &lt;InsertPartnerComplaint xmlns="http://tempuri.org/"&gt;
        &lt;ServicePartner&gt;
          &lt;PartnerID&gt;int&lt;/PartnerID&gt;
          &lt;VCNo&gt;string&lt;/VCNo&gt;
          &lt;MobileNo&gt;string&lt;/MobileNo&gt;
          &lt;Remarks&gt;string&lt;/Remarks&gt;
          &lt;ReferenceNo&gt;string&lt;/ReferenceNo&gt;
          &lt;ComplaintNo&gt;decimal&lt;/ComplaintNo&gt;
          &lt;Status&gt;short&lt;/Status&gt;
          &lt;ErrorDescription&gt;string&lt;/ErrorDescription&gt;
          &lt;SyncStatus&gt;short&lt;/SyncStatus&gt;
          &lt;ClientIPAddress&gt;string&lt;/ClientIPAddress&gt;
        &lt;/ServicePartner&gt;
      &lt;/InsertPartnerComplaint&gt;
    &lt;/soap:Body&gt;
  &lt;/soap:Envelope&gt;`
  </code></pre>
  
  <p>I am not able to add authentication header into it, I am follwing this approach</p>
  
  <pre><code>`PartnerComplaintServices partnerComplaintServices=new PartnerComplaintServices();
  PartnerComplaintServicesSoap partnerComplaintServicesSoap=partnerComplaintServices.getPartnerComplaintServicesSoap();
          ServicePartner servicePartner=new ServicePartner();
          System.out.println(partnerComplaintServices.getHandlerResolver());
          servicePartner.setPartnerID(1);
          servicePartner.setVCNo("01507400066");
          servicePartner.setMobileNo("9872345648");
          servicePartner.setRemarks("test");
          servicePartner.setReferenceNo("test");
  partnerComplaintServicesSoap.insertPartnerComplaint(servicePartner);`
  </code></pre>
  
  <p>There is a objectfactory which contains Authentication. Url for wsdl is 
  <code>http://180.179.201.148:9443/Services/ServicePartner/PartnerComplaintServices.asmx?WSDL</code></p>