... 12 CHƯƠNG 1: CÔNG NGHỆ WINDOWSCOMMUNICATIONFOUNDATION 1.1 Tổng quan WindowsCommunicationFoundation 1.1.1 WindowsCommunicationFoundation gì? WindowsCommunicationFoundation (WCF) công nghệ ... Tổng quan WindowsCommunicationFoundation 13 1.1.1 WindowsCommunicationFoundation gì? .13 1.1.2 Tại sử dụng WCF? 14 1.2 Kiến trúc WindowsCommunicationFoundation ... giảm giá thành bảo trì, cho phép thay đổi tương tác đa 1.2 Kiến trúc WindowsCommunicationFoundationWindowsCommunicationFoundation Framework NET 3.0 Nó gồm nhiều thư viện, không gian tên (namespace)...
... Introduction Microsoft WindowsCommunicationFoundation (WCF), alongside Windows Workflow Foundation (WF) and Windows Presentation Foundation (WPF), has become part of the primary ... xiii Introducing WindowsCommunicationFoundation What Is WindowsCommunication Foundation? The Early Days of Personal ... Chapter Introducing WindowsCommunicationFoundation After completing this chapter, you will be able to: ■■ Explain the purpose of WindowsCommunicationFoundation ■■ Use the NET Framework...
... code without having to process the raw SOAP and XML directly Listings 9-1 and 9-2 illustrate this point with a custom data type called Trade Listing 9-1 displays the qualified XML for the data ... Page 209 CHAPTER ■ BEYOND WSE 3.0: LOOKING AHEAD TO WINDOWSCOMMUNICATIONFOUNDATION (WCF) Listing 9-2 Object Representation for the Trade Custom Data Type [System.Xml.Serialization.XmlTypeAttribute( ... CHAPTER ■ BEYOND WSE 3.0: LOOKING AHEAD TO WINDOWSCOMMUNICATIONFOUNDATION (WCF) the WS-Federation specification, which allows you to set up and manage trusted communications across application and...
... working with a Mac disk (only slower) 6.3.2.1 Creating a Windows disk on the Mac You can even create a Windows disk on your Macintosh CDs and DVDs that you burn on the Mac, for example, are Windows ... hand to the Windows user Fortunately, although Windows can't read Mac disks, the Mac can read (and create) Windows- compatible disks When you insert a Windows- formatted CD into your Mac, its icon ... time you save a new document You and your Windows comrades can freely exchange documents without ever worrying about this former snag in the Macintosh /Windows relationship 6.3.2 Notes on Disk...
... Authenticating with wsHttpBinding Securing Services withWindows Integrated Security Section Examples Introduction 334 335 340 341 Authenticating Users withWindows Credentials 343 Authorizing Users withWindows ... Deployment with ClickOnce: Deploying Windows Forms Applications with ClickOnce, 0-321-19769-0 Don Box with Chris Sells, Essential NET, Volume 1: The Common Language Runtime, 0-201-73411-7 Fritz Onion with ... Presentation Foundation (WPF), 0-321-37447-9 Brian Noyes, Data Binding withWindows Forms 2.0: Programming Smart Client Data Applications with NET, 0-321-26892-X Keith Ballinger, NET Web Services:...
... Service Pack (except Starter Edition), Windows 7, Windows Server 2003 with Service Pack 2, Windows Server 2003 R2, Windows Server 2008 with Service Pack 2, or Windows Server 2008 R2 n Visual Studio ... and software to work with the code and examples in this book: n Any of the following operating systems: Windows XP with Service Pack (except Starter Edition), Windows Vista with Service Pack (except ... uses data binding to map the values between the UI and the ViewModel, as shown in the following: ...
... [OperationContract] string GetData(int value); [OperationContract] CompositeType GetDataUsingDataContract(CompositeType composite); } public class Service1 : IServiceTest { public string GetData(int value) ... SERVICE Thuộc tính [DataContract] (tt) namespace MyTypes { [DataContract] public class PurchaseOrder { private int poId_value; // Apply the DataMemberAttribute to the property [DataMember] public ... WINDOWSCOMMUNICATIONFOUNDATION GIỚI THIỆU - WCF Đƣợc giới thiệu NET WCF cung cấp mô hình lập trình đơn...
... element withdata from a WCF service Returning ReadOnlyCollection data Using raw XML as an operation parameter Returning a DataTable/DataSet in a service operation Transferring binary datawith ... 6, Dealing withData in Service, covers various data exchange and communication scenarios in WCF development Recipes here include how to transfer XML and raw binary data or ADO.NET DataTable objects ... other side (without using the updated version of data) can still work correctly with the updated data type instances 11 www.it-ebooks.info Working with Contracts How to it Make the custom data type...
... 12 CHƯƠNG 1: CÔNG NGHỆ WINDOWSCOMMUNICATIONFOUNDATION 1.1 Tổng quan WindowsCommunicationFoundation 1.1.1 WindowsCommunicationFoundation gì? WindowsCommunicationFoundation (WCF) công nghệ ... 10 CHƯƠNG 1: CÔNG NGHỆ WINDOWSCOMMUNICATIONFOUNDATION 13 1.1 Tổng quan WindowsCommunicationFoundation 13 1.1.1 WindowsCommunicationFoundation gì? 13 1.1.2 Tại ... giảm giá thành bảo trì, cho phép thay đổi tương tác đa 1.2 Kiến trúc WindowsCommunicationFoundationWindowsCommunicationFoundation Framework NET 3.0 Nó gồm nhiều thư viện, không gian tên (namespace)...
... System.ServiceModel.Activation; [DataContract] public class PersonData { [DataMember] public int PersonId; [DataMember] public string FirstName; [DataMember] public string LastName; [DataMember] public string ... } } [OperationContract] public void UpdatePerson(int personId, PersonData newData) { using (var personCtx = new DataClassesDataContext()) { // Set up the query var person = personCtx.Persons.Single(p ... (person != null) { person.FirstName = newData.FirstName; person.LastName = newData.LastName; person.EmailAddress = newData.EmailAddress; person.Department = newData.Department; personCtx.SubmitChanges();...
... Tổng quan bảo mật với WindowsCommunicationFoundation Lập trình với bảo mật WindowsCommunicationFoundation Tổng quan bảo mật Như bạn biết WindowsCommunicationFoundation tảng lập trình ... thống log hệ điều hành Windows (Windows event log) Bạn ghi lại kiện có liên quan tới bảo mật xác thực lỗi hay thành công Bạn xem thêm How to: Audit WindowsCommunicationFoundation Security Events ... nghĩa thông tin nhân viên /// [DataContract] public class Person { [DataMember] public int PersonId; [DataMember] public string FullName; [DataMember] public int Age; } [ServiceContract]...
... đặc tính dịch vụ WindowsCommunicationFoundation thực thi Khi cài đặt contract dịch vụ, bạn điều khiển nhiều đặc tính thực thi dịch vụ Có hai kiểu behavior WindowsCommunication Foundation: service ... NetTcpBinding(); ServiceMetadataBehavior behave = new ServiceMetadataBehavior(); sh.Description.Behaviors.Add(behave); sh.AddServiceEndpoint(typeof(IMetadataExchange), MetadataExchangeBindings.CreateMexTcpBinding(), ... truyền tham số hay trả giá trị kiểu phức hợp, ta cần phải định nghĩa data contract cho kiểu Dịch vụ định kiểu WindowsCommunicationFoundation xử lý tất tin, bạn không cần phải làm việc trực tiếp...
... bindings and endpoints (điểm cuối) cho client Kiến trúc client WindowsCommunicationFoundation Một client WindowsCommunicationFoundation chương trình sử dụng chức cung cấp dịch vụ WCF Chương ... tượng phía client Một client WindowsCommunicationFoundation phải chứa hai giao diện sở ICommunicationObject IExtensibleObject 1.1.1 ICommunicationObject Giao diện ICommunicationObject thành phần ... Trong trước, tập trung phần lớn vào việc cài đặt dịch vụ với WindowsCommunicationFoundation Hai trước giới thiệu ba thành phần quan trọng để xây dựng dịch vụ WCF address...
... Làm để định nghĩa kiểu contract khác Ví dụ contract Contracts WindowsCommunicationFoundation Các contract WindowsCommunicationFoundation cung cấp khả làm việc đa môi trường liên lạc với máy ... nghĩa contract liệu, ta sử dụng thuộc tính DataContract DataMember 1.2.1 Thuộc tính DataContract Cũng giống thuộc tính ServiceContract, thuộc tính DataContract gắn vào lớp để định nghĩa contract ... Ví dụ sau định nghĩa số thành viên contract liệu [DataContract] public class Person { [DataMember] int StaffId; [DataMember] string FullName; [DataMember] Microsoft Vietnam – DPE Team | Bài 4:...
... hình cho hành xử dịch vụ Đặt tên MetaDataBehavior, bấm Add để thêm thành phần hành xử, chọn ServiceMetaData Figure 11 Thêm hành sử siêu liệu Chọn nút serviceMetadata bên trái nhấp vào giá trị HttpGetEnabled ... Services interoperability, đặt kiểu liên kết Simplex Communication Microsoft Vietnam – DPE Team | Bài 2: Mô hình lập trình với WCF 15 Figure Chọn Simplex communication Đặt mặc định (trống) cho trường ... trình với WCF 19 Figure 12 Đặt cấu hình cho serviceMetadata Giờ bạn chọn nút StaffService.Staff đặt Behavior Configuration với giá trị “MetaDataBehavior” Figure 13 Đặt BehaviorConfiguration cho...
... dịch vụ host IIS Tài liệu tham khảo WindowsCommunicationFoundation (http://msdn.microsoft.com/en- au/library/ms735119.aspx) What Is WindowsCommunication Foundation? (http://msdn.microsoft.com/en-us/library/ms731082.aspx) ... Vietnam – DPE Team | Bài 1: Giới thiệu tổng quan WCF 15 WindowsCommunicationFoundation (http://en.wikipedia.org/wiki /Windows_ Communication_ Foundation) Writing the WCF Hello World App (http://blah.winsmarts.com/2008-4- ... trình quen thuộc họ VB.NET hay C# Kiến trúc WCF Hình sau mô tả lớp chủ yếu kiến trúc WindowsCommunicationFoundation (WCF) Figure Kiến trúc WCF (hình ảnh từ www.microsoft.com) 4.1 Các contracts...
... System.ServiceModel.Activation; [DataContract] public class PersonData { [DataMember] public int PersonId; [DataMember] public string FirstName; [DataMember] public string LastName; [DataMember] public string ... } } [OperationContract] public void UpdatePerson(int personId, PersonData newData) { using (var personCtx = new DataClassesDataContext()) { // Set up the query var person = personCtx.Persons.Single(p ... (person != null) { person.FirstName = newData.FirstName; person.LastName = newData.LastName; person.EmailAddress = newData.EmailAddress; person.Department = newData.Department; personCtx.SubmitChanges();...
... Tổng quan bảo mật với WindowsCommunicationFoundation Lập trình với bảo mật WindowsCommunicationFoundation Tổng quan bảo mật Như bạn biết WindowsCommunicationFoundation tảng lập trình ... thống log hệ điều hành Windows (Windows event log) Bạn ghi lại kiện có liên quan tới bảo mật xác thực lỗi hay thành công Bạn xem thêm How to: Audit WindowsCommunicationFoundation Security Events ... nghĩa thông tin nhân viên /// [DataContract] public class Person { [DataMember] public int PersonId; [DataMember] public string FullName; [DataMember] public int Age; } [ServiceContract]...