Access Web Service SOAP envelope from Filter Servlet

Discussion in 'Java' started by Mike, Mar 8, 2005.

  1. Mike

    Mike Guest

    I've written a web service using WebSphere Studio 5.1. I would like to
    programmatically access the contents of the incoming SOAP envelope with
    a Filter Servlet before the request reaches the web service. My
    motivation for doing this is that I would like to put custom attributes
    into the SOAP Header. These will be processed by the Filter Servlet,
    rather than the web service.


    Evidently, I can't reset the InputStream that I get from the
    ServletRequest argument to the doFilter() method - so I can't read the
    stream and obtain a String representation of the SOAP envelope. Is
    there a way to cast or copy the ServletInputStream to another type of
    object that will allow me to obtain the contents of the SOAP envelope?
    If not, is there an alternative approach to accomplish the same thing?


    Thanks in advance.
    Mike, Mar 8, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. circuit_breaker
    Replies:
    2
    Views:
    1,984
    Jack Jia
    Apr 4, 2004
  2. cxc
    Replies:
    0
    Views:
    6,327
  3. DaberElay
    Replies:
    0
    Views:
    121
    DaberElay
    Oct 5, 2004
  4. Chris Hayes
    Replies:
    1
    Views:
    206
    Marc Landrum
    Jun 1, 2005
  5. droesler
    Replies:
    2
    Views:
    473
    droesler
    Aug 31, 2010
Loading...

Share This Page