加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

c# – Windows应用商店应用中的SOAP编码

发布时间:2020-12-15 21:49:10 所属栏目:百科 来源:网络整理
导读:我正在尝试创建一个使用Web服务的 Windows应用商店应用. Visual Studio拒绝创建服务代理方法,并在日志中显示以下警告: Custom tool warning: Contract … is not compatible with Windows Store apps because it contains one or more operations with SOAP
我正在尝试创建一个使用Web服务的 Windows应用商店应用. Visual Studio拒绝创建服务代理方法,并在日志中显示以下警告:

Custom tool warning: Contract … is not compatible with Windows Store apps because it contains one or more operations with SOAP Encoding (use=’encoded’). Only the non-encoded operations will be generated.

所以问题是:

在哪里可以找到有关Web服务消费的Windows应用商店应用限制的完整列表?
是否有任何已知的解决方法(鉴于我无法更改服务)?

解决方法

如果您因为任何包装器最有可能进行SOAP编码的方式而无法更改Web服务,并且SOAP Toolkit不允许进行大量输出自定义,那么您似乎已经陷入困境.

也许编写一个(可能是功能上重复的)基于web.api的web服务是一个更好的解决方案?见this link for an example

编辑:回应第一条评论……

是的,不是;本质上创建一个REST(无论是webapi,WCF等是否适合你)包装器.

请参阅有关创建REST包装器的这些信息性帖子:

helpfull post number 1和helpfull post number 2

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读