How to expose multiple MEX endpoints from a WCF service?

I have an existing web service and I want it to expose 2 MEX endpoints, one exposed through whatever binding it already has and one through Service Bus Relay Binding. I know how to expose a metadata endpoint from the article here: MSDN Link for Exposing MEX through SB

I need to know how to expose multiple MEX endpoints especially for the scenario that I have and moreover if my approach is correct.

Answers


It should be this way

<endpoint address ="basicHttp" binding="basicHttpBinding" contract="WCFTest.ISomeContract"/>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>

 <endpoint name="RelayEndpoint"... />
 <endpoint name="MexEndpoint" contract="IMetadataExchange" binding="netTcpRelayBinding" bindingConfiguration="default" address="mex" />

Need Your Help

Auto Reconnect of Database Connection

database tomcat jdbc db2 apache-commons-dbcp

I have a DBCP connection pool in Tomcat. The problem is that when the connection is lost briefly the appliction is broken because DBCP won't try to reconnect again later when there is a connection....

JSF 2.0: Empty operator doesn't work with param

java jsf-2 el param

In the file aPage.xhtml, I have the following lines: