Hi @1231231232121 ,
Replace NetTcpBinding on the client side with WSHttpBinding to interact with SOAP servers that comply with WS-* protocols.
EndpointAddress address = new EndpointAddress("https://uri/to/service.svc");
WSHttpBinding binding = new WSHttpBinding();
IService1 proxy = ChannelFactory<IService1>.CreateChannel(binding, address);
Here are the docs for details:
WSHttpBinding: https://learn.microsoft.com/en-us/dotnet/api/system.servicemodel.wshttpbinding?view=dotnet-plat-ext-6.0
Configuring transport security (SSL) for WSHttpBinding: https://learn.microsoft.com/en-us/dotnet/framework/wcf/feature-details/transport-security-with-basic-authentication
Best regards,
Lan Huang
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.