C#: create proxy class from WSDL

If we have a WSDL file and we want to create the C# proxy class we can use the svcutil.exe (Windows SDK ServiceModel Metadata Utility Tool).

Suppose we have saved the WSDL file InteropService.wsdl into the folder C:\Tmp.

We can execute this command to create the C# proxy class:

“C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.2 Tools\svcutil.exe” “C:\Tmp\InteropService.wsdl” /t:code /l:c# /o:”C:\Tmp\InteropService.cs” /n:*,NamespaceName

Marwen Mselmi
Author: Marwen Mselmi

Founder of Javatuto.com, love Java and open source stuff. Follow me on Linkedin.

Leave a comment