dav gon

dav gon

  • NA
  • 18
  • 2.6k

Using Multiple Service Contracts dotnet core 3.1

Jan 29 2020 10:35 PM
Access The Service Using Different Contract Or Multiple Service Contracts
 
 I have found this link, really interesting
 
https://www.c-sharpcorner.com/UploadFile/c1de77/access-the-service-using-different-contract-or-multiple-serv/
 
i would like to know if someone has been able to reproduce it on dotnet Core 3.1
 
 
        public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
        {

            app.UseEndpoints(endpoints =>
            {
                endpoints.UseSoapEndpoint<IService>("/Service.svc", wsServiceBinding);
                endpoints.UseSoapEndpoint<IOtherService>("/Service.svc/OtherService", wsServiceBinding);
                endpoints.UseSoapEndpoint<IOtherService2>("/Service.svc/OtherService2", wsServiceBinding);
            });
 
need to  show all wsdl definition  at /Service.svc
 

Answers (3)