TLS configuration in iOS 17.4 version, wcf service does not connect

Hello, I am currently receiving an error message when trying to connect to my web service(use http), I suspect it is a tsl configuration, I have already modified the Info.plist configuration file, currently I have this configuration: The error message is the following:

System.InvalidOperationException: Not supported Content-Type in the response: " at System.Web.Services.Protocols.-WebServiceHelper.InvalidOperation (System. String , System.Net.WebResponse, System.Text.Encoding ) <0x102261ef0

  • 0x0014c> in <aleab3d663f2403-f86390ab4e99d1c4e#e4af9bbaef9-b71791783b4e0b13b9986>:0

at System.Web.Services. Protocols.-SoapHttpClientProtocol.ReceiveRes- ponse (System. Net.WebResponse, System.Web.Services.Protocols.Soap-ClientMessage , System.Web.Services.Protocols.Soap- Extension [] ) <0x10225d920 + Ox001ef> in <aleab3d663f2403-f86390ab4e99d1c4e#e4af9bbaef9-b71791783b4e0b1369986>:0 at System.Web.Services.Protocols.-SoapHttpClientProtocol.AsyncGetRes- ponseDone (System.lAsyncResult) <0x10225d300 + 0x0021f> in <aleab3d663f2403f86390ab4e99d1-c4e#e4af9bbaef9b71791783b4e0b13-b9986>:0 ok

Please help, someone has already had a similar problem, currently due to this problem you cannot log in to the application, greetings and thank you for your help.

That error is coming from a third-party runtime, so I can’t say anything definitive about it. However, it doesn’t look like it’s related to App Transport Security. Rather, it looks like the runtime is having problems parsing the response it got from your server.

My advice is that you create a small test project that attempts to fetch the same URL using URLSession. If that fails in a similar way, I’d be happy to help you investigate. OTOH, if that works then this is something you should escalate via the support channel for the third-party runtime you’re using.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

TLS configuration in iOS 17.4 version, wcf service does not connect
 
 
Q