{"id":6937,"date":"2016-05-25T12:08:30","date_gmt":"2016-05-25T19:08:30","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/webdev\/?p=6937"},"modified":"2016-05-25T12:08:30","modified_gmt":"2016-05-25T19:08:30","slug":"announcing-wcf-connected-service-for-net-core-rc2-and-asp-net-core-rc2","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/dotnet\/announcing-wcf-connected-service-for-net-core-rc2-and-asp-net-core-rc2\/","title":{"rendered":"Announcing WCF Connected Service for .NET Core RC2 and ASP.NET Core RC2"},"content":{"rendered":"<p>With the availability of <a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/announcing-net-core-rc2\/\" target=\"_blank\" rel=\"noopener\">.Net Core RC2<\/a> and <a href=\"https:\/\/blogs.msdn.microsoft.com\/webdev\/2016\/05\/16\/announcing-asp-net-core-rc2\/\" target=\"_blank\" rel=\"noopener\">ASP.NET Core RC2<\/a> we are pleased to announce an update to the <a href=\"https:\/\/blogs.msdn.microsoft.com\/webdev\/2015\/12\/15\/wcf-connected-service-visual-studio-extension-preview-for-asp-net-5-projects\/\" target=\"_blank\" rel=\"noopener\">WCF Connected Service Preview for ASP.NET 5<\/a> Visual Studio extension tool for generating SOAP service references for clients built on top of <a href=\"https:\/\/github.com\/dotnet\/wcf\/blob\/master\/release-notes\/SupportedFeatures-v1.0.0-rc2.md\" target=\"_blank\" rel=\"noopener\">WCF for .NET Core\u00a0RC2<\/a>. This update brings some improvements to the user experience when navigating through the Connected Service wizard UI and the ability to reuse types defined in the project to which a service reference is being added to and from the project\u2019s references, in addition to several bug fixes.<\/p>\n<p><strong>How to Install the extension<\/strong><\/p>\n<p>The WCF Connected Service extension can be installed on Visual Studio 2015 and it has the following prerequisites. Please make sure you have prerequisites installed before installing the extension.<\/p>\n<ol>\n<li><a href=\"https:\/\/www.visualstudio.com\/en-us\/news\/vs2015-update2-vs.aspx\" target=\"_blank\" rel=\"noopener\">Visual Studio 2015 Update 2<\/a><\/li>\n<li><a href=\"https:\/\/www.microsoft.com\/net\/core\" target=\"_blank\" rel=\"noopener\">.Net Core and ASP.NET Core RC2<\/a><\/li>\n<\/ol>\n<p>Notice that the previous version of the WCF Connected Service extension is not compatible with .NET Core RC2 and once you upgrade it cannot be reinstalled since it is being replaced with this new version of the tool. We strongly encourage you to upgrade to .NET Core RC2 and get this new and improved version of the extension installed.<\/p>\n<p>As with previous versions of the extension, it is published into the Visual Studio Extensions Gallery and can be downloaded either from the official Visual Studio Extensions Gallery <a href=\"https:\/\/visualstudiogallery.msdn.microsoft.com\/c3b3666e-a928-4136-9346-22e30c949c08\" target=\"_blank\" rel=\"noopener\">download page<\/a> or directly from Visual Studio via the \u201cExtensions and Updates\u201d dialog as shown below by searching for \u201cWCF Connected Service\u201d for instance.<\/p>\n<p><a href=\"http:\/\/devblogs.microsoft.com\/aspnet\/wp-content\/uploads\/sites\/16\/2016\/05\/Download2.png\"><img decoding=\"async\" class=\"alignnone wp-image-7036 size-full\" src=\"https:\/\/devblogs.microsoft.com\/aspnet\/wp-content\/uploads\/sites\/16\/2016\/05\/Download2-1.png\" alt=\"Download2\" width=\"955\" height=\"660\" \/><\/a><\/p>\n<p><strong>How to use the extension<\/strong><\/p>\n<p>The WCF Connected Service extension is applicable to any projects created with project templates under Visual C# -&gt; .Net Core. This includes Console Application (.Net Core), Class Library (.Net Core) and ASP.NET Core Web Application (.Net Core) as shown in the image below.<\/p>\n<p><a href=\"http:\/\/devblogs.microsoft.com\/aspnet\/wp-content\/uploads\/sites\/16\/2016\/05\/Templates.png\"><img decoding=\"async\" class=\"alignnone wp-image-6976 size-full\" src=\"https:\/\/devblogs.microsoft.com\/aspnet\/wp-content\/uploads\/sites\/16\/2016\/05\/Templates-1.png\" alt=\"Templates\" width=\"935\" height=\"154\" \/><\/a><\/p>\n<p>Using the ASP.NET Core Web Application project template as an example, I will walk you through\u00a0the steps to add a reference to a WCF service to the project:<\/p>\n<ol>\n<li>In Solution Explorer, right-click on the References item of the project and then click Add Connected Service. The Add Connected Service dialog box appears as shown below.<\/li>\n<\/ol>\n<p><a href=\"http:\/\/devblogs.microsoft.com\/aspnet\/wp-content\/uploads\/sites\/16\/2016\/05\/AddConnectedService1.png\"><img decoding=\"async\" class=\"alignnone wp-image-7005 size-full\" src=\"https:\/\/devblogs.microsoft.com\/aspnet\/wp-content\/uploads\/sites\/16\/2016\/05\/AddConnectedService1-1.png\" alt=\"AddConnectedService1\" width=\"804\" height=\"548\" \/><\/a><\/p>\n<ol>\n<li>In this dialog, click Microsoft on the left column, then click WCF Service \u2013 Preview in the middle column, you might need to scroll down a bit, and finally click on the Configure button. This will bring up Configure WCF Service Reference dialog box.<\/li>\n<\/ol>\n<p><a href=\"http:\/\/devblogs.microsoft.com\/aspnet\/wp-content\/uploads\/sites\/16\/2016\/05\/Configure.png\"><img decoding=\"async\" class=\"alignnone wp-image-7015 size-full\" src=\"https:\/\/devblogs.microsoft.com\/aspnet\/wp-content\/uploads\/sites\/16\/2016\/05\/Configure-1.png\" alt=\"Configure\" width=\"804\" height=\"552\" \/><\/a><\/p>\n<ol>\n<li>You can either click the Discover button to initiate a search for services that are contained in the current solution or enter a service URL in the Address box and then click Go to search for services hosted at the address.\u00a0 The services that are found will be displayed in the Services box and you can select the one you want to use. You can also enter the namespace that you want to use for the reference in the Namespace box.<\/li>\n<\/ol>\n<p>Once a service has been selected you can click Next to visit the Data Type Options and the Client Options pages; alternatively you can click Finish to use default parameter values.<\/p>\n<p><a href=\"http:\/\/devblogs.microsoft.com\/aspnet\/wp-content\/uploads\/sites\/16\/2016\/05\/DataTypeOptions.png\"><img decoding=\"async\" class=\"alignnone wp-image-6955 size-full\" src=\"https:\/\/devblogs.microsoft.com\/aspnet\/wp-content\/uploads\/sites\/16\/2016\/05\/DataTypeOptions-1.png\" alt=\"DataTypeOptions\" width=\"804\" height=\"552\" \/><\/a><\/p>\n<p>One of the novelties for this release is the ability to reuse types defined in the project and types from assembly and project references. This is a very popular feature in the Visual Studio <a href=\"https:\/\/msdn.microsoft.com\/en-us\/library\/bb386382.aspx\" target=\"_blank\" rel=\"noopener\">Add Service Reference tool<\/a> for traditional .NET Framework projects that was missing in previous releases. This is useful when types used for creating the service you are adding a reference to are available to your project, some of these types might be defined in .NET Core framework assemblies for instance, and in order to avoid type clashing it is necessary to reuse the existing types.<\/p>\n<ol>\n<li>Click Finish when you are done.<\/li>\n<\/ol>\n<p><a href=\"http:\/\/devblogs.microsoft.com\/aspnet\/wp-content\/uploads\/sites\/16\/2016\/05\/Scaffolding2.png\"><img decoding=\"async\" class=\"alignnone wp-image-7045 size-full\" src=\"https:\/\/devblogs.microsoft.com\/aspnet\/wp-content\/uploads\/sites\/16\/2016\/05\/Scaffolding2-1.png\" alt=\"Scaffolding2\" width=\"630\" height=\"460\" \/><\/a><\/p>\n<p>This will download metadata from the WCF service, generate a reference.cs file for the WCF client proxy, and add it to your project under the Service References folder. The project\u2019s project.json file will also be updated with the NuGet package references required for your project to compile and run on the target platform.<\/p>\n<p>You can then create instances of the WCF client types generated by the tool and communicate with your web service as desired.<\/p>\n<p><strong>\u00a0<\/strong><\/p>\n<p><strong>What\u2019s next and feedback request<\/strong><\/p>\n<p>This is a preview version of the tool. We are working to improve it and bring in more features in the future. In the meanwhile, we would love to hear about your experience using this tool and any feedback you can provide, including issues you may find, as well as features you would like to see implemented in the tool.<\/p>\n<p>Thank you and happy coding!<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>With the availability of .Net Core RC2 and ASP.NET Core RC2 we are pleased to announce an update to the WCF Connected Service Preview for ASP.NET 5 Visual Studio extension tool for generating SOAP service references for clients built on top of WCF for .NET Core\u00a0RC2. This update brings some improvements to the user experience [&hellip;]<\/p>\n","protected":false},"author":462,"featured_media":58792,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[197,7509],"tags":[7514,7515,7516,7517,7339,7518,7519,7520],"class_list":["post-6937","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aspnet","category-aspnetcore","tag-add-service-reference","tag-connected-service","tag-service-reference","tag-soap-service","tag-wcf","tag-wcf-proxy","tag-wcf-service","tag-wcf-service-reference"],"acf":[],"blog_post_summary":"<p>With the availability of .Net Core RC2 and ASP.NET Core RC2 we are pleased to announce an update to the WCF Connected Service Preview for ASP.NET 5 Visual Studio extension tool for generating SOAP service references for clients built on top of WCF for .NET Core\u00a0RC2. This update brings some improvements to the user experience [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/6937","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/users\/462"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/comments?post=6937"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/6937\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media\/58792"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media?parent=6937"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/categories?post=6937"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/tags?post=6937"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}