Ticket 7494
A project, migrated from Windows to Shared Kubernetes, provides Exposed Webservices (POST JSON)
When called, a sys-error is triggered, Message: Cannot access a disposed object. Object name: 'System.String'.
Example: WEM Shared West-Europe Staging Error Token: sys-a3c1fa01-ca70-4882-851e-3dae48e3f19a
Stack Trace: at Microsoft.AspNetCore.WebUtilities.FileBufferingReadStream.set_Position(Int64 value) at ZoomBim.Wem.Runtime.ApplicationService.RequestInput.WebServiceOperationJsonInput.GetRawRequestMessage() at ZoomBim.Wem.Runtime.ApplicationService.Controllers.WebServicesController.WsRuntimeInvocationContext`1.GetRawRequestMessage() at ZoomBim.Wem.Runtime.Webservices.JsonWsRuntime.(String , JToken , IWsRuntimeInvocationContext ) at ZoomBim.Wem.Runtime.ApplicationService.Controllers.WebServicesController.(IRuntimeContext , IWebServiceOperationJsonInput )
This situation is caused by using the Request Header Binding
So I've added a Request Header Binding to the testing service as well
Urls to test:
PartOf NEW service and method (works because it does NOT have Request Header Binding)
https://partof.staging.westeurope.wem.io/webservices/testwem/testcall
PartOf existing Service Renamed Method FAILS because of Request Header Binding
https://partof.staging.westeurope.wem.io/webservices/salesdock/testwem2
Own new testservice with Header Binding: FAILS
workitem3211.rt-test-staging.x001.eu41t.wemtest.io/webservices/testBasicServiceEndpoint/TestCall