How to get a raw SOAP request for a WCF web service

I have seen several questions about this already, but not one of the explicit walkthroughs on how to grab a SOAP request for a WCF web service. They just say "go install Fiddler2". All I can get from a violinist is a regular HTTP request, but I can never get a raw SOAP request for any reason. Can someone refer me to a tutorial that goes through this particular scenario?

The .NET web application invokes the basicHTTP endpoint on the WCF web service. I need to grab a raw SOAP request. I am looking for a complete walkthrough, because for some reason I do not understand this concept.

UPDATE

Here is what I get from viewing Fiddler raw:

POST http://vm05/PNSWebTestVB/ HTTP/1.1 Accept: text/html, application/xhtml+xml, */* Referer: http://vm05/PNSWebTestVB/ Accept-Language: en-US User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0) Content-Type: application/x-www-form-urlencoded Accept-Encoding: gzip, deflate Host: vm05 Content-Length: 2272 Connection: Keep-Alive Pragma: no-cache __EVENTTARGET=&__EVENTARGUMENT=&__VIEWSTATE=%2FwEPDwUKLTM4MDU0OTMyOQ9kFgICAw9kFgICeQ8WAh4HVmlzaWJsZWcWBgIBDw8WAh4EVGV4dAXKATx0YWJsZSB3aWR0aD0nMTAwJSc%2BPHRyPjx0ZD48c3Ryb25nPlN0YXJ0ZWQ6PC9zdHJvbmc%2BIDg6Mjg6MTguNzA3IEFNPC90ZD48dGQgYWxpZ249J2NlbnRlcic%2BPHN0cm9uZz5FbmRlZDo8L3N0cm9uZz4gODoyODoyMC41ODUgQU08L3RkPjx0ZCBhbGlnbj0ncmlnaHQnPjxzdHJvbmc%2BVG90YWw6PC9zdHJvbmc%2BIDEuODggc2Vjb25kczwvdGQ%2BPC90YWJsZT5kZAIDDw8WAh8BBXk8aDQ%2BQ3JlYXRlIFRyYW5zYWN0aW9uIFNlcnZpY2UgUmV0dXJuPC9oND48Yj5Cb29sZWFuIHJlc3VsdDo8L2I%2BIFRydWU8YnIvPjxiIHN0eWxlPSdjb2xvcjpncmVlbjsnPlRFWFQgUkVTVUxUPC9iPjxicj48YnI%2BZGQCBQ8WAh8AZ2Rk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jZKMhnMRSoTaHKS7nhfvrD%2Fx3IhQquPfSBscM%2BEl0ZjjjtTdVzRZn7DFyWrI8V%2FOY8R04aPRKvp5noI1x8SosQ8JtOO%2BaYKnFL9NCi0aug5qlXDG2aEfC1liIw8tcyTKyO4O3QU2jwgyGg0Cn1uu04sysgxEFpobCcsYBC13vLf00%2BldhvJhee6%2Fsf7z7jMzjigjz9OJ9sLxDWTNf435wga8mfxrwE8QZdUUwumdHowAQUaobtRYmVoJUTgx0Kzlww2Q0Vmf7egxEzjWuWP9tjw%3D&txtProntoID=_CleanInstallSite&txtAuthData=password&txtUsername=apiuser& txtUserPassword=@lph @deV2&ddlProtocol=http%3A%2F%2F&txtDomain=vm05.alphatrust.local&btnCreateTest2=Create+New+Transaction+2&txtTransactionID=&txtParticipantID=&txtDocumentID=&txtMetaDataName=&txtMetaDataValue=&txtTaskID=&txtAttachmentID= 

UPDATE 2

I don’t even know how the Fiddler client has a way to see SOAP in the first place. Fiddler (from what I understand) intercepts client traffic from the browser (this is just a form message), which generates a message, tells the application on the server to make a web service call to the WCF application on another server (or on the same server in this case), and then WCF sends back the response data to the calling server. Then the calling server simply returns the web page back to the client. Thus, all I see is client traffic, which has nothing to do with server to server traffic (even if the client, the calling server and the WCF server are all the same machines in my test case).

+4
source share
1 answer

Fiddler is a proxy server.

It shows traffic from any client that is configured to point to it. I think you are saying that you have a web browser that makes a request to a server, which in turn uses SOAP to request to another server? If so, you need to run Fiddler on an external server and configure ASPX or any other SOAP request to point to Fiddler.

http://fiddler2.com/blog/blog/2013/01/08/capturing-traffic-from-.net-services-with-fiddler

+11
source

Source: https://habr.com/ru/post/1479086/


All Articles