MetadataExchangeClient metaTransfer = new MetadataExchangeClient(
new Uri("http://xxx:23356/Server.svc"),
MetadataExchangeClientMode.HttpGet);
metaTransfer.ResolveMetadataReferences = true;
MetadataSet otherDocs = metaTransfer.GetMetadata(new EndpointAddress("http://xxx:23356/Server.svc/mex"));
foreach (MetadataSection doc in otherDocs.MetadataSections)
Console.WriteLine(doc.Dialect + " : " + doc.Identifier);