Is it possibe to declare JAX-WS handlers in web.xml ?

Solution Verified - Updated -

Issue

  • If one declares the soap handlers like below in the web.xml,
<service-ref>
  <description>PMService</description>
  <service-ref-name>service/SomeService</service-ref-name>
  <service-interface>test.SomeanagementService</service-interface>
  <wsdl-file>WEB-INF/wsdl/Someservice.wsdl</wsdl-file>

  <handler-chains>
    <handler-chain>
        <handler>
        <handler-name>handler</handler-name>
        <handler-class>chain.handler</handler-class>
        </handler>          
    </handler-chain>
   </handler-chains>

 </service-ref>

and then lookup the WS endpoint like below,

initialCtx = new InitialContext();
Service service=null;
service = (Service) initialCtx.lookup(getJndiContext());

the handler does not get invoked.

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 6.x
    • 5.x
  • JBossWS-CXF
  • JBossWS-Native

  • Redhat JBoss Fuse 6.0

    • Apache CXF

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.