Showing posts with label WCF. Show all posts
Showing posts with label WCF. Show all posts

What are the various ways to host a WCF Service ?

Monday, March 5, 2012

1. IIS
2. Self Hosting
3. WAS

www.codecollege.NET|www.interviewsguru.com|The Encylopedia of Web Sites|Blogging and Earning

What are the various address format in WCF?

Sunday, March 4, 2012

a)HTTP Address Format : http://localhost:
b)TCP Address Format : net.tcp://localhost:
c)MSMQ Address Format : net.msmq://localhost:

www.codecollege.NET|www.interviewsguru.com|The Encylopedia of Web Sites|Blogging and Earning

Explain Address,Binding and contract for a WCF Service?

Address: Where is the serivce available.
Binding: How to communicate with the service.
Contract: What will the service do.

www.codecollege.NET|www.interviewsguru.com|The Encylopedia of Web Sites|Blogging and Earning

How to define a service as REST based in WCF ?

By adding the WebGet attribute, we can define a service as REST based service that can be accessible using HTTP GET operation.
[ServiceContract]
interface IStock
{
[OperationContract]
[WebGet]
int GetStock(string StockId);
}

www.codecollege.NET|www.interviewsguru.com|The Encylopedia of Web Sites|Blogging and Earning

What are the differencec between Web Services and WCF ?


Sno
WebServices
WCF
1 Can send/receive messages using SOAP over HTTP Can send/receive using SOAP and any transport protocol like HTTP,
TCP, named pipes, and Microsoft Message Queuing (MSMQ), etc.
2 Can only be hosted in IIS and the security is limited. Can be hosted in IIS, self-host servers with console applications or Win NT
services or any other server.
3
Doesnt support

supports binary .NET – .NET communications, distributed transactions, WS-*
specifications, queued messaging and Restful communications.
4
Simple when compared to WCF
Little more work is needed


www.codecollege.NET|www.interviewsguru.com|The Encylopedia of Web Sites|Blogging and Earning

Solution for WCF Configuration Editor error : "Configuration binding extension 'system.serviceModel/bindings/basicHttpBinding ' could not be found. "

Sunday, May 30, 2010

<h4>
Change the binding from "WsHttpBinding" to "basicHttpBinding" in the web.config file or app.config file as follows,

<endpoint address="" binding="basicHttpBinding"
</h4>
<a href="http://www.codecollege.NET">www.codecollege.NET</a>

What are the transport mechanisms supported by WCF?


1. HTTP (ex : http:// or https:// )
2. TCP (ex : net.tcp :// )
3. Peer network (ex: net.p2p://)
4. IPC (Inter-Process Communication over named pipes) (ex: net.pipe://)
5. MSMQ (ex: net.msmq://)


www.codecollege.NET

What are the 4 main types of contracts in WCF?


1. Service
2. Data
3. Fault
4. Message


www.codecollege.NET

What is the role of WSDL in WCF?

Thursday, October 1, 2009


Web Services Description Language is used to share Endpoint details with the Clients.



www.codecollege.NET

What is a WCF Contract?


It says about what the Endpoint communicates. It is a collection of messages in MEP (Message Exchange Patterns) format.



www.codecollege.NET

What is a WCF Endpoint Binding?


It says How to send the messages like specifying the transport protocol (e.g., TCP), encoding information (e.g., binary), and security requirements (e.g.,

SSL), etc.



www.codecollege.NET

What is a WCF Endpoint Address?


It says where you need to send the messages.



www.codecollege.NET

What is a WCF Endpoint?


The Endpoint is the point where messages are sent by the Client to the service. Every Service has some Endpoints based on the requirement and provides the

Client with the details. An Endpoint will have an Address, a Binding, and a Contract.



www.codecollege.NET

What is a WCF Client?


Clients send messages to the Service to do some work and they start the flow.



www.codecollege.NET

What is a WCF Service?


It is a piece of code which can be interacted with messages. They work based on the messages from the Clients and they wait until the Client sends the

messages.



www.codecollege.NET

Say any 3 key features of WCF?


1. Unified Programming Model.
2. Service Oriented Architecture.
3. Cross-Vendor interoperability.



www.codecollege.NET

What is the Svcutil.exe ?

Friday, September 25, 2009


Service Model Metadata Utility Tool is used to generate the proxy from the client.


www.codecollege.NET

What is the extension of WCF services hosted in IIS?

Tuesday, September 22, 2009


.svc


www.codecollege.NET

What is the expansion of RSS ?

Wednesday, September 16, 2009


Rich Site Summary


www.codecollege.NET

What is REST?

Monday, September 14, 2009


Representational State Transfer .


www.codecollege.NET

LinkWithin

Blog Widget by LinkWithin

Recommended Books