且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

WCF代理生成:svcutil.exe与wsdl.exe

更新时间:2023-09-14 11:47:10

Svcutil和wsdl是用于生成使用服务的代理的两种不同技术.但是wsdl.exe是用于旧的.NET 2.0 Web服务的.就像svcutil的旧版本一样.Svcutil允许您为Web服务和WCF服务生成代理.为了生成代理wsdl,它通过 DISCO发现协议来重新整理数据.Svcutil还支持DISCO.但是它可以使用 WS-Metadata Exchange 协议进行代理检索,这是一个可互操作的标准的SOA.

Svcutil and wsdl are two different technologies for generating a proxy for consuming your service. But wsdl.exe was made for old .NET 2.0 web services. It is like old version of svcutil. Svcutil allows you to generate proxies for both - web services and WCF services. For generating a proxy wsdl retieves the data by means of DISCO discovery protocol. Svcutil also supports DISCO. But it can make the proxy retrieval using WS-Metadata Exchange protocol, which is an interopable standart of SOA.

我建议您使用svcutil,因为它将允许您同时使用.net 2.0 Web服务和wcf服务.

I advice you to use svcutil because it would allow you to consume both .net 2.0 web services and wcf services.