草庐IT

wcf-authentication

全部标签

c# - 找不到 WCF 绑定(bind)错误?

我正在使用VSTS2008+C#+.Net3.0。我正在使用自承载WCF。执行以下语句时,出现以下绑定(bind)未找到错误。我已经发布了整个app.config文件,有什么问题吗?ServiceHosthost=newServiceHost(typeof(MyWCFService));错误信息,Configurationbindingextension'system.serviceModel/bindings/MyBinding'couldnotbefound.Verifythatthisbindingextensionisproperlyregisteredinsystem.ser

c# - 在一个 WCF 服务中托管多个契约(Contract)

这个问题在这里已经有了答案:RunWCFServiceHostwithmultiplecontracts(8个答案)关闭9年前。是否可以在一个WCF服务中托管多个服务契约(Contract)?如果是这样,如何?我一直在谷歌上搜索,有些帖子说你可以做到(但不是怎么做),而其他人则说这是不可能的。当我运行服务器时,出现以下错误:Thecontractname'ConsoleAppWcfCommon.IBarService'couldnotbefoundinthelistofcontractsimplementedbytheservice'ConsoleAppWcfServer.FooSer

c# - 在 WCF RESTful 服务中访问请求主体

如何访问WCFREST服务中的HTTPPOST请求正文?这是服务定义:[ServiceContract]publicinterfaceITestService{[OperationContract][WebInvoke(Method="POST",UriTemplate="EntryPoint")]MyDataGetData();}实现如下:publicMyDataGetData(){returnnewMyData();}我虽然使用以下代码来访问HTTP请求:IncomingWebRequestContextcontext=WebOperationContext.Current.Inc

c# - 在 WCF 数据服务中使用枚举

我正在尝试使用POCO数据模型手动构建WCF数据服务,但我不知道如何正确公开enum值。假设一个简单的模型如下:publicclassOrder{publicintID{get;set;}publicstringDescription{get;set;}publicOrderStatusStatus{get;set;}}publicenumOrderStatus{New,InProcess,Complete}如何通过ODataWCF数据服务公开OrderStatus属性中的有值(value)信息?如果您什么都不做,数据服务会生成运行时错误(枚举是无效属性)。我看到的至少解决错误的唯一答

javascript - 带有 jQ​​uery AJAX 的 WCF REST - 删除/解决同源策略

所以我正在尝试创建一个由jQuery调用的C#WCFREST服务。我发现jQuery要求AJAX调用是在同源策略下进行的。我有几个关于如何继续的问题。我已经知道了;1.带有服务器回调的JSONP的hacky解决方案2.跨域代理服务器开销太大。3.在浏览器中使用Flash进行调用并在我的WCF服务器根目录中设置crossdomain.xml。我宁愿不用这些因为;1.我不想使用JSON,或者至少我不想被限制使用它2.我想将服务于静态页面的服务器与服务于应用程序状态的服务器分开。3.Flash在这个时代是不可能的。我在想:是否有像Flash的crossdomain.xml文件一样适用于jQu

c# - 带有 Javascript 客户端的 WCF 自托管 WebSocket 服务

我有这个WCF自承载WebSocket服务代码:主要://CreateaURItoserveasthebaseaddressUrihttpUrl=newUri("http://192.168.1.95:8080/service");//CreateServiceHostServiceHosthost=newServiceHost(typeof(WebSocketService),httpUrl);//Addaserviceendpointhost.AddServiceEndpoint(typeof(IWebSocket),newNetHttpBinding(),"");//Enable

java - 为 Java 中的 WCF 服务生成代理和 PHP 重复消息错误

尝试使用PHP和Java为WCF服务生成代理时出现以下输出错误:对于Java,我将wsimport与Jaxws和JaxB一起使用对于PHP,我正在使用wsdl2php我得到的错误如下:[错误]重复的“消息”实体:“IWcfRequestProcessor_ProcessRequests_InputMessagehttp://xxxxxxxxxxxxxxxxxxxxxxxxxxxxx/Service.svc?wsdl的第1行wsdl中唯一的消息实体是:如您所见,没有重复项,所以我不明白为什么会出现此错误。感谢任何帮助:安德鲁 最佳答案

php - PHP 中的 YouTube 分析 API : I keep getting "Insufficient permissions" while authenticated

我正在尝试使用OAUTH2在PHP中访问YouTubeAnalyticsAPI。在我的场景中,我首先检索channel数据,它工作正常(即使使用经过身份验证的段)。然后我在我的Analytics-call中解析channel-id。YouTubeAnalyticsAPI在我的GoogleDeveloperConsole中激活。我最终遇到以下错误:Anclienterroroccurred:ErrorcallingGEThttps://www.googleapis.com/youtube/analytics/v1/reports?ids=channel%3D%3D##MY_CHANNEL

php - 带有 LDAP 错误 : User authentication is temporarily unavailable 的 Dokuwiki

我正在尝试在我的本地计算机上使用LDAP设置Dokuwiki。Dokuwiki版本是2014-05-05“PonderStibbons”身份验证设置authtype:authldap插件Authldap(捆绑插件)设置plugin»authldap»server:localhostplugin»authldap»port:10389plugin»authldap»usertree:ou=People,o=sevenSeasplugin»authldap»grouptree:ou=Groups,o=sevenSeasplugin»authldap»userfilter:plugin»au

php - GAPI : Failed to authenticate user. 永久修复 PHP

关闭。这个问题需要debuggingdetails.它目前不接受答案。编辑问题以包含desiredbehavior,aspecificproblemorerror,andtheshortestcodenecessarytoreproducetheproblem.这将有助于其他人回答问题。关闭7年前。Improvethisquestion我正在尝试从GAPI中获取内容,它有时可以正常工作,但有时会抛出此错误:ExceptionGAPI:Failedtoauthenticateuser.Error:"https://developers.google.com/accounts/docs/A