WCF传byte[]的方法是什么

技术WCF传byte[]的方法是什么这篇文章给大家介绍WCF传byte[]的方法是什么,内容非常详细,感兴趣的小伙伴们可以参考借鉴,希望对大家能有所帮助。如果想让WCF传输byte[]数组,那么需要使用Mtom。bing

这篇文章给大家介绍WCF传字节[]的方法是什么,内容非常详细,感兴趣的小伙伴们可以参考借鉴,希望对大家能有所帮助。

如果想让WCF传输字节[]数组,那么需要使用Mtom。丁丙可以是wsDualHttpBinding(这个用于双工,也就是需要回掉的情形)或wsHttpBinding .

system.serviceModel

粘合剂

wsDualHttpBinding

绑定名称=' myBinding '消息编码=' Mtom '/

/wsDualHttpBinding

/bindings

服务

服务名='WCFParkPacketServiceLibrary .' SendParkPacketService '行为配置='ParkPacketServiceBehavior '

宿主

基本地址

添加基址=' http://localhost :3330/ParkServiCe/packet/'/

/基址

/host

端点地址binding=' wsDualHttpBinding '绑定配置=' my binding '协定=' wcfparkpacketservice库.'isendpakdpacketservice “/

端点地址='mex '绑定='mexHttpBinding '协定='IMetadataExchange'/

/服务

/服务

行为

服务行为

行为名称='ParkPacketServiceBehavior '

服务元数据httpgetabled=' False '/

服务调试包括exceptiondetailinfaults=' False '/

/行为

/serviceBehaviors

/行为

/system.serviceModel

关于WCF传字节[]的方法是什么就分享到这里了,希望

内容来源网络,如有侵权,联系删除,本文地址:https://www.230890.com/zhan/99278.html

(0)

相关推荐