How to check which xml was sent during a web service request?

Is there a way to get the raw XML that is generated by the SOAP request in .net. I don’t know how to set it exactly, but here it goes

I add a web link and call some method. Is there a way to find out what XML is sending. For debugging purposes, a quick and dirty way is enough

PS SSL is used, so disabling it here does not help.

+3
source share
4 answers

You can create the SoapExtensionAttribute attribute and apply it to the web service methods.

Create a class derived from SoapExtensionAttribute.

Create another class that comes from SoapExtension.

SoapExtensionAttribute SoapExtension.

SoapExtension, , /.

4 :

SoapMessageStage.BeforeSerialize
SoapMessageStage.AfterSerialize           *
SoapMessageStage.BeforeDeserialize        *
SoapMessageStage.AfterDeserialize

, *, - , . xml, - .

, .

, : http://progtutorials.tripod.com/soapext.htm

, .

+3

Fiddler.

: -

<system.net>
    <defaultProxy enabled="true">
        <proxy proxyaddress="http://127.0.0.1:8888" bypassonlocal="False"/>
    </defaultProxy>
</system.net>

, HTTP, . fiddler false.

+5

, , - wireshark . , , , - . .

. - SOAP, HTTP TCP, .

+1
0

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


All Articles