what is the wcf client and metadata?

Posted by Rapartipoorna under WCF on 4/12/2012 | Points: 10 | Views : 1476 | Status : [Member] | Replies : 3
can any body explain clearly what is WCF Client and Metadata?




Responses

Posted by: Hariinakoti on: 4/12/2012 [Member] Starter | Points: 25

Up
0
Down
Hi,
Can u see this link:
http://wcftutorial.net/Home.aspx

Thanks & Regards
Hari

Rapartipoorna, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: arun_ymail-14946 on: 4/17/2012 [Member] Starter | Points: 25

Up
0
Down
WCF Client
WCF client is a client application creates to expose the service operations as method. Any application can host a WCF client, including an application that host a service. Therefore it is possible to create a service that includes WCF clients of other services.

Metadata
Characteristics of the service are described by the metadata. This metadata can be exposed to the client to understand the communication with service. Metadata can be set in the service by enabling the ServiceMetadata node inside the servcieBehaviour node of the service configuration file.
<system.serviceModel>
<services>
<service name="MathService"
behaviorConfiguration="MathServiceBehavior">
<endpoint address="" contract="IMathService"
binding="wsHttpBinding"/>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="MathServiceBehavior">
<serviceMetadata httpGetEnabled="True"/>
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
This metadata can be viewed while creating WCF client application using SvcUtil.exe



Rapartipoorna, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sakthi.Singaravel on: 4/17/2012 [Member] Silver | Points: 25

Up
0
Down
Refer this..

http://nareshkamuni.blogspot.in/2012/01/wcf-interview-questions.html

Regards,
Singaravel M

Rapartipoorna, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response