Posts

Showing posts with the label WCF

Design Calendar in Expression Blend 4

Image
Step 1 Open  Expression Blend 4  -> select  Silverlight-Application  -> select  Silverlight-Application  -> change  Name and Location  accordingly -> hit  OK. Step 2 Select  Assets  -> select  Shapes  -> select  Rectangle,  draw an rectangle, manage the  width & height, background color, margin  and  shadow-effect  as shown below:  Step 3 Select  Text-Box  from the  Toolbox , enter a  Month-Name  according to your choice to the  left  of the rectangle shape and  2008  to the  right  of the rectangle shape, manage the  width & height, font family  and  font size  as shown below:  Step 4 Select  Assets  -> select  Shapes  -> select  Ellipse , draw an  ellipse  as the Handler for the calendar, manage the  width & heigh...

Dealing With Multiple EndPoints of a WCF Service

Image
If you understand EndPoints well, you understand WCF well. Configuring EndPoints are vital for any WCF design. You can configure EndPoints either via code or in a web.config file. I have seen many times, developers are confused by EndPoints. I have come across the following common question about EndPoints: Can we have multiple EndPoints? Can we expose the same contracts on more than one EndPoint? How base address works with EndPoints? Can we have more than one base address? How to configure EndPoints in code. Do we need to configure an EndPoint in self-hosting? Can we have more than one service Contract? And many more questions like the above.  To answer the above questions, let us start by understanding what EndPoints are. Endpoints identify a WCF Service. An EndPoint is a combination of Address, Contract and Binding. Mathematically an EndPoint can be defined as below: Where A, B and C are as follows: Now it is a simple mathematical addition rule that if we change the...

Introduction to Endpoint in WCF: Part 2

Image
Endpoints Every service has a unique address and this unique address has the three attributes Address, Binding and Contract. In other words we can say an endpoint is a combination of address, binding and contract. If you are unfamiliar with address, binding and contract then please read my previous article   introduction to WCF: Part 1 . In this article I will give you a short note about these three attributes of endpoints. Address:  contains information about where a service can be found. Binding:  contains information about how a client can communicate with a service. Contract:  It's an agreement between service and client. There is one more property in an endpoint, behavior. Behavior is not an attribute of an endpoint. Behavior:  A set of behaviors that specify local implementation details of the endpoint. Let me describe using an example. I am using my previous demo project.  In ImyService.cs namespace  myFirstApp   { ...