在Windows Store应用SOAP编码 [英] SOAP encoding in Windows Store App

查看:172
本文介绍了在Windows Store应用SOAP编码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试创建一个使用Web服务的Windows应用商店应用。 Visual Studio拒绝在日志中创建具有以下警告的服务代理方法:

I am trying to create a Windows Store App that consumes a web service. Visual Studio denies to create service proxy methods with following warning in logs:


自定义工具警告:合同...与Windows应用商店不兼容因为它包含一个或多个具有SOAP编码的操作(use ='encoded')。

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.

所以问题是:

我在哪里可以找到Windows应用商店应用限制网络服务消费的完整列表?

是否有任何已知的解决方法(因为我无法更改服务)?

Where can I find full list of Windows Store app limitations on web services consumption?
Are there any known workarounds (given I can't change the service)?

推荐答案

如果你不能改变web服务,似乎你很困惑,因为任何包装器最可能是SOAP编码的方式,以及SOAP工具包不允许大量输出自定义。

It seems you're pretty much screwed if you can't change the web service because of the way that any wrappers are most likely SOAP encoded, and also the SOAP Toolkit doesn't allow for much output customisation.

也许编写一个(可能功能重复的)基于web.api的webservice是一个更好的解决方案?请参阅此链接的示例

Perhaps writing a (possibly functionally duplicated) web.api based webservice is a better solution? See this link for an example

编辑:回应第一个评论...

In response to the first comment...

是和否;

有关创建REST包装器的信息,请参阅以下信息:

See these informative posts on creating a REST wrapper:

helpfull post number 1 helpfull post number 2

这篇关于在Windows Store应用SOAP编码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆