ASP.Net Core 2 Web API method fails calling SOAP Web Service call with SiteMinder agents Enabled
General Information
A .NET Core Web API project that consumes a SOAP web service. The methods that consume SOAP works well in the deployment server, perfect. When the SiteMinder agents (CA SiteMinder Web Agent Module and CA SiteMinder Web Agent Module-32) enabled, SOAP call fails.
Can somebody help me to identify/fix this issue?
Information
SOAP web service call fails in the async call (Please see the code)
Method
// Calls SOAP endpoint
Task
Inner Exception
System.ServiceModel.CommunicationException:
An error occurred while sending the request. ---> System.Net.Http.HttpRequestException: An error occurred while sending the request. --->
System.Net.Http.WinHttpException: Not enough storage is available to complete this operation
at System.Net.Http.WinHttpHandler.ThrowOnInvalidHandle(SafeWinHttpHandle handle)
at System.Net.Http.WinHttpHandler.EnsureSessionHandleExists(WinHttpRequestState state)
at System.Net.Http.WinHttpHandler.1.ConfiguredTaskAwaiter.GetResult()
at System.Net.Http.HttpClient.<FinishSendAsyncUnbuffered>d__59.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.ServiceModel.Channels.HttpChannelFactory1.HttpClientRequestChannel.HttpClientChannelAsyncRequest.
Environment data
Product Information: Version: 2.1.202 Commit SHA-1 hash: 281caedada
Runtime Environment: OS Name: Windows OS Platform: Windows Base Path: C:\Program Files\dotnet\sdk\2.1.202\
Microsoft .NET Core Shared Framework Host
Version : 2.0.9 Build : 1632fa1589b0eee3277a8841ce1770e554ece037
This issue was moved to dotnet/corefx#32319
Corrected a typo Method // Calls SOAP endpoint Task< POCOClass > pocoOutput = await serviceClient.SAP_DATAService_LISTAsync(request) pocoOutput. Wait()