- Home /
webservices with il2cpp
Hi,
We have been experiencing issues in the communications between unity client (5.1.2 upgraded from 5.0) and server only with il2cpp activated (with Mono runs fine).
Is necessary to configure something different than: http://wiki.unity3d.com/index.php?title=Webservices_In_Unity#Setting_up_the_project
Do we need to update these dlls within the project? System.Web.dll System.Web.Services.dll
Best regards and thanks in advance!!
Answer by Katsura_ · Aug 03, 2015 at 11:32 AM
Solved, I posted here what I found:
Project generation from Unity will strip unused symbols from classes even if the option is marked as "Stripping Level: Disabled" (when IL2CPP is uesd). This will make iOS unable to use communication libraries (System.Web.dll and system.Web.Services.dll) since they are using reflection. It is needed to specify classes that should't be stripped. This is done with link.xml file.
Hi $$anonymous$$atsura, would it be possible for you to share your link.xml file? I've attempted creating one preserving all the needed assemblies but with no success, here's how $$anonymous$$e looks:
<assembly fullname="System.Web.Services" preserve="all"></assembly>
<assembly fullname="System.Web" preserve="all"></assembly>
<assembly fullname="System.Service$$anonymous$$odel" preserve="all"></assembly>
Thanks in advance!
Answer by Katsura_ · Aug 03, 2015 at 11:33 AM
Solved, posting here my conclusion:
Project generation from Unity will strip unused symbols from classes even if the option is marked as "Stripping Level: Disabled" (when IL2CPP is uesd). This will make iOS unable to use communication libraries (System.Web.dll and system.Web.Services.dll) since they are using reflection. It is needed to specify classes that should't be stripped. This is done with link.xml file.
Your answer
Follow this Question
Related Questions
UWP (hololens) SOAP Web Service 0 Answers
Web service not working in Web Player build 1 Answer
Handle Blank Response From Web Server 0 Answers
Web Bluetooth and Unity with Webgl,Web Bluetooth and Unity WebGl? 1 Answer
PUN Socket error 1 Answer