2013-02-08 41 views
0

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

请帮忙。

回答

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

+0

不好意思问,但我在那里会发现Web服务详细信息窗口? – Trupti