简体   繁体   中英

ServiceBehavior on client side

为什么在Visual Studio中将ServiceReference工具作为EndpointBehavior之后,客户端上不会自动生成serviceBehavior部分?

Wsdl.exe or "Add Service Reference..." generate proxy classes, datacontracts & config based upon exposed metadata . Commons ways to expose metadata is by using a mex endpoint or exposing a wsdl.

Basically, Behaviors are simply not exposed. That's why you can't generate the same endpoint behaviors on client side.

What is important here, is that many behaviors are "local settings only" (for a service OR for a client ). It does not tell to clients how to call the service, but how the service should run.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM