Here is the setup I currently have:
Client App -----> Intermediary Web API Service (receives calls from clients) ------> 3rd party RESTful service (receives calls from intermediary service)
So if I make calls that originate from the client to the intermediary service or calls that originate from the intermediary service to the 3rd party service I can use Fiddler or Wireshark to inspect the POSTed XML/JSON.
The problem is when I make a call from the client all the way through, and I want to inspect the actual raw HTTP outgoing messages being sent from the intermediary service to the 3rd party service. If I run Fiddler on the server that contains the intermediary service, I do not see the HTTP traffic going outbound from it. I also tried Wireshark and it does not pick up the traffic either. However I know it's occurring because the 3rd party service is sending me errors back.
The intermediary service acts as a facade for the client apps to the 3rd party service and massages the data from the client before making another HTTP client outbound to the 3rd party service. I'm having trouble with the outgoing messages being accepted by the 3rd party service and really need to see the raw HTTP message being omitted by the intermediary service (I'm using a HttpClient.PostAsync
to POST the data to the 3rd party service). I already persist it to the database before sending but what I'm pulling out seems to be OK.
So the main question, how do I get that message that my intermediary service is POSTing to the 3rd party service? Is there something with Fiddler, Wireshark or another program that I can use to inspect that HTTP message going outbound from that intermediary service?