article that allows creating and using SOAP Message Handlers.
So, I have done the following steps:
1) Created a SOAP handler
public class AuthenticationHandler
implements SOAPHandler<SOAPMessageContext>
{
public boolean handleMessage( SOAPMessageContext messageContext ){...}
}
3) Configured the handler chain in the JWS File
@WebService( name = "PerformanceServicePort", serviceName = "PerformanceService", portName = "PerformanceServiceWSDLPort", targetNamespace = "http://xml.apt.com/schema/PerformanceServiceWSDL", wsdlLocation = "META-INF/wsdl/service.api.ws.wsdl" )
@HandlerChain (file = "META-INF/handler-chain.xml")
@SOAPBinding( parameterStyle = SOAPBinding.ParameterStyle.BARE )
@Stateless
public class PerformanceServiceBean
implements PerformanceServicePortType
{
}
After deploying the JWS on Glassfish v3 and running SOAP requests to the deployed JWS I noticed that the SOAP handler that I configured is not invoked at all (just ignored). Do I miss something in the configurations?