TAILIEUCHUNG - C# .NET Web Developer's Guide phần 10

Một chương trình trong C + + là một tập hợp các chức năng, tờ khai. Ngôn ngữ là blockstructured, và các biến khai báo trong khối được phân bổ tự động nhập cảnh khối và được giải phóng thoát khỏi khối. | 716 Chapter 12 Building a Jokes Web Services Figure Continued moderators in the database. summary remarks Author Adrian Turtschi aturtschi@ Sept 2001 remarks WebServiceAttribute Description The userAdmin web service provides methods to manage users and moderators in the database Namespace urn schemas-syngress-com-soap public class userAdmin SOAP error handling return document structure value error document thrown by SOAP exception value public XmlDocument soapErrorDoc value text node with user-friendly error message value public XmlNode xmlFailReasonNode summary Public class constructor. summary public userAdmin InitializeComponent initialize SOAP error handling return document soapErrorDoc new xmlFailReasonNode failReason The code for the addUser method that adds a new user to the database is shown in Figure . Building a Jokes Web Services Chapter 12 717 Figure addUser Web Method 01 summary 02 The addUser method adds a new user to the database 03 summary 04 param name userName 05 type string 06 desc name of new user 07 param 08 param name password 09 type string 10 desc password of new user 11 param 12 returns nothing returns 13 SoapDocumentMethodAttribute Action addUser 14 RequestNamespace urn schemas-syngress-com-soap userAdmin 15 RequestElementName addUser 16 ResponseNamespace urn schemas-syngress-com-soap userAdmin 17 ResponseElementName addUserResponse 18 WebMethod Description The addUser method adds a new user to 19 the database 20 public void addUser string userName string password 21 userAdminImplement userAdminObj new userAdminImplement 22 try 23 userName password 24 catch jokeExceptions 25 catch jokeException e 26 throwFault Fault occurred userName 27 28 then catch general System Exceptions 29 catch Exception e 30 throwFault F_System userName 31 32 .

TỪ KHÓA LIÊN QUAN
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.