0

I have a Angular/.NetCoreWebApi app running in Visual Studio Code on my Mac and I need to run some older WCF/SOAP calls. I can't do this with .Net Core (doesn't support WCP/Soap protocols) so I was told the best solution is to create a .Net Web API project and have my .Net Core project call it to make the web service calls.

I'm on a Mac! So is this even possible knowing that .Net doesn't run on a Mac?? If I can create a project to make these calls on my Mac, which project type do I select to create in the terminal/command prompt, when doing a >dotnet new -h?

If what I want isn't possible, is it possible to run the .Net app inside a docker on my Mac?

If these are all a NO I can use my windows machine at work instead, but I'm looking at the types of projects to create on my Win machine on the command prompt and I still don't see a .Net Web Api app. Only .Net Core projects. I have the .Net framework 4.8 packages installed! And I can create the .Net project in Visual Studio, so is this the only way to create it?

enter image description here

chuckd
  • 13,460
  • 29
  • 152
  • 331

1 Answers1

2

.Net Core supports WCF clients, so there shouldn't be any reason for you not to use the ASP.NET Core Web API project type, assuming you mean you need to call a WCF service external to your project as a client, and not to host a WCF service.

This user showed that it was possible by manually adding and invoking the svcutil tool.

Tom W
  • 5,108
  • 4
  • 30
  • 52
  • Hi Tom. The later, my application needs to call a WCF service external to my project. What's funny, and maybe you can answer this, is my app is calling multiple WCF web services. I can generate the web service proxy files with svcutil and one of them works to one service, but the second one doesn't. They are to two different clients. Is it possible that one supports the proxy file I generated with .Net Core and the other doesn't? I'm not sure how they configure things on their(server) end! – chuckd Feb 18 '20 at 18:58
  • 1
    @user1186050 If it doesn't work for one, sounds like that should be a separate question, with its own description of the steps you did and what the result was. – mason Feb 18 '20 at 19:07
  • @user1186050 it's fairly established at this point that there is a good portion of the gamut of SOAP standards that svcutil doesn't understand, in particular expressions it tends to ignore, in my experience. WCF supports the vast majority of possible configurations expressible in a WSDL but you'd have to know how to configure them and the proxy generation won't do it for you. As mentioned in a prior comment, that is not generally answerable without some specifics. – Tom W Feb 18 '20 at 19:50