且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

.Net和Web服务

更新时间:2023-08-31 17:39:04

1.让您的Web页从用户那里检索凭据.
2.加密管理器用于加密密码的类.可以在此处找到一个: ^ ]

3.创建一个将执行Db访问逻辑的Web服务.

参考:
DB访问逻辑:从上面的链接中找到UserAction.cs和functions.cs.

如何创建Web服务:了解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);