简体   繁体   中英

how do i obtain soap request and response from web service

I want to obtain a soap request in xml format of a web service (not wcf). I tried the msdn example of soap trace extension.

It works, but I don't want to log it , I want to obtain it in a string and display in a web browser control, in winforms.

Even though your service is ASMX, you can use a Service Reference so that the client is using WCF. One of the benefits of that is that you can use WCF features like tracing and message inspection .

I know you say that you don't want to use tracing, but using tracing (in particular, message logging) with a custom trace listener may be a simple solution. If not, then message inspection should take care of anything you might need.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM