如何为ASP.NET Web服务设置SOAP协议?

时间:2013-02-08 08:07:50

标签: asp.net web-services soap web

我是ASP.NET Web服务的新手。 我写了我的网络服务,网络方法。我希望我的Web服务的输出是SOAP而不是默认的HTTP POST协议。 我怎么做? 我需要输出为SOAP,因为我需要反序列化xml文件,在我的Web应用程序中,我将使用Web服务。

请帮忙。

1 个答案:

答案 0 :(得分:0)

请按照以下步骤操作

  1.In the Web Service Details window, select an operation for that Web service.
  2.On the Diagram menu, choose Properties.
  3.In the Properties window, set the appropriate SOAP properties under the Implementation heading.

http://msdn.microsoft.com/en-us/magazine/cc164007.aspx