.Net和Web服务 [英] .Net and Web Services

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

问题描述

大家好,

我想开发一个Windows登录表单,该表单将加密的信息发送到Web服务. Web服务解密此信息并将其插入数据库.

谁能向我解释我们如何实施这一过程.或至少我如何将这些数据发送到Web服务.

非常感谢您的配合

Hi guys,

I want to develop a windows login form, that send the information encrypted to the web service. the web service decryption this information and insert it into the DB.

can any one explain to me how can we implement this process. or at least how i can send this data to the web service.

many thanks for your cooperation

推荐答案

1.让您的Web页从用户那里检索凭据.
2.加密管理器用于加密密码的类.可以在此处找到一个:了解Web Service的基础在ASP.NET中 [
1. Have your web pags retrieve the credentials from the user.
2. A class for Ecryption manager to encrypt the password. one can be found here: EncyptionManager.cs[^]

3. Create a web service that will do the Db access logic.

Refer:
Db access logic: Find the UserAction.cs and functions.cs from the above link.

how to create web service: Understanding the Basics of Web Service in ASP.NET[^]

Hope it will help.


1)创建一个Web表单
2)获取数据移动数据库
3)Asp.net Web服务应用程序
4)在该service1.asmx.cs文件中,将使用Web方法\
4)添加您的网络方法

例如:
1) create a web form
2) get the data to move database
3) Asp.net Web Service Application
4)in that service1.asmx.cs file will be ther with Web methode \
4)Add your web methode

Ex:
  [WebMethod]

 public methodename(Parameters)
        {

//Here u can do the data base operations

     
        }



5)创建此方法后,运行此service1.asmx文件
6)在maenu栏上获取Windows应用程序网站->添加服务参考点击该
7)复制您的Web服务URL并粘贴地址"框单击开始",然后单击确定"
8)Servicename.Service1 ob1 =新的Servicename.Service1()
9)ob1.methodename(parameter);



5) after creating this method Run this service1.asmx file
6)take your windows application in maenu bar Website->Add service Reference click on that
7)copy your web service URL and paste Address box Click GO then click ok
8) Servicename.Service1 ob1= new Servicename.Service1()
9)ob1.methodename(parameter);


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

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