问题
According to
https://msdn.microsoft.com/en-us/library/system.servicemodel
the Windows Universal Platform supports the NetHttpBinding. In Visual Studio, I can develop a simple WCF client using this binding, without errors. I can use the NetHttpBinding class of the ServerModel namespace. When I deploy the client to a Raspberry Pi 2, a
PlatformNotSupportedException
occurs.
Which WCF bindings are really supported by Windows 10 IoT?
回答1:
There is almost no information available public about WCF client profile for windows 10 IoT, but I think it's very easily for you to test them. It's still a prerelease preview, so it's really possible.
To move forward, I think you can use HttpClient in System.Net.Http namespace to consume restful service. check Jeff Sanders's blog.
来源:https://stackoverflow.com/questions/33151110/windows-10-iot-supported-bindings