简体   繁体   English

Windows Phone 8中的WCF nettcpbinding?

[英]WCF nettcpbinding in windows phone 8?

I have WCF Service with nettcpbinding endpoint , how can I consume this service in WP8?, 我有带有nettcpbinding端点的WCF服务,如何在WP8中使用此服务?,

I don't want to use sockets because I don't want to change the implementation of my service, is there any way to consume the service using sockets? 我不想使用套接字,因为我不想更改服务的实现,是否有任何方法可以使用套接字使用服务?

Will nettcpbinding be supported in the next versions of WP8, if yes then when? 在下一版本的WP8中会支持nettcpbinding吗?

I not using WCF (but that *.asmx), Its more simple type of services but this solution maybe work too for you 我没有使用WCF(而是* .asmx),它的服务类型更为简单,但该解决方案可能也对您有用

http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj684580%28v=vs.105%29.aspx http://msdn.microsoft.com/zh-cn/library/windowsphone/develop/jj684580%28v=vs.105%29.aspx

You can implement it yourself. 您可以自己实现它。 It's not that hard, and the protocol stack is well-documented. 这并不难,并且协议栈有据可查。 See this article for an overview. 请参阅本文以获取概述。

WP7-8 already includes binary XML serialization used by nettcp, namely XmlDictionaryReader and XmlDictionaryWriter classes. WP7-8已包含nettcp使用的二进制XML序列化,即XmlDictionaryReader和XmlDictionaryWriter类。 So, you only need to implement the lower-level pieces of the protocol, ie the framing protocol, and SOAP envelopes. 因此,您只需要实现协议的低级部分,即成帧协议和SOAP信封。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM