When working with an ASP.NET Core application in Visual Studio 2015, there is no out of the box support to add WCF service references. To add services references of WCF services, Microsoft introduced the WCF Connected services preview to generate the SOAP service references for applications that are using .NET Core.
To install WCF Connected Services tool extension we need to have Visual Studio 2015 installed. And then it can be installed from the Visual Studio Extensions and Updates dialog as shown below. This dialog can be opened from Tools > Extensions and Updates option. Search for WCF Connected Services and download. This tool requires to have Visual Studio Update 3 plus the ASP.NET and Web Tools for Visual Studio 2015 extension installed as well.
After installing WCF Connected Services, It asks you to restart Visual Studio and then you can add service reference by right clicking the references node and click on Add Connected Service option
Add Connected Service option will open up the dialog where you can choose WCF Service – Preview as shown below
And finally, you can specify the service URL and add WCF Soap Service reference in your project that creates a proxy and you can use that proxy object to invoke WCF service methods.
Hope this helps!
When consuming a web service using Soap Protocol, how does one use WS-Addressing programmatically? How to define WS-A header (ReplyTo, MessageID, etc)? Problem is that when I add Service Reference… nothing in reference.cs refers to soaphttpclientprotocol, but if I do Add Web Reference… then I have partial classes that implement SoapHttClientProtocol. Using the last the prefixes in the messages are correct “soapenv:envelope” but with Service Reference, the prefixes are “s:envelope”, I’m catching the messages using Fiddler. Please Help Me!