- Home /
UWP (hololens) SOAP Web Service
I have a SOAP
web service to communicate with. In command line (`wsdl`) I've managed to generate a client code. It relies upon System.Web
and System.Web.Services
. So I have create a "Plugins" folder and put both DLLs there (took from C:\Program Files\Unity\Hub\Editor\2019.3.0b2\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api
in my case). I've tried to use the web service by calling one of the method and it all works in Editor, I'm able to get a parsed response. So I've made a Build and Deployed to the HL1. All good, but the app crashes when I press the button to call a web service method. This is an exception info: "The thread tried to read from or write to a virtual address for which it does not have the appropriate access."
. Could someone help me to understand the issue. Maybe we have someone who successfully implemented SOAP on Hololens?
Edit:
So I've found that instead of copying DLLs into the "Plugins" folder, you can create a file called csc.rsp
inside the "Assets" folder and put references inside it like so: -r:System.Web.dll -r:System.Web.Services.dll
And it seems to be working correctly, again, only in Editor. Good thing is that it is not crashing on Hololens now, it just does nothing, after I press the button to use the Web Service it just does nothing. Probably I need to connect the debugger and see what happens on the device. Gonna try tomorrow morning...
Update:
So this is an exception raised on Hololens: System.NotSupportedException: System.Web.Services.Protocols.SoapHttpClientProtocol::.ctor occurred
Does it have something to do with the fact that my endpoint is http
and not https
?
Did you find any solution to the last error? NotSupportedException: System.Web.Services.Protocols.SoapHttpClientProtocol::.ctor ?
my endpoint is also http on a local machine, the hololens can browse the address and everything is fine inside the Editor
Your answer
Follow this Question
Related Questions
Android plugin SOAP client side 1 Answer
webservices with il2cpp 2 Answers
how to call SOAP web services with SOAP client? 0 Answers
Problems saving to My Pictures in Windows Universal build 0 Answers
WACK test failed APPCONTAINER 1 Answer