TAILIEUCHUNG - Creating Promo Product Service

Building the ProductService Web Service In this chapter, you will create the ProductService Web service. This Web service will expose two Web methods. | Building the ProductService Web Service In this chapter you will create the ProductService Web service. This Web service will expose two Web methods. The first method will allow the user to calculate the cost of buying a specified quantity of a particular product in the Northwind Traders database and the second method will take the name of a product and return all the details for that product. Creating the ProductService Web Service In the first exercise you will create the ProductService Web service and implement the HowMuchWillItCost Web method. You will then test the Web method to ensure that it works as expected. Create the Web service 1. In the Microsoft Visual Studio 2005 programming environment create a new Web site using the Web Service template. Make sure you specify File System as the Location and Visual C for the Language. Create the Web site in the Microsoft Press Visual CSharp Step by Step Chapter 28 NorthwindServices folder in your My Documents folder. IMPORTANT Ensure you select the Web Service template and not the Web Site template. Visual Studio 2005 generates a Web site containing folders called App_Code and App_Data and a file called . The .asmx file contains the Web service definition. The code for the Web service is defined in the Service class stored in the file in the App_Code folder and displayed in the Code and Text Editor window. 2. In the Solution Explorer click the NorthwindServices project. In the Properties window set the Use dynamic ports property to False and set the Port number property to 4500. By default the Development Web server provided with Visual Studio 2005 picks a port at random to reduce the chances of clashing with any other ports used by other network services running on your computer. This feature is useful if you are building and testing Web sites in a development prior to copying them to a production server such as IIS. However when building a Web service it is .

TÀI LIỆU LIÊN QUAN
10    127    1
6    150    1
7    127    1
5    125    1
6    127    1
6    115    1
6    122    1
6    174    1
7    122    1
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã 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.