创建连接到远程数据库并使用公钥加密的服务
我一整天都在搜索并阅读了很多教程,但我仍然很困惑。我正在开发一个项目,该项目具有客户端(客户 - 不要与客户端应用程序混淆)指定的以下要求:
- 连接到远程服务器并验证连接是否成功。
- 通过 SOAP 连接到所述服务器上的 Web 服务。
- 使用公钥加密对服务进行身份验证
- 身份验证成功后,通过 Web 服务将产品和类别列表推送到远程服务器上的 MSSQL 数据库。
客户端是一个用 C# 编写的 Winforms 应用程序。到目前为止,我已经创建了一个 WCF 服务应用程序,其中包含针对产品和类别的单独服务,但我无法弄清楚其余的内容。
任何人都可以为我指出涵盖这些要求的一个或多个教程的方向吗?
非常感谢!
乔
I have been searching all day and reading many tutorials and still I am confused. I am working on a project that has the following requirements as specified by the client (customer - not to be confused with client app):
- Connect to a remote server and verify that connection was successful.
- Connect to Web service on said server via SOAP.
- Authenticate with service using public key encryption
- Upon successful authentication, push a list of products and categories to a MSSQL database on remote server via the Web service.
The client is a Winforms application written in C#. So far, I have created a WCF Service Application with separate services for the products and categories but I cannot figure the rest out.
Can anyone point me in the direction of a tutorial or tutorials that cover these requirements?
Many thanks in advance!
Joe
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
嗯..您需要使用某种数据访问层与数据库进行交互。您的选择是滚动您自己的..或使用预制的解决方案,例如 Linq2SQL、Entity Framework、nHibernate、SubSonic 等。
就安全性而言,如果使用 Web 服务传输数据是问题,您可以简单地使用 HTTPS。
Well.. you'll want to interface with the database using a Data Access Layer of some sort. Your options are rolling your own.. or using pre-made solutions such as Linq2SQL, Entity Framework, nHibernate, SubSonic etc.
In regards to security, if transmission of data with the webservice is the issue you could simply use HTTPS.
我已经制定了以下解决方案:
我走在正确的轨道上吗?
I have worked out the following solution:
Am I on the right track?