-
1. Re: handler problem
khaledzarig Mar 13, 2007 4:58 PM (in response to khaledzarig)Hi,
this the simple source code i used in my web service:
@Stateless
@Remote(EJB3RemoteInterface.class)
@RemoteBinding(jndiBinding = "/ejb3/EJB3EndpointInterface")
@WebService
@SOAPBinding(style = SOAPBinding.Style.RPC)
public class EJB3Bean01 implements EJB3RemoteInterface
{
@WebMethod
public String echo(String input)
{
return input;
}
}
//------------
public interface EJB3RemoteInterface
{
String echo(String input);
}
//----------
and then i packaged them in jar file
and deployed.
can any body tell me what is wrong and why my handler doesnot print anything, please.
any seggestion is appreciated -
2. Re: handler problem
heiko.braun Mar 15, 2007 7:55 AM (in response to khaledzarig)The first thing is not to put your handler in jbossws packages. Keep them private to your application, that is a custom package.
In order to deploy it with your actual endpoint you need to specify a @HandlerChain that points to your handler declaration.
Did you read the userguide?
http://jbws.dyndns.org/mediawiki/index.php/JAX-WS_User_Guide -
3. Re: handler problem
khaledzarig Mar 15, 2007 8:29 AM (in response to khaledzarig)Hi,
i am aware of this way (@HandlerChain ), but what i am trying to do is:
Intecept soap message without the need to modify or add any code to the client or the endpoint code.
I need something that helps me to intercept any soap message comes in or out of the jboss server.
So, is there a way of doing this, please -
4. Re: handler problem
mageshbk Feb 14, 2008 8:48 AM (in response to khaledzarig)Yes you can. You can modify the standard templates available here
server\<config>\deploy\jbossws.sar\META-INF\standard-jaxws-endpoint-config.xml server\<config>\deploy\jbossws.sar\META-INF\standard-jaxrpc-endpoint-config.xml
See http://labs.jboss.com/jbossws/user-guide/en/html/1.0.4/en/html/endpoints.html section "4.4. Endpoint configuration templates"