9.10.2012

svcutil.exe vs wsdl.exe

Difference between svcutil.exe and wsdl.exe

S.No
SVCUTIL.EXE
WSDL.EXE
1
Svcutil.exe tool is meant to be used with WCF services and it can translate back and forth between metadata and code.
Wsdl.exe tool is meant to be used with ASMX services and generates only proxy code.
2
The default behavior for Svcutil.exe is to generate synchronous methods and it will generate asynchronous methods only if the /async option is used.
The default behavior for Wsdl.exe is to generate both synchronous and asynchronous methods
3
Svcutil.exe tool also supports new features in WCF, such as a policy section in a WSDL file that can be used to describe services security requirements.
Wsdl.exe does not support policy section feature as like Svcutil.exe.
4
Svcutil.exe tool can be used to generate metadata.
Wsdl.exe tool cannot be used to generate metadata.
5
The Svcutil.exe tool can be used only with XML Schema (XSD) files that support data contracts. If data contracts cannot be generated, we must use the Xsd.exe tool to generate XML-based data types from the XSD file.Therefore,it does not support attribute-based schemas.
Wsdl.exe supports attribute-based schemas.

1 comment: