Lightswitch和Web服务 [英] Lightswitch and Webservices

查看:58
本文介绍了Lightswitch和Web服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对不起,我不知道这是一个新问题还是一个重复的问题.我进行了谦虚的搜索,但没有找到相关的问题.

I'm sorry, I don't know whether this is a new question or a repeated on.. I do my humble search but didn't find a related one.

这是我的情况:

Here is my case:

我有一个采用LS2013 VS update3设计的3层灯开关应用程序:

I've a 3 tier lightswitch application designed with LS2013 VS update3 :

1-Frontend服务器:托管Silverlight桌面/Web lightswitch客户端

1-Frontend server : hosting a silverlight desktop/web lightswitch client

2-数据库服务器:同时拥有成员资格和应用程序数据库的SQL 2008

2-Database server : SQL 2008 which holds both Membership and Application database

3-后端服务器:托管大量与不同版本的硬件通信的Web服务(SOAP)

3-Backend server : hosting a very large number of webservices (SOAP) which communicate with different version of hardware

现在,出于安全原因,仅允许前端和数据库与后端服务器通信

Now, for security reasons, Only frontend and database are allowed to communicate with backend server

问题是,当我引用任何Web服务时在LS客户端中,我的客户尝试使用它..通信被阻止..

The problem is, when I reference any webservice  in LS client and my customers try to consume it .. the communication blocked..

我认为,当在客户端中引用Web服务时,代码将在客户端主机中运行,但会被拒绝.

I think that when reference a webservice in the client, the code run in client host which is refused.

我需要一种解决方案来引用服务器项目中的Web服务,然后通过单击客户端屏幕之一中的按钮来调用它????

I need a solution to reference webservice in server project and call it by click a button in one of client screens ????

推荐答案

您的Web服务是否符合OData?  如果是这样,只需将它们作为OData数据源添加到您的项目中即可.
Are your webservices OData compliant?  If so, just add them to your project as OData data sources.


这篇关于Lightswitch和Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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