I have a wcf service running, which I am trying to get the metadata for proxy generation using svcutil
When i execute the command from svcutil I get the following error
WS-Metadata Exchange Error
Metadata contains a reference that cannot be resolved: 'http://devweb4/Service2/Setup.svc?wsdl'
The HTTP request is unauthorized with client authentication sc
s'. The authentication header received from the server was 'Negoti
The remote server returned an error: (401) Unauthorized.
I can browse to the svc which is hosted in IIS and I do see the svcutil command link on the page it shows while browsing.
The config file has the following within the services tag
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
and the following in the behaviours
<serviceDebug includeExceptionDetailInFaults="true" />
<serviceMetadata httpGetEnabled="true" />