I’m in the process of making our API support SOAP but a WebServiceException is thrown every time, “An HTTP Content-Type header is required for SOAP messaging and none was found.”. Looking at the source code what I’m doing below should work just fine.
public void GetDevice_Soap12_AsExpected()
using (var soapClient = new Soap12ServiceClient("http://localhost:8088/"))
GetDevice request = new GetDevice()
Id = 1,
GetDeviceResponse response = soapClient.Send<GetDeviceResponse>(request);