title: Must Understand check failed for header http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd : Security
body: <p>I am consuming web service developed in the .net which accepts username and password as part of the SOAP header. I created SOAPHandler to create the header.</p>
  
  <p>I printed the message it is like below:</p>
  
  <pre><code>&lt;soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing"&gt;
  &lt;wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
   xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"&gt;
  
   &lt;wsse:UsernameToken&gt;
   &lt;wsse:Username&gt;xxxxxxxxxxx&lt;/wsse:Username&gt;
   &lt;wsse:Password&gt;xxxxxxxx&lt;/wsse:Password&gt;
   &lt;/wsse:UsernameToken&gt;
   &lt;/wsse:Security&gt;
   &lt;/soapenv:Header&gt;
  </code></pre>
  
  <p>When I hit the service I am receiving below error.</p>
  
  <pre><code>[4/3/16 18:53:10:342 EET] 00000027 SystemErr     R javax.xml.ws.WebServiceException: org.apache.axis2.AxisFault: Must
  &gt; Understand check failed for header
  &gt; http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd
  &gt; : Security
  &gt;     [4/3/16 18:53:10:343 EET] 00000027 SystemErr     R    at org.apache.axis2.jaxws.ExceptionFactory.createWebServiceException(ExceptionFactory.java:175)
  &gt;     [4/3/16 18:53:10:343 EET] 00000027 SystemErr     R    at org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:70)
  &gt;     [4/3/16 18:53:10:343 EET] 00000027 SystemErr     R    at org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:128)
  &gt;     [4/3/16 18:53:10:343 EET] 00000027 SystemErr     R    at org.apache.axis2.jaxws.core.controller.impl.AxisInvocationController.execute(AxisInvocationController.java:586)
  &gt;     [4/3/16 18:53:10:343 EET] 00000027 SystemErr     R    at org.apache.axis2.jaxws.core.controller.impl.AxisInvocationController.doInvoke(AxisInvocationController.java:130)
  &gt;     [4/3/16 18:53:10:344 EET] 00000027 SystemErr     R    at org.apache.axis2.jaxws.core.controller.impl.InvocationControllerImpl.invoke(InvocationControllerImpl.java:93)
  &gt;     [4/3/16 18:53:10:344 EET] 00000027 SystemErr     R    at org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.invokeSEIMethod(JAXWSProxyHandler.java:391)
  &gt;     [4/3/16 18:53:10:344 EET] 00000027 SystemErr     R    at org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.invoke(JAXWSProxyHandler.java:208)
  &gt;     [4/3/16 18:53:10:344 EET] 00000027 SystemErr     R    at com.sun.proxy.$Proxy37.authenticateSP(Unknown Source)
  &gt;     [4/3/16 18:53:10:344 EET] 00000027 SystemErr     R    at com.id3global.id3gws._2013._04.IGlobalAuthenticate_BasicHttpBindingGlobalAuthenticate_Client.main(IGlobalAuthenticate_BasicHttpBindingGlobalAuthenticate_Client.java:90)
  &gt;     [4/3/16 18:53:10:345 EET] 00000027 SystemErr     R    at com.eeft.ws.ppd.EwalletBalanceInquiryWSBeanPortBindingImpl.ewalletBalanceInquiry(EwalletBalanceInquiryWSBeanPortBindingImpl.java:104)
  &gt;     [4/3/16 18:53:10:345 EET] 00000027 SystemErr     R    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  &gt;     [4/3/16 18:53:10:345 EET] 00000027 SystemErr     R    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
  &gt;     [4/3/16 18:53:10:345 EET] 00000027 SystemErr     R    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
  &gt;     [4/3/16 18:53:10:345 EET] 00000027 SystemErr     R    at java.lang.reflect.Method.invoke(Method.java:611)
  &gt;     [4/3/16 18:53:10:345 EET] 00000027 SystemErr     R    at com.ibm.ws.webservices.engine.dispatchers.java.JavaDispatcher.invokeMethod(JavaDispatcher.java:203)
  &gt;     [4/3/16 18:53:10:346 EET] 00000027 SystemErr     R    at com.ibm.ws.webservices.engine.dispatchers.java.JavaDispatcher.invokeOperation(JavaDispatcher.java:158)
  &gt;     [4/3/16 18:53:10:346 EET] 00000027 SystemErr     R    at com.ibm.ws.webservices.engine.dispatchers.SoapRPCProcessor.processRequestResponse(SoapRPCProcessor.java:490)
  &gt;     [4/3/16 18:53:10:346 EET] 00000027 SystemErr     R    at com.ibm.ws.webservices.engine.dispatchers.SoapRPCProcessor.processMessage(SoapRPCProcessor.java:433)
  &gt;     [4/3/16 18:53:10:346 EET] 00000027 SystemErr     R    at com.ibm.ws.webservices.engine.dispatchers.BasicDispatcher.processMessage(BasicDispatcher.java:134)
  &gt;     [4/3/16 18:53:10:346 EET] 00000027 SystemErr     R    at com.ibm.ws.webservices.engine.dispatchers.java.SessionDispatcher.invoke(SessionDispatcher.java:204)
  &gt;     [4/3/16 18:53:10:346 EET] 00000027 SystemErr     R    at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:263)
  &gt;     [4/3/16 18:53:10:346 EET] 00000027 SystemErr     R    at com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXRPCHandler.invoke(JAXRPCHandler.java:153)
  &gt;     [4/3/16 18:53:10:346 EET] 00000027 SystemErr     R    at com.ibm.ws.webservices.engine.handlers.WrappedHandler.invoke(WrappedHandler.java:64)
  &gt;     [4/3/16 18:53:10:347 EET] 00000027 SystemErr     R    at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:263)
  &gt;     [4/3/16 18:53:10:347 EET] 00000027 SystemErr     R    at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:263)
  &gt;     [4/3/16 18:53:10:347 EET] 00000027 SystemErr     R    at com.ibm.ws.webservices.engine.WebServicesEngine.invoke(WebServicesEngine.java:336)
  &gt;     [4/3/16 18:53:10:347 EET] 00000027 SystemErr     R    at com.ibm.ws.webservices.engine.transport.http.WebServicesServlet.doPost(WebServicesServlet.java:1246)
  &gt;     [4/3/16 18:53:10:347 EET] 00000027 SystemErr     R    at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
  &gt;     [4/3/16 18:53:10:347 EET] 00000027 SystemErr     R    at com.ibm.ws.webservices.engine.transport.http.WebServicesServletBase.service(WebServicesServletBase.java:344)
  &gt;     [4/3/16 18:53:10:347 EET] 00000027 SystemErr     R    at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
  &gt;     [4/3/16 18:53:10:347 EET] 00000027 SystemErr     R    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1700)
  &gt;     [4/3/16 18:53:10:348 EET] 00000027 SystemErr     R    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:970)
  &gt;     [4/3/16 18:53:10:348 EET] 00000027 SystemErr     R    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:508)
  &gt;     [4/3/16 18:53:10:348 EET] 00000027 SystemErr     R    at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:181)
  &gt;     [4/3/16 18:53:10:348 EET] 00000027 SystemErr     R    at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3994)
  &gt;     [4/3/16 18:53:10:348 EET] 00000027 SystemErr     R    at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:276)
  &gt;     [4/3/16 18:53:10:348 EET] 00000027 SystemErr     R    at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:945)
  &gt;     [4/3/16 18:53:10:348 EET] 00000027 SystemErr     R    at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1592)
  &gt;     [4/3/16 18:53:10:348 EET] 00000027 SystemErr     R    at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:191)
  &gt;     [4/3/16 18:53:10:349 EET] 00000027 SystemErr     R    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:454)
  &gt;     [4/3/16 18:53:10:349 EET] 00000027 SystemErr     R    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:516)
  &gt;     [4/3/16 18:53:10:349 EET] 00000027 SystemErr     R    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:307)
  &gt;     [4/3/16 18:53:10:349 EET] 00000027 SystemErr     R    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:278)
  &gt;     [4/3/16 18:53:10:349 EET] 00000027 SystemErr     R    at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
  &gt;     [4/3/16 18:53:10:349 EET] 00000027 SystemErr     R    at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
  &gt;     [4/3/16 18:53:10:349 EET] 00000027 SystemErr     R    at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175)
  &gt;     [4/3/16 18:53:10:349 EET] 00000027 SystemErr     R    at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
  &gt;     [4/3/16 18:53:10:349 EET] 00000027 SystemErr     R    at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
  &gt;     [4/3/16 18:53:10:350 EET] 00000027 SystemErr     R    at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
  &gt;     [4/3/16 18:53:10:350 EET] 00000027 SystemErr     R    at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
  &gt;     [4/3/16 18:53:10:350 EET] 00000027 SystemErr     R    at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
  &gt;     [4/3/16 18:53:10:350 EET] 00000027 SystemErr     R    at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
  &gt;     [4/3/16 18:53:10:350 EET] 00000027 SystemErr     R    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1662)
  &gt;     [4/3/16 18:53:10:350 EET] 00000027 SystemErr     R Caused by: org.apache.axis2.AxisFault: Must Understand check failed for header
  &gt; http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd
  &gt; : Security
  &gt;     [4/3/16 18:53:10:350 EET] 00000027 SystemErr     R    at org.apache.axis2.engine.AxisEngine.checkMustUnderstand(AxisEngine.java:127)
  &gt;     [4/3/16 18:53:10:351 EET] 00000027 SystemErr     R    at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:191)
  &gt;     [4/3/16 18:53:10:351 EET] 00000027 SystemErr     R    at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:363)
  &gt;     [4/3/16 18:53:10:351 EET] 00000027 SystemErr     R    at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:416)
  &gt;     [4/3/16 18:53:10:351 EET] 00000027 SystemErr     R    at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
  &gt;     [4/3/16 18:53:10:351 EET] 00000027 SystemErr     R    at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
  &gt;     [4/3/16 18:53:10:351 EET] 00000027 SystemErr     R    at org.apache.axis2.jaxws.core.controller.impl.AxisInvocationController.execute(AxisInvocationController.java:581)
  &gt;     [4/3/16 18:53:10:351 EET] 00000027 SystemErr     R    ... 50 more
  </code></pre>
  
  <p>I removed the mustunderstand tag and changed value to zero still same error.</p>