4 Replies Latest reply on Jan 3, 2007 12:26 PM by joeh

    how can I get the soap envelope somewhere in my logs

      Hello,
      I am just beginning to deploy and test the samples delivered with the ws package and I was trying to find somewhere a log of the soap envelope as described in the user guide ... Where can I found it or how can I get it ...
      Many thanks for any help ...and sorry for my beginner question :)
      Georges.

        • 1. Re: how can I get the soap envelope somewhere in my logs
          pshankar

          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

            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

              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

                 

                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)?