Jan 12 2022 03:13 AM
Hello,
We need to migrate own Xamarin iOS application to .NET 6 iOS. But we can't call ASMX web services (available with Xamarin iOS). Web References is not available with visual studio for .NET 6 projects. We have only Connected Services but it's not supported. Have you an idea for that? Connected services will be supported?
You will find more information here: https://docs.microsoft.com/en-us/answers/questions/689592/asmx-web-service-client-net-6-ios.html?chi...
Jan 12 2022 12:26 PM
Jan 12 2022 11:40 PM
Yes, I can use that. It works with Windows and Mac apps. But with iOS, I can call nothing.
I have this exception with each calls:
ex {System.PlatformNotSupportedException: Operation is not supported on this platform. at System.Net.Http.NSUrlSessionHandler.set_ServerCertificateCustomValidationCallback(Func`5 value) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags i…}
Jan 13 2022 09:07 AM
Jan 14 2022 01:32 AM - edited Jan 14 2022 01:38 AM
No, it doesn't work.
ATS is disabled and we use https (TLS 1.2).
<key>NSAllowsArbitraryLoads</key>
<true/>
My cproj: (My web services are called by DLLMedinect.dll)
https://pastebin.com/C8P0JA2V
My info.plist:
https://pastebin.com/UcZd7JC1
I created this also for avoid a lot of changes:
https://pastebin.com/tdtDU3C0
Jan 22 2022 04:34 AM
Apr 05 2023 02:31 AM - edited Apr 06 2023 12:45 PM
My exception is also the same.
ex {System.PlatformNotSupportedException: Operation is not supported on this platform. at System.Net.Http.NSUrlSessionHandler.set_ServerCertificateCustomValidationCallback(Func`5 value) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags i…}