При подключении службы SOAP в .NET Core подключенная служба отображается, как и ожидалось, в обозревателе решений
![enter image description here](https://i.stack.imgur.com/64Dt1.png)
ConnectedService.json
содержитопределения, как предполагается.Т.е.
{
"ProviderId": "Microsoft.VisualStudio.ConnectedService.Wcf",
...
"ExtendedData": {
"Uri": "https://test.example.net/Service.svc",
"Namespace": "UserWebService",
"SelectedAccessLevelForGeneratedClass": "Public",
...
}
Uri
из ExtendedData
заканчивается в Reference.cs
файле
private static System.ServiceModel.EndpointAddress GetEndpointAddress(EndpointConfiguration endpointConfiguration)
{
if ((endpointConfiguration == EndpointConfiguration.WSHttpBinding_IAnvandareService))
{
return new System.ServiceModel.EndpointAddress("https://test.example.net/Service.svc");
}
throw new System.InvalidOperationException(string.Format("Could not find endpoint with name \'{0}\'.", endpointConfiguration));
}
Если процесс развертывания выглядит как TEST > STAGING > PRODUCTION
, может потребоваться соответствующийконечные точки.Т.е. https://production.example.net/Service.svc
.
Мы используем Devure Devops для сборки и Azure Devops / Octopus Deploy для развертываний