countrymeister
asked on
WCF metadata error
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
URI: http://devweb4/Service2/Setup.svc
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.
When i execute the command from svcutil I get the following error
WS-Metadata Exchange Error
URI: http://devweb4/Service2/Setup.svc
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
<serviceBehaviors>
<behavior name="SetupBehavior">
<serviceDebug includeExceptionDetailInFaults="true" />
<serviceMetadata httpGetEnabled="true" />
</behavior>
</serviceBehaviors>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.