How to generate proxy from wsdl

Posted on Posted in Microsoft, WCF

How to generate proxy from wsdl

There are several ways of generating a proxy from WSDL in C# however one below might help

1) First get wsdl file (abc.cs)
2) Run the command below using Command Prompt

wsdl /l:cs /protocol:SOAP /o:C:\Development\WSDL\Reference.cs C:\Development\WSDL\Green4Service.wsdl

3) Above command will generate proxy, replace with your code
4) Look for your proxy file at above location