WEB-Services / SOAP

Moderators: None (Apply to moderate this forum)
Number of threads: 108
Number of posts: 139

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
General Information of WCF Posted by jmaneesh on 31 Jul 2008 at 10:05 PM
What is WCF?

Windows Communication Foundation (formerly code-named "Indigo") is a set of .NET technologies for building and running connected systems. It is a new breed of communications infrastructure built around the Web services architecture.

in technical terms

Windows Communication Foundation is Microsoft's unified programming model for building service-oriented applications with managed code. It extends the .NET Framework to enable developers to build secure and reliable transacted Web services that integrate across platforms and interoperate with existing investments. Windows Communication Foundation combines and extends the capabilities of existing Microsoft distributed systems technologies, including Enterprise Services, System.Messaging, Microsoft .NET Remoting, ASMX, and WSE to deliver a unified development experience across multiple axes, including distance (cross-process, cross-machine, cross-subnet, cross-intranet, cross-Internet), topologies (farms, fire-walled, content-routed, dynamic), hosts (ASP.NET, EXE, Windows Presentation Foundation, Windows Forms, NT Service, COM+), protocols (TCP, HTTP, cross-process, custom), and security models (SAML, Kerberos, X509, username/password, custom).

What is three major points in WCF?

1) Address --- Specifies the location of the service which will be like http://Myserver/MyService.Clients will use this location to communicate with our service.

2)Contract --- Specifies the interface between client and the server. It's a simple interface with some attribute.

3)Binding --- Specifies how the two paries will communicate in term of transport and encoding and protocols.


How can we host a service on two different protocols on a single server?

Let’s first understand what this question actually means. Let’s say we have made a service and we want to host this service using HTTP as well as TCP. You must be wondering why to ever host services on two different types of protocol. When we host a service it’s consumed by multiple types of client and it’s very much possible that they have there own protocol of communication. A good service has the capability to downgrade or upgrade its protocol according the client who is consuming him.
Let’s do a small sample in which we will host the ServiceGetCost on TCP and HTTP protocol.

Once we are done the server side coding its time to see make a client by which we can switch between the protocols and see the results. Below is the code snippet of the client side for multi-protocol hosting.

What is the difference WCF and Web services?

Web services can only be invoked by HTTP. While Service or a WCF component can be invoked by any protocol and any transport type. Second web services are not flexible. But Services are flexible. If you make a new version of the service then you need to just expose a new end point. So services are agile and which is a very practical approach looking at the current business trends.

For more information visit

http://aspnet2008.blogspot.com
Report
Re: General Information of WCF Posted by bradwang on 31 Jul 2008 at 10:45 PM
: What is WCF?
:
: Windows Communication Foundation (formerly code-named "Indigo") is a
: set of .NET technologies for building and running connected systems.
: It is a new breed of communications infrastructure built around the
: Web services architecture.
:
: in technical terms
:
: Windows Communication Foundation is Microsoft's unified programming
: model for building service-oriented applications with managed code.
: It extends the .NET Framework to enable developers to build secure
: and reliable transacted Web services that integrate across platforms
: and interoperate with existing investments. Windows Communication
: Foundation combines and extends the capabilities of existing
: Microsoft distributed systems technologies, including Enterprise
: Services, System.Messaging, Microsoft .NET Remoting, ASMX, and WSE
: to deliver a unified development experience across multiple axes,
: including distance (cross-process, cross-machine, cross-subnet,
: cross-intranet, cross-Internet), topologies (farms, fire-walled,
: content-routed, dynamic), hosts (ASP.NET, EXE, Windows Presentation
: Foundation, Windows Forms, NT Service, COM+), protocols (TCP, HTTP,
: cross-process, custom), and security models (SAML, Kerberos, X509,
: username/password, custom).
:
: What is three major points in WCF?
:
: 1) Address --- Specifies the location of the service which will be
: like http://Myserver/MyService.Clients will use this location to
: communicate with our service.
:
: 2)Contract --- Specifies the interface between client and the
: server. It's a simple interface with some attribute.
:
: 3)Binding --- Specifies how the two paries will communicate in term
: of transport and encoding and protocols.
:
:
: How can we host a service on two different protocols on a single
: server?

:
: Let’s first understand what this question actually means. Let’s say
: we have made a service and we want to host this service using HTTP
: as well as TCP. You must be wondering why to ever host services on
: two different types of protocol. When we host a service it’s
: consumed by multiple types of client and it’s very much possible
: that they have there own protocol of communication. A good service
: has the capability to downgrade or upgrade its protocol according
: the client who is consuming him.
: Let’s do a small sample in which we will host the ServiceGetCost on
: TCP and HTTP protocol.
:
: Once we are done the server side coding its time to see make a
: client by which we can switch between the protocols and see the
: results. Below is the code snippet of the client side for
: multi-protocol hosting.
:
: What is the difference WCF and Web services?
:
: Web services can only be invoked by HTTP. While Service or a WCF
: component can be invoked by any protocol and any transport type.
: Second web services are not flexible. But Services are flexible. If
: you make a new version of the service then you need to just expose a
: new end point. So services are agile and which is a very practical
: approach looking at the current business trends.
:
: For more information visit
:
: http://aspnet2008.blogspot.com
:


Thanks for sharing, I would be interested in learning more about WCF and related new technologies...

I'm Brad Wang...
.NET Freelancer from China
MSN: brad_wang_cn@hotmail.com
Skype: brad_wang
Report
This post has been deleted. Posted by marutibasp on 16 May 2009 at 4:17 AM
This post has been deleted.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.