2024年3月28日发(作者:)
1 开发分布式应用的技术 the distributed application architecture
the distributed application architecture allows multiple users to access an
application simultaneously over a addition, each component of a
distributed application functions separately and independently of the other
components.( 每个组件的分布式应用程序功能单独和独立于其他组件) this
increases the performance and scalability of the applition(这就增加了应用程序
的性能和可伸缩性)
2应用架构三个层次(layer)的含义;三类分布式应用架构
presentation layer business logic layer data access layer
two-tier architecture three-tier/n-tier architecture service-oriented
architecture
3六种COM+服务
just-in-time activation role-based security synchronization object
pooling transactions queued components
4实现COM+服务涉及的基类
ApplicationAccessControlAttribute ApplicationActivationAttribute
JustInTimeActivationAttribute ObjectPoolingAttribute
SecureMethodAttribute ServicedComponent SharedProperty
TransactionAttribute
5通道注册使用哪个类 Channel registration using which class
erChannel(channel);
6注册远程对象的方法 Registration methods of remote objects
RegisterWellKnownServiceType method
7 web服务特性 features of a web service
interoperability dynamic integration industry standards security
8什么是绑定;wsHTTPBinding的作用
Binding describes how a WCF service communicates with a client application
wsHTTPBinding is used for implementing features such as
transactions,security,and reliable messaging .It uses WS-Reliable Messaging for
reliable messaging and WS-Security for message security and
binding uses HTTP protocol for communication and the
Text/XML message encoding to encode a message.
9五种契约及其定义 contract
service contract acts as an entry point to access a WCF service
operation contract is used to expose the operations that a service can
perform.
data contract is used to expose user-defined data types in a WCF service.
message contract describes the structure of a message exchanged between a
WCF service and a client application.
fault contract enables you to send a customized error message to a client by
creating a user-defined class.
10托管WCF服务的四种方式hosting a wcf service
Self-Hosting a WCF service Hosting a WCF service in IIS Hosting a WCF
service in Windows services
Hosting a WCF service in WAS
11定义错误契约(FaultContract)的方法
[serviceContract]
public interface IService {
[OperationContract]
[FaultContract(typeof(MyFaultException))]
int Divide(int numerator,int denominator); }
[DataCOntract]
public class MyFaultException {
[DataMember]
public string message; }
12 swichValue属性作用
The switchValue attribute specifies the ammount and type of tracing
information to be logged.
13四种跟踪源特点 trace sources
emodel:Logs all the processes,such as processing of a
message,of a WCF service while the service communicates with a client
application.
elogging:Logs all messages that are sent
andreceived by a WCF service.
:Logs all the input and out information for a WCF service to the
Common Log File System(CLFS)
ization: Logs the information such as the information
related to the message that is serialized or deserailized,when an object of a
WCF service is serialized and deserialized.
14序列化、反序列化、编码、解码的含义
序列化 Serialization is the process of converting objects and data into a
common format for storage.
反序列化 The process of converting serialized and encoded objects and data
back into the original format is known as deserialization.编码 encoding The
process of converting the serialized data into a set of bytes is known an


发布评论