MEX

Posted by Learner under WCF on 1/8/2010 | Views : 7553 | Status : [Member] | Replies : 4
What is Metadata Exchange (Mex) in WCF ?




Responses

Posted by: Mehulthakkar1 on: 1/11/2010 [Member] Starter

Up
0
Down
MEX is a behavior to specify how the WCF runtime handles your service and end user will be able to get the information about your service.

MEX will be defined via HTTP Get only. If you are using SVCUTIL tool or VS 2008 Service reference to create client side proxy, which will update your .config file or will create .config file, you should enable MEX.

Thanks
Mehul Thakkar

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

Posted by: Abhi2434 on: 1/11/2010 [Member] [Microsoft_MVP] [MVP] Silver

Up
0
Down

MEX actually defines 3 request-response Pairs which retrieves 3 set of metadata information about your web service:
1. WS-Policy :Retrieves the info about the receiving Endpoint
2. WSDL : web service Defination for the receiving endpoint
3. XML Schema for the service.

:)

www.abhisheksur.com

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

Posted by: Learner on: 1/14/2010 [Member] Starter

Up
0
Down
It means, If I remove the Mex endpoint from my config, client won't be able to add reference as no WSDL will get generated in case of hhtpbindings only. For other bindings If I remove mex endpoint will my client still able to consume the service ?? I am confused with Mex endpoint. Please help ...

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

Posted by: Sagarp on: 1/15/2010 [Member] Bronze

Up
0
Down
Hi

ref

http://msdn.microsoft.com/en-us/library/ms730243.aspx

http://wcfsecurity.codeplex.com/wikipage?title=What%20is%20a%20metadata%20exchange%20%28MEX%29%20binding%3F

Thanks
SagarP
http://www.emanonsolutions.net
http://emanonsolutions.blogspot.com/

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

Login to post response