创建接受“匿名”调用的webservice(很难解释) [英] create webservice that accepts 'anonymous' calls (hard to explain)

查看:52
本文介绍了创建接受“匿名”调用的webservice(很难解释)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将尝试解释这种情况。
在我的公司,我们使用第三方网络服务。使用这项服务,我创建了一些工作正常的工具。事实上,它们很好,我们将它们租给其他公司(没有任何编程知识)。

我们有一个用户名和密码来使用这项服务。问题是,如果我们想租用该工具(我们不想销售源代码),他们需要提供他们的用户/通行证。这就是他们不想要的,因为我们可能会检索他们所有的机密数据。我完全理解他们。

像我们这样的另一家公司也创造了一些他们想租赁的工具。他们面临同样的问题。第三方Web服务的所有者不提供任何解决方法。但另一家公司创建了一个解决方案。

他们说:创建一个SOAP代理(它只是一个Web服务,不是吗?),它是在租赁公司托管的。而不是直接调用第三方Web服务,调用此SOAP代理。此SOAP代理将登录服务,进行调用并返回结果。在这种情况下,我们不知道其他公司的用户/通行证。此外,此代理可以执行一些日志记录,因此他们总是可以看到我们是否进行了不允许的调用。听起来像一个很好的解决方案。

现在出现了问题。他们用PHP创建,我想用.NET做。我问过他们:这意味着代理服务器的第三方服务的所有方法都重复了吗?他们的回答是:不!所以我需要创建一个接受'匿名'电话的网络服务。我创建了一个空的webservice。我某处需要捕获传入的请求,并将它们重定向到正确的第三方服务调用。但我不知道该怎么办。

我希望自己明白。

I'll try to explain the situation.
In my company, we use a 3rd party webservice. Using this service, I created some tools that work fine. In fact, they are that fine, that we to lease them to other companies (without any programming knowledge).

We have an username and password to use this service. The problem is, if we want to lease the tool (we do not want to sell the source code), they need to provide their user/pass. And that’s what they don’t want to, because we possibly could retrieve all their confidential data. I completely understand them.

Another company like us, created also some tools they wanted to lease. And they faced the same problem. The owner of the 3rd party web service doesn’t provide any workaround. But this other company created a solution.

They said: Create a SOAP proxy (which is just a web service, isn’t it?) that is hosted at the leasing company. Instead of making the calls directly to the 3rd party web service, make the call to this SOAP proxy. This SOAP proxy will login to the service, make the call and return the result. In this case, we don’t know the other company’s user/pass. Also, this proxy could do some logging, thus they always can see if we make calls that are not allowed. Sound like a fine solution.

Now comes the problem. They created in PHP, I want to do in .NET. I asked them: Thus it means that the proxy has all the methods of the 3rd party service duplicated? Their answer: No!
So I need to created a webservice that accepts ‘anonymous’ calls. I created an empty webservice. I somewhere need to catch incoming requests, and redirect them to the correct 3rd party service call. But I have no idea how to do.

I hope I made myself clear.

推荐答案

我不明白谁有这个ID &安培;第三方Web服务的密码 - 您,您的客户或您是否都有个人服务?
I don't understand who has the ID & Password for the 3rd party web service - you, your customer, or you both have individual ones ?


这篇关于创建接受“匿名”调用的webservice(很难解释)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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