1

我整天都在搜索并阅读许多教程,但我仍然感到困惑。我正在开发一个项目,该项目具有客户指定的以下要求(客户 - 不要与客户端应用程序混淆):

  1. 连接到远程服务器并验证连接是否成功。
  2. 通过 SOAP 连接到所述服务器上的 Web 服务。
  3. 使用公钥加密对服务进行身份验证
  4. 验证成功后,通过 Web 服务将产品和类别列表推送到远程服务器上的 MSSQL 数据库。

客户端是用 C# 编写的 Winforms 应用程序。到目前为止,我已经为产品和类别创建了一个具有单独服务的 WCF 服务应用程序,但我无法弄清楚其余的。

任何人都可以向我指出涵盖这些要求的教程或教程的方向吗?

提前谢谢了!

4

2 回答 2

1

嗯..你会想要使用某种数据访问层与数据库交互。您的选择是自己滚动.. 或使用预制解决方案,如 Linq2SQL、实体框架、nHibernate、SubSonic 等。

关于安全性,如果使用 Web 服务传输数据是问题,您可以简单地使用 HTTPS。

于 2010-06-11T00:29:54.050 回答
0

I have worked out the following solution:

  1. User enters username, password and public key
  2. Program connects to remote WCF service which checks provided username and password against database on server to ensure that they are correct - username and password are sent via custom MessageContract.
  3. Upon successful authentication, server sends response back to client to let it know to proceed.
  4. User selects products and categories to send to remote server.
  5. Selected information is encrypted by the client with user's public key and decrypted at the server with the corresponding private key.
  6. Decrypted information is stored in database.

Am I on the right track?

于 2010-06-18T05:53:55.217 回答