This content has been marked as final.
Show 4 replies
-
1. Re: how can I get the soap envelope somewhere in my logs
pshankar Dec 26, 2006 10:34 AM (in response to gcolin)Try deploying the sample web services and run the sample clients. The client will print the SOAP request/envelope log. If you use eclipse you can use the soap request monitoring feature.
-
2. Re: how can I get the soap envelope somewhere in my logs
bbredohl Dec 26, 2006 10:41 AM (in response to gcolin)With a MessageHandler you can see the SOAP Message too.
Look here:
http://labs.jboss.com/portal/jbossws/user-guide/en/html/headers-handlers.html
In a JSR-181 endpoint you can user the @HandlerChain annotation@HandlerChain(name = "handlerChain", file = "resource://META-INF/handler.xml")
handler.xml<?xml version="1.0" encoding="UTF-8"?> <handler-config> <handler-chain> <handler-chain-name>handlerChain</handler-chain-name> <handler> <handler-name>MessageHandler</handler-name> <handler-class>package.MessageHandler</handler-class> </handler> </handler-chain> </handler-config>
and the Class:public class FeatureScanMessageHandler extends GenericHandler{ public FeatureScanMessageHandler(){ } public boolean handleMessage(SOAPMessageContext messageContext) { return true; } public boolean handleResponse(MessageContext context) { return true; } public QName[] getHeaders() { return this.getHeaders(); } public boolean handleFault(MessageContext msgContext) { return true; } }
-
3. Re: how can I get the soap envelope somewhere in my logs
heiko.braun Dec 29, 2006 3:02 PM (in response to gcolin)The log4j category "jbossws.SOAPMessage" needs to be set to TRACE
-
4. Re: how can I get the soap envelope somewhere in my logs
joeh Jan 3, 2007 12:26 PM (in response to gcolin)The log4j category "jbossws.SOAPMessage" needs to be set to TRACE
This doesn't work for me, or I'm misunderstanding. I've deployed a jsr109 EJB endpoint. I would like jboss to log the SOAP request and response. Are you saying that just enabling this log4j category should cause that to happen, or is there more I need to do (such as installing a handler)?