I am confused with Metadata publish concept.
If in a WCF Service config file I had written :
<serviceMetadata httpGetEnabled="false"/>
No matter it is true or false. When I tried to give service reference in a client application using "Add Service Reference..." and clicked on "Discover", I am able to retrieve Service Reference.
But when removed the following two lines: -
<endpoint address="mex" binding="mexBasicHttpBinding" contract="IMetadataExchange"/>
<serviceMetadata httpGetEnabled="false"/>
Now after that when I tried to give reference in a client application using "Add Service Reference...." and clicked on "Discover", I am NOT able to retrieve Service Reference....
Now can anyone tell me what exactly it means.
Why after setting it False it is still allowing to set reference. And why after removing those lines it is not allowing to set reference.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…