tailieunhanh - Create a Simple XML Web Service Using Parameters

Này được instructive nhưng không phải là rất hữu ích. Làm thế nào để tạo ra một dịch vụ Web có sử dụng các thông số? Đối với kỹ thuật này như thế nào-To, bạn sẽ tạo ra sự khởi đầu của một Web Dịch vụ an ninh | Create a Simple XML Web Service Using Parameters I have seen how to create a Web Service using the sample that Microsoft provides. This was instructive but not very useful. How do I create a Web Service that uses parameters Technique For this How-To you are going to create the start of a security Web Service. This security Web Service is going to take in two parameters Login Name and Password. It will then check against a table that you will create of names passwords and security levels. The method you will create first will then pass back True or False if the name and password are found. Looking at the Security Table The security table is included in the Web Service s Web folder. It is called and is in fact a jet database. You can see the table created tblUsers in Figure . Figure . Using the tblUsers you can look up usernames and passwords The method created for this first real example will take in the username and password and then look up the username. If the username is found the method will then compare the password. If the password matches then True will be returned from the method. Otherwise False will be returned. Passing Parameters You will pass parameters to Web Service methods just as you would to any other methods or functions as shown in the function header for the Web Service method created in this How-To Public Function TestUser ByVal strUserlD As String ByVal strPassword As String As Boolean The return value is also assigned to the name of the function. Specifying Descriptions for the Web Service and Methods You can help developers who use your Web Service by adding descriptions to the Web Service and each of the methods you create. This cuts down on the number of support requests you get and is a good habit to get into. For the Web Service you will place it in the WebService header where you will want to specify your own namespace as well WebService Namespace http webservices _ Description Testing of

crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.