3 Replies Latest reply on Feb 1, 2005 10:30 AM by mpitanga

    Hi,

    mpitanga

      is possible access messages SOAP using servlet Filter?

      public void doFilter(ServletRequest servletRequest,
       ServletResponse servletResponse,
       FilterChain chain) throws IOException, ServletException {
      
      chain.doFilter(servletRequest, servletResponse);
      
      // extract message SOAP for logging....
      }
      



        • 1. Re: Hi,
          thomas.diesler

          Probably not on the incomming path. the MessageContext gets associated with the current Thread when the request hits the endpoint servlet.

          • 2. Re: Hi,
            mpitanga

            Hi Thomas,

            SOAP router is a servlet , ok? Then a Filter intercept this request or not?

            This is my filter execution....

            Request address : 192.168.2.41
            RemoteHost : 192.168.2.41
            RemotePort : 3576
            sessionId : null
            method : POST
            url : http://popshopdes:8080/simple-ws4ee/exactpath/jse
            RemoteUser : null
            AuthType : null
            ContentType : text/xml; charset=utf-8
            RequestURI : /simple-ws4ee/exactpath/jse
            QueryString : null
            Protocol : HTTP/1.0
            PathInfo : null
            HeaderNames : content-type Content : text/xml; charset=utf-8
            HeaderNames : accept Content : application/soap+xml, application/dime, multi
            part/related, text/*
            HeaderNames : user-agent Content : Axis/1.2RC2
            HeaderNames : host Content : popshopdes:8080
            HeaderNames : cache-control Content : no-cache
            HeaderNames : pragma Content : no-cache
            HeaderNames : soapaction Content : ""
            HeaderNames : content-length Content : 439


            exists a Header that represents a SOAP Message?

            or the solution is implement a handler for JAX-RPC and a servlet that extends a JAXMServlet?


            • 3. Re: SOAP Messages and Servlet Filter
              mpitanga

              Hi Thomas,

              SOAP router is a servlet , ok? Then a Filter intercept this request or not?

              This is my filter execution....

              Quote:
              Request address : 192.168.2.41
              RemoteHost : 192.168.2.41
              RemotePort : 3576
              sessionId : null
              method : POST
              url : http://popshopdes:8080/simple-ws4ee/exactpath/jse
              RemoteUser : null
              AuthType : null
              ContentType : text/xml; charset=utf-8
              RequestURI : /simple-ws4ee/exactpath/jse
              QueryString : null
              Protocol : HTTP/1.0
              PathInfo : null
              HeaderNames : content-type Content : text/xml; charset=utf-8
              HeaderNames : accept Content : application/soap+xml, application/dime, multi
              part/related, text/*
              HeaderNames : user-agent Content : Axis/1.2RC2
              HeaderNames : host Content : popshopdes:8080
              HeaderNames : cache-control Content : no-cache
              HeaderNames : pragma Content : no-cache
              HeaderNames : soapaction Content : ""
              HeaderNames : content-length Content : 439


              exists a header that represents a SOAP Message or the solution is implemented a handler for JAX-RPC and a servlet that extends a JAXMServlet?