Last active
June 8, 2020 10:13
-
-
Save NimzyMaina/46b6529fe3e8f57e7f0dd9e724e6dca2 to your computer and use it in GitHub Desktop.
Consuming WSDL Services Using ASP.NET Core
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Threading.Tasks; | |
namespace TempConvert.Interfaces | |
{ | |
[System.ServiceModel.ServiceContractAttribute( | |
Namespace="https://www.w3schools.com/xml/", | |
ConfigurationName="TempConvert.Interfaces.ITempConvert")] | |
public interface ITempConvert | |
{ | |
[System.ServiceModel.OperationContractAttribute( | |
Action="https://www.w3schools.com/xml/FahrenheitToCelsius", ReplyAction="*")] | |
[System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)] | |
Task<string> FahrenheitToCelsiusAsync(string Fahrenheit); | |
[System.ServiceModel.OperationContractAttribute( | |
Action="https://www.w3schools.com/xml/CelsiusToFahrenheit", ReplyAction="*")] | |
[System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)] | |
Task<string> CelsiusToFahrenheitAsync(string Celsius); | |
} | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.ServiceModel; | |
namespace TempConvert.Interfaces | |
{ | |
public interface ITempConvertChannel : ITempConvert, IClientChannel | |
{ | |
} | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Threading.Tasks; | |
namespace TempConvert.Interfaces | |
{ | |
public interface ITempConvertRepository | |
{ | |
Task<string> FahrenheitToCelsiusAsync(string fahrenheit); | |
Task<string> CelsiusToFahrenheitAsync(string celsius); | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment