在按照ESB2.0 Quicklearn中的流程进行试验室,其中有一步为UDDI服务发布时的选择处理:
UDDI 验证模式还是Windows验证模式?
当使用Windows验证模式时侯,可能会出现如下错误:
Error 285008: An unexpected error occurred retrieving all the Uddi Business Information for the Business name 'System.ServiceModel.Security.MessageSecurityException: The HTTP request is unauthorized with client authentication scheme 'Negotiate'. The authentication header received from the server was 'NTLM,Basic realm="localhost"'. ---> System.Net.WebException: The remote server returned an error: (401) Unauthorized.
at System.Net.HttpWebRequest.GetResponse()
at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
--- End of inner exception stack trace ---
Server stack trace:
at System.ServiceModel.Channels.HttpChannelUtilities.ValidateAuthentication(HttpWebRequest request, HttpWebResponse response, WebException responseException, HttpChannelFactory factory)
at System.ServiceModel.Channels.HttpChannelUtilities.ValidateRequestReplyResponse
解决办法:
cd “c:\inetpub\admin\scripts”
cscript.exe adsutil.vbs set w3svc/NTAuthenticationProviders “Negotiate,NTLM”
参考:
浙公网安备 33010602011771号