Getting SOAP Errors with ASMX Web Service e.g Unsupported Media Tyype
问题 I have been given an old webservice .asmx to work with and although the code works fine in debug mode (VS play debug on local host) when I try and write a consumer app to pass the relevant SOAP request to get a response I cannot get it to work. In .NET I get Status 415 Unsupported Media Type (never heard of that before) - tech asked me what media I was sending I said text as XML. Here is all the code plus debug. I tried even writing an ASP classic version but get different errors depending on