从外部用户接受数据的最佳方法是什么? [英] What would be the best approach to accept data from external users?

查看:93
本文介绍了从外部用户接受数据的最佳方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我是这个新手,所以让我解释一下我的情况.我创建了一个网站,该网站以图形方式表示已处理文件的状态.现在,我们需要接受数据以从外部应用程序上的用户创建此文件.我的网站将从多个不相关的站点接收此数据.我听说过API,但是我不确定这是否是正确的方法.我的网站基于ASP.NET(VB)

更具体地说,我想要的是来自其他站点的人能够将数据插入到我的数据库中.他们已经有一个带有表单的网页,并且将捕获的信息存储在他们的数据库中,但是然后我们需要捕获部分数据以将其插入到我们的数据库中.我只需要姓名,完整地址,电话号码和文件ID.因此,我认为在他们处理表格后,他们可以在我的网站上调用发送所需信息的内容,并将其插入到我们的数据库中.

谢谢

Hi,

I am a newbie at this so let me explain my situation. I created a website that shows a graphical representation of the status of a processed file. Now, we need to accept data to create this files from users on an external application. My website is going to receive this data from more than one not-related sites. I have heard of APIs but I''m not sure if that would be the right approach. My website is built on ASP.NET (VB)

To be more specific, what I want is people from other sites be able to insert data into my database. They already have a web page with a form and they store the captured information in their database, but then we need to capture part of this data to insert it into our database. I only need Name, full address, phone numbers and a file id. So I was thinking that after they process their form, they could call something on my website sending the required information and this something would insert it into our database.

Thanks

推荐答案

您可以使用上面提到的任何Web服务.
You can use any of the Web Services as mentioned above.


您是否使用过MVC?如果是这样,则将MVC暴露给外界的最简单方法是通过JSON webservices.

如果您尚未使用MVC,则可以考虑使用WCF Web服务.
Have you used MVC? If so the simplest way to expose MVC to the outside world is via JSON webservices.

If you have not used MVC, a WCF web service may be an approach to consider.


这篇关于从外部用户接受数据的最佳方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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