1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Intercepting a TCP message?

Discussion in 'HTML, Graphics & Programming' started by blue_harvester, 10 May 2006.

  1. blue_harvester

    Hitman

    Joined: 6 Dec 2002

    Posts: 661

    Location: Belfast

    Is there any tool out there that can be configured to listen on a certain port and intercept the incoming message, modify that message, and then pass it on to the destination server? I need a temporary workaround for a problem I'm having with SOAP messages. The content-type tage contains the value 'text/html' whereas it should contain 'text/xml', and I was wondering if there's any (quick and easy) way to change this message on the fly?
     
  2. happytechie

    Soldato

    Joined: 18 Oct 2002

    Posts: 5,601

    Location: Surrey

    I use fiddler: http://www.fiddlertool.com/fiddler/ for intercepting HTTP requests

    edit: the easiest way to do what you want is to write another web service and use that service to sit in between the existing consumer and supplier

    HT
     
    Last edited: 10 May 2006
  3. blue_harvester

    Hitman

    Joined: 6 Dec 2002

    Posts: 661

    Location: Belfast

    Tried this but the fiddler app sits between IE and the webapp whereas I need to be intercepting the message between the webapp and a webservice. Any other ideas?
     
  4. happytechie

    Soldato

    Joined: 18 Oct 2002

    Posts: 5,601

    Location: Surrey

    you could try ethereal http://www.ethereal.com/ but I don't think you'll be able to modify the request and resubmit it without writing another 3rd SOAP web service

    HT