Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to generate the client from a WSDL file in .net?

I'm trying to generate a client from a WSDL file without using visual studio itself and didn't know what the best place was to start.

A customer needs to take this same file and generate a client for a PHP application and I wanted to prove the WSDL was valid by creating a client myself (outside of studio).

like image 650
Toran Billups Avatar asked Oct 14 '25 14:10

Toran Billups


1 Answers

svcutil.exe is a commandline tool that comes with the Windows SDK. It creates a WCF client (C# code file plus configuration file, the elements of which can be placed in your web.config or app.config).

I'm fairly sure you can pass a UNC path to a WSDL rather than a URL.

like image 139
Travis Heseman Avatar answered Oct 17 '25 09:10

Travis Heseman



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!