I have the following NuGet packages installed
QbSync.QbXml QbSync.WebConnector QbSync.WebConnector.AspNetCore SoapCore
In netcore 2.2 I configured the endpoint with the first code sample. I installed the NuGet package SoapCore for .net 5, but I am unable to get a proper endpoint configured, second code sample.
public void Configure(IApplicationBuilder application){application.UseWebConnector(options => {options.SoapPath="/QBConnectorAsync.asmx"});
application.UseSoapEndpoint<IServiceCollection>("/QBConnectorAsync.asmx", new SoapEncoderOptions(), SoapSerializer.XmlSerializer);
Try these steps:
1.Install Nuget packages:
Install-Package SoapCore2.There are 2 different ways of adding SoapCore to your ASP.NET Core website. If you are using ASP.NET Core 3.1 or higher with endpoint routing enabled (the default):
In Startup.cs:
Reference documentation: https://github.com/DigDes/SoapCore