
WCF
文章平均质量分 75
riverlau
这个作者很懒,什么都没留下…
展开
-
Ajax and ASP.Net Web Service
Web Service (ASMX, ASPX, WCF ) and Ajax Call1. Use JQuery Ajax call ASMX web method directlyThe reason need to add [System.Web.Script.Services.ScriptService] is Ajax does not support SOAP mes原创 2013-08-11 12:56:00 · 1037 阅读 · 0 评论 -
2 approach achieve Duplex call at Client Side
Approach One:InstanceContext callbackContext = new InstanceContext(new NameService());DuplexChannelFactory factory = new DuplexChannelFactory(typeof(callbackContext), binding, address);IMyService原创 2012-05-05 22:38:32 · 493 阅读 · 0 评论 -
Discovery & Annoucement
Ad Hoc DiscoveryService (add "UdpDiscoveryEndpoint")// Add ServiceDiscoveryBehavior svcHost.Description.Behaviors.Add(new ServiceDiscoveryBehavior()); // Add a UdpDiscov原创 2012-05-06 15:35:22 · 501 阅读 · 0 评论 -
WCF Addressing In Depth Note
WCF Addressing In Depthhttp://msdn.microsoft.com/en-us/magazine/cc163412.aspx-Addressing Fundamentals -Relative URIs (base address)原创 2012-05-03 00:00:00 · 809 阅读 · 0 评论 -
WCF Useful Command
netsh http add urlacl url=http://+:8000/ user=UserNamenetsh http show urlaclnetsh http delete urlacl url=http://+:8000/In the Visual Studio Command Prompt window, runthe command:svcutil Sh原创 2012-04-18 00:23:11 · 469 阅读 · 0 评论 -
3 Approach to achieve Async call in WCF
Approach One: using proxy client)http://msdn.microsoft.com/en-us/library/ms730059.aspxevent-driven asynchronous calling modelService Side [ServiceContract] public interface IService原创 2012-05-01 23:51:47 · 375 阅读 · 0 评论 -
3 approach to create mex endpoint
Approach One Approach Two原创 2012-05-01 22:58:28 · 443 阅读 · 0 评论 -
Windows Communication Foundation Top to Bottom Video Note
WCF SecurityBasic Concept: -MutualAuthentication: sender and receiver to identity one another -Authorization:rights I have -Confidentiality:view/h原创 2012-04-30 01:56:28 · 783 阅读 · 0 评论 -
WhatsNewInWCF4 Exercise Notes
WhatsNewInWCF4 Training kit: http://msdn.microsoft.com/en-us/vs2010trainingcourse_whatsnewinwcf4#_Toc2809573021. udpDiscoveryEndpoint and udpAnnouncementEndpoint <service原创 2012-04-30 16:40:12 · 461 阅读 · 0 评论 -
WCF 4 Step By Step Chapter 15 Note(Building REST Services)
Building REST ServicesThere are two common architectures that organizations usefor implementing Web services; services based on the Simple Object Access Protocol (SOAP),and services based on the Rep原创 2012-04-15 22:17:33 · 464 阅读 · 0 评论 -
WCF 4 Step By Step Chapter13 Note (Implementing a WCF Service for Good Performance)
Implementing a WCF Service for Good PerformanceIn this chapter, you will examine how to use servicethrottling to assist in maintaining scalability, how to encode data by using MTOM to reduce the ove原创 2012-04-15 23:57:35 · 830 阅读 · 0 评论 -
WCF 4 Step By Step Chapter14 Note 1 (Discovering Services)
an endpoint specifies three pieces of information: an address, a binding, and a contract. The address indicates where the message should go; the binding identifiesthe transport, format, and protoc原创 2012-04-10 00:20:32 · 498 阅读 · 0 评论 -
WCF 4 Step By Step Chapter14 Note 2 (Routing Messages)
Implementing RoutingSometimes it is useful to be able to forward messages sent to a service to an entirely different service for handling.-The front-end service can implement a routing mechanism,f原创 2012-04-15 16:04:35 · 806 阅读 · 0 评论 -
How to: Set the ProtectionLevel Property
http://msdn.microsoft.com/en-us/library/aa347791.aspxTo sign all messages for a service[ServiceContract(ProtectionLevel = ProtectionLevel.Sign)]public interface ICalculatorTo sign all message转载 2012-05-06 00:01:58 · 557 阅读 · 0 评论 -
Using WMI to Modify Settings at runtime
http://msdn.microsoft.com/en-us/library/ms735120.aspxhttp://msdn.microsoft.com/en-us/library/aa702726.aspxUsing WMI to Modify Settings (Windows Management Instrumentation)You can use WMI to原创 2012-05-06 16:45:00 · 495 阅读 · 0 评论 -
Don't use 'using()' with a WCF proxy
http://dave-black.blogspot.sg/2012/03/dont-use-using-with-wcf-proxy.htmlIf you're trying to be a conscientious developer and making sure that you cleanup your resources - great! You are writing 'u转载 2013-06-17 10:00:26 · 537 阅读 · 0 评论 -
Dont use using with wcf proxy
http://dave-black.blogspot.sg/2012/03/dont-use-using-with-wcf-proxy.htmlIf you're trying to be a conscientious developer and making sure that you cleanup your resources - great! You are writing 'u转载 2013-06-17 10:03:04 · 636 阅读 · 0 评论 -
WCF Tracing Note
http://msdn.microsoft.com/en-us/library/aa751917.aspxThere are four components to WCF Diagnostics: Eventing,Tracing, which includes Activity Tracing, and Message Logging. -Activities原创 2012-05-28 00:23:02 · 578 阅读 · 0 评论 -
New in WCF 4.0 Note & Filters for Message Logging Note
http://msdn.microsoft.com/en-us/library/ee354381.aspxUsing Filters for Message Logging -WindowsCommunication Foundation (WCF) message logging can be customized using anXPathfilter原创 2012-05-27 18:21:10 · 983 阅读 · 1 评论 -
WCF Before Call and After Call
http://blog.youkuaiyun.com/quanben/article/details/5271298客户端: BeforeCall在参数序列化之前发生;AfterCall在消息返回参数反序列化之后发生。当参数不正确,需要阻止传递时,应抛出FaultException。 在proxy创建后,用proxy.Endpoint.Contract.Operations[0].Behavi转载 2012-05-28 00:13:09 · 532 阅读 · 0 评论 -
Windows Communication Foundation Authentication Service Overview
http://msdn.microsoft.com/en-us/library/bb386582.aspxThe Windows Communication Foundation (WCF) authentication service enables you to use ASP.NET membership toauthenticate users from any applica转载 2012-05-08 00:12:28 · 355 阅读 · 0 评论 -
Learning WCF - Security Note
Fundamental security conceptsAuthentication -We typically think aboutauthentication as identifying the message sender. Mutual authentication involves authenticating both the sender转载 2012-05-07 15:19:58 · 704 阅读 · 0 评论 -
Add SSL Certificate During WCF HTTPS Development Testing
IIS: Add a certificate (name as "localhost-cert") :cmd>makecert -sr LocalMachine -ss My -n CN=localhost -sky exchangeThis command creates a certificate with the subject “localhost” and places it原创 2012-05-07 23:59:03 · 709 阅读 · 0 评论 -
Message Contract, Data Contract, XmlSerializer Message XML Body
1.Message Contract Declaration [ServiceContract] public interface ISocialStatus { [OperationContract] string UpdateStatus(string text); [OperationContract]原创 2012-05-07 10:14:24 · 633 阅读 · 0 评论 -
Perform Input Validation in WCF
http://msdn.microsoft.com/en-us/library/ff647875.aspxIt implements AfterCall() and BeforeCall() methods.When used as part of the service, BeforeCall() will be invoked before the parameters are转载 2012-05-07 17:53:40 · 449 阅读 · 0 评论 -
Impersonation In WCF
http://msdn.microsoft.com/en-us/library/ms731090.aspxhttp://www.danrigsby.com/blog/index.php/2008/04/17/impersonate-a-clients-identity-in-wcf/Impersonation is a common technique that WCF servi原创 2012-05-06 11:57:24 · 592 阅读 · 0 评论 -
FindBySubjectName vs FindBySubjectDistinguishedName
FindBySubjectName vs FindBySubjectDistinguishedNameFindBySubjectName : The findValue parameter for the Find method must be a string representing the subject name of the certificate. This i原创 2012-05-06 16:58:06 · 6239 阅读 · 0 评论 -
WCF 4 Step By Step Chapter 7 Note(Maintaining State and Sequencing Operations)
In the real world, a Web service might require that operations be invoked in a particular sequence.For example, if you are implementing shopping cart functionalityin a service, it does not make sens原创 2012-04-01 23:50:03 · 1014 阅读 · 0 评论 -
WCF Note2(WCF Security) - Implementation
http://msdn.microsoft.com/library/ff405740.aspxHere is 3 questions you may ask about the Security:Can any client call the service or do you want to control who can call the service?Can any原创 2011-11-08 11:58:22 · 865 阅读 · 0 评论 -
WCF Note7(Transaction)
http://msdn.microsoft.com/en-us/library/ff384250.aspxTo add transaction support to a WCF service, you will take the following actions:Server:transaction support to the service contract. This is转载 2011-11-08 00:20:02 · 465 阅读 · 0 评论 -
WCF Troubleshooting Start (Updaing)
1. Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.http://social.msdn.microsoft原创 2011-11-05 23:52:09 · 885 阅读 · 0 评论 -
WCF Note8(Client)
http://stackoverflow.com/questions/1698275/wcf-channelfactory-vs-generating-proxyThere are 3 basic ways to create a WCF client:Let Visual Studio generate your proxy. This auto generate原创 2011-11-08 00:56:17 · 395 阅读 · 0 评论 -
WCF Note6(Extensibility)
1.Channel layer2.ServiceModle layer e.g.: Server: +CustomErrorHandler:IErrorHandler +CustomErrorBehavior:Attribute,IServiceBehavior or IOperationBehavior or IEndpointBehavior原创 2011-11-06 15:17:01 · 271 阅读 · 0 评论 -
WCF Notes4(Host)
IIS/WAS vs. Self-Hosting (console app,windows form, windows service)Self-hosted endpoints are directly configuredIIS/WAS(Windows Process Activation Service) endpoints are relative to .svc file原创 2011-11-06 01:13:55 · 348 阅读 · 0 评论 -
WCF Note3 (Fault and Exception)
WCF Faultsservilize exceptionBy default, exception details are not shared with clients applications and general SOAP fault is returned Debugging Behavior: "IncludeExceptionDetailsInFau原创 2011-11-06 00:21:04 · 428 阅读 · 0 评论 -
WCF Notes1 (Basic Concept &Resource)
Windows Communication Foundation (WCF) enables applications to communicate whether they are on the same computer, across the Internet, or on different application platforms.The Windows Communication F原创 2011-11-05 23:59:35 · 462 阅读 · 0 评论 -
WCF Note2 (WCF Security)
WCF Security Resourceshttp://msdn.microsoft.com/en-us/library/ff647145.aspxTool: Microsoft Service Trace ViewerCore ConceptMutual Authentication: sender and reciver identity one anotherA原创 2011-11-06 00:01:58 · 631 阅读 · 0 评论 -
WCF行为学习
行为是WCF影响运行时操作的类。行为作为WCF运行时被调用,在客户端和服务端运行并作为消息在两者之间流转。因为行为运行在这些重要的时间,它们被用来实现很多WCF的内建特性。它们也是一个重要的自定义扩展点。 为了理解行为是如何使用的,有必要考虑运行时是如何初始化的。这是通过在客户端的ChannelFactory和在服务端的ServiceHost.这两个类都执行了类似的功能:原创 2011-10-31 00:11:12 · 467 阅读 · 0 评论 -
First WCF App (Host in Console Application)
File StructureProgram.csService.csIService.csApp.config1. App.configHere defines two approach to access WCF service :1> (Able to access from browser and WcfTestClient.exe). http://127原创 2011-11-02 23:59:54 · 617 阅读 · 0 评论 -
WCF Error RANT: An error occured creating the configuration section handler for system.serviceModel/
Here is error happened web.config SolutionNotice there isnot spaces between each of the type name elements. if you go and put the spaces in it works per原创 2011-11-21 22:08:34 · 1226 阅读 · 0 评论