Package Description
License
—
Deps
8
Install Size
—
Vulns
✓ 0
Published
Jul 13, 2023
$ dotnet add package BenefitServiceLinkLibrary for simple webbased (SOAP, Wcf, asmx) services.
Supported:
Authenication:
Register HttpClient for Token request.
builder.Services.AddHttpClient<ServiceLinkHttpClient>((HttpClient client) =>
{
client.DefaultRequestVersion = new Version(2, 0);
client.DefaultVersionPolicy = HttpVersionPolicy.RequestVersionOrLower;
}).ConfigurePrimaryHttpMessageHandler(() =>
{
var handler = new SocketsHttpHandler()
{
AllowAutoRedirect = true,
PreAuthenticate = true,
Proxy = null
};
return handler;
})
.AddTransientHttpErrorPolicy(p => p.WaitAndRetryAsync(20, retryAttempt => TimeSpan.FromMilliseconds(300 * retryAttempt)));
helper class for reading the disco endpoint.
class to read WSDL
Use to invoke/ call webservice methods.
with only invoking CallServiceOperationAsync( <endpoint address>, <action to invoke>, <request parameters> )