Hi All,
I am trying to setup a web service provider on JBoss EAP 7.0.0, but I encounter the following error when trying to send SOAP Message with (mustUnderstand="1").
WARNING [org.apache.cxf.phase.PhaseInterceptorChain] (default task-4) Interceptor for {http://soap.ws.xsd.uttesh.com/}SimpleProviderService#{ttp://soap.ws.xsd.uttesh.com/}invoke has thrown exception, unwinding now: org.apache.cxf.binding.soap.SoapFault: MustUnderstand headers: [{urn:cbm:cbmnet:business:gw00001}X-cbmn-TestData1, {urn:cbm:cbmnet:business:gw00001}X-cbmn-TestData2] are not understood.
How can I configure the webserviceprovider to have SOAP header handling?
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope">
<SOAP-ENV:Header>
<X-cbmn-TestData1 xmlns="urn:cbm:cbmnet:business:gw00001" SOAP-ENV:mustUnderstand="1">AAAASSSS</X-cbmn-TestData1>
<X-cbmn-TestData2 xmlns="urn:cbm:cbmnet:business:gw00001" SOAP-ENV:mustUnderstand="1">DDDDCCCC</X-cbmn-TestData2>
</SOAP-ENV:Header>
<SOAP-ENV:Body/>
</SOAP-ENV:Envelope>
@Named
@ServiceMode(value = Service.Mode.MESSAGE)
@WebServiceProvider(portName = "SimpleProviderServicePort"
, serviceName = "SimpleProviderService"
, targetNamespace = "http://soap.ws.xsd.uttesh.com/")
@BindingType(value = SOAPBinding.SOAP12HTTP_BINDING)
public class SimpleProviderService implements Provider<SOAPMessage> {