c# – 任何人都使用带有SSRS的WCF客户端Web服务?

c# – 任何人都使用带有SSRS的WCF客户端Web服务?,第1张

概述我在使用带有SSRS报告asmx服务的WcfTestClient时遇到问题.有没有人让它上班? The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Negotiate,NTLM'. 我在使用带有SSRS报告asmx服务的WcfTestClIEnt时遇到问题.有没有人让它上班?
The http request is unauthorized with clIEnt authentication scheme 'Anonymous'. The authentication header received from the server was 'Negotiate,NTLM'.Server stack trace:    at System.ServiceModel.Channels.httpChannelUtilitIEs.ValIDateAuthentication(httpWebRequest request,httpWebResponse response,WebException responseException,httpChannelFactory factory)   at System.ServiceModel.Channels.httpChannelUtilitIEs.ValIDateRequestReplyResponse(httpWebRequest request,httpChannelFactory factory,ChannelBinding channelBinding)   at System.ServiceModel.Channels.httpChannelFactory.httpRequestChannel.httpChannelRequest.WaitForReply(TimeSpan timeout)   at System.ServiceModel.Channels.RequestChannel.Request(Message message,TimeSpan timeout)   at System.ServiceModel.dispatcher.RequestChannelBinder.Request(Message message,TimeSpan timeout)   at System.ServiceModel.Channels.ServiceChannel.Call(String action,Boolean oneway,ProxyOperationRuntime operation,Object[] ins,Object[] outs,Object[] outs)   at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall,ProxyOperationRuntime operation)   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)Exception rethrown at [0]:    at System.Runtime.Remoting.ProxIEs.RealProxy.HandleReturnMessage(IMessage reqMsg,IMessage retMsg)   at System.Runtime.Remoting.ProxIEs.RealProxy.PrivateInvoke(MessageData& msgData,Int32 type)   at ReportingService2005Soap.ListSubscriptions(ListSubscriptionsRequest request)   at ReportingService2005SoapClIEnt.ReportingService2005Soap.ListSubscriptions(ListSubscriptionsRequest request)
解决方法 我在另一篇文章的帮助下想出来了,我现在找不到了.

我使用svcutil实用程序来创建服务/数据协定并提供客户端.然后按如下方式设置绑定.

<basichttpBinding>      <binding name="SsRSSoapBinding" >         <security mode="TransportCredentialOnly">            <transport clIEntCredentialType="Ntlm" proxyCredentialType="Ntlm" realm=""/>            <message clIEntCredentialType="Username" algorithmSuite="Default" />         </security>      </binding>    </basichttpBinding>
总结

以上是内存溢出为你收集整理的c# – 任何人都使用带有SSRS的WCF客户端Web服务?全部内容,希望文章能够帮你解决c# – 任何人都使用带有SSRS的WCF客户端Web服务?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/langs/1250949.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-07
下一篇 2022-06-07

发表评论

登录后才能评论

评论列表(0条)

保存