答案 0 :(得分:0)
我在google之后得到了它并阅读了一些stuf并尝试了一些事情
MetadataExchangeClient client = new MetadataExchangeClient(new Uri(mexEndpoint), MetadataExchangeClientMode.MetadataExchange);
client.ResolveMetadataReferences = true;
MetadataSet m = client.GetMetadata();
WsdlImporter im = new WsdlImporter(m);
ServiceEndpointCollection endpoints = im.ImportAllEndpoints();
使用此功能,我可以获得与该mex端点关联的所有端点