With J2EE-1.4 compliant WS clients, you add the handler to the service-ref element, like this
| <enterprise-beans> | <session> | <ejb-name>HelloEjb</ejb-name> | <home>org.jboss.test.webservice.handlerflow.HelloHome</home> | <remote>org.jboss.test.webservice.handlerflow.HelloRemote</remote> | <ejb-class>org.jboss.test.webservice.handlerflow.HelloBean</ejb-class> | <session-type>Stateless</session-type> | <transaction-type>Container</transaction-type> | <service-ref> | <service-ref-name>service/HelloService</service-ref-name> | <service-interface>javax.xml.rpc.Service</service-interface> | <wsdl-file>META-INF/wsdl/HelloService.wsdl</wsdl-file> | <jaxrpc-mapping-file>META-INF/jaxrpc-mapping.xml</jaxrpc-mapping-file> | <handler> | <handler-name>ClientHandler1</handler-name> | <handler-class>org.jboss.test.webservice.handlerflow.ClientHandler1</handler-class> | <soap-header>impl:HelloHeader</soap-header> | </handler> | <handler> | <handler-name>ClientHandler2</handler-name> | <handler-class>org.jboss.test.webservice.handlerflow.ClientHandler2</handler-class> | <soap-header>impl:HelloHeader</soap-header> | </handler> | </service-ref> | </session> | </enterprise-beans> | There is no portable API that allows you to do that in WS4EE. Access to HandlerRegistry is not allowed. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3891752#3891752 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3891752 ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
