John K
John K

Reputation: 830

WCF read MEX endpoint WSDL

I have a WCF service that has the contract published on a Net.Tcp MEX endpoint. I need to connect to the MEX endpoint and download the WSDL as XML. How can I do this? (I cannot move the MEX endpoint to HTTP... it must be on TCP).

Thanks

Upvotes: 0

Views: 1120

Answers (1)

John Saunders
John Saunders

Reputation: 161821

The MEX endpoint is just an endpoint. Create a client for it, then issue operation calls

It looks like the correct way to do this is to use the MetadataExchangeClient Class.

Upvotes: 1

Related Questions