{"id":1054,"date":"2012-11-03T18:53:30","date_gmt":"2012-11-03T17:53:30","guid":{"rendered":"http:\/\/www.lightsoftai.com\/?p=1054"},"modified":"2012-11-03T18:53:30","modified_gmt":"2012-11-03T17:53:30","slug":"create-dll-from-wsdl-in-c","status":"publish","type":"post","link":"https:\/\/www.lightsoftai.com\/?p=1054","title":{"rendered":"Create DLL from WSDL in C#"},"content":{"rendered":"<h3>How to generate a DLL file from a WSDL in C#<\/h3>\n<p>As this was hard to get out I type this down if any other search for this.<\/p>\n<p>I first of started to question how to turn a WSDL to a DLL, but then found out this must be done in 2 steps.<\/p>\n<p>Generate file.cs file from project.wsdl<br \/>\n[ccl_csharp]wsdl \/out:file.cs project.wsdl[\/ccl_csharp]<\/p>\n<p>Then the next step was to use csc.exe, but somehow this have been moved in Windows 7, I finally discovered that the files existed in path<\/p>\n<p>[ccl_dos]C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319[\/ccl_dos]<\/p>\n<p>So add this to your system path to be able to run in cmd<\/p>\n<p>&nbsp;<\/p>\n<p>Also for my wsdl project I had to copy a bunch of DLL files from<\/p>\n<p>[ccl_dos]C:\\Windows\\Microsoft.NET\\Framework\\v2.0.50727[\/ccl_dos]<\/p>\n<p>to the location where the wsdl and generated cs file existed.<\/p>\n<p>&nbsp;<\/p>\n<p>Then by using csc.exe and some reference added to the path, it was possible to create a dll file<\/p>\n<p>[ccl_dos]csc \/target:library file.cs \/reference:System.Web.dll \/reference:System.Web.Services.dll \/reference:System.dll \/reference:System.Data.dll \/reference:System.XML.dll [\/ccl_dos]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to generate a DLL file from a WSDL in C# As this was hard to get out I type this down if any other search for this. I first of started to question how to turn a WSDL to a DLL, but then found out this must be done in 2 steps. Generate file.cs [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[71,39,68,45,69,70],"class_list":["post-1054","post","type-post","status-publish","format-standard","hentry","category-c-csharp","tag-net","tag-c","tag-csc-exe","tag-development","tag-dll","tag-wsdl"],"_links":{"self":[{"href":"https:\/\/www.lightsoftai.com\/index.php?rest_route=\/wp\/v2\/posts\/1054","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lightsoftai.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lightsoftai.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lightsoftai.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lightsoftai.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1054"}],"version-history":[{"count":8,"href":"https:\/\/www.lightsoftai.com\/index.php?rest_route=\/wp\/v2\/posts\/1054\/revisions"}],"predecessor-version":[{"id":1062,"href":"https:\/\/www.lightsoftai.com\/index.php?rest_route=\/wp\/v2\/posts\/1054\/revisions\/1062"}],"wp:attachment":[{"href":"https:\/\/www.lightsoftai.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1054"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lightsoftai.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1054"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lightsoftai.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1054"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}