发送到Web服务之前如何保存Soap消息 [英] how to save the Soap message before sending to the web service
本文介绍了发送到Web服务之前如何保存Soap消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
从我的Web应用程序中,我正在调用传递输入参数的Web服务.现在,无论从我的Web应用程序向Web服务发送什么消息,我都希望获得肥皂消息.
From my web application i m calling a web service passing the input parameters. Now i want the soap message whatever is going to the webservice from my web application.
推荐答案
使用web方法创建一个Web服务以接收xmldocument作为字符串输入. br/>
用于保存xml文件:
Create a web service with the webmethod to receive an xmldocument as string input.
For saving xml file:
StreamWriter file = new StreamWriter("c:\\test.txt");
file.WriteLine(xmldata);
file.Close();
这篇关于发送到Web服务之前如何保存Soap消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文