问题标签 [endpoint]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
wcf - WCF 配置 netTCp ,端点为空
我收到以下错误
“ChannelFactory.Endpoint 上的 Address 属性为 null。ChannelFactory 的 Endpoint 必须指定一个有效的地址。”
而且我不确定我做错了什么。有人看到知道它的原因是什么吗?下面是我项目的 App.config 服务器和客户端 谢谢你的帮助,问候
客户端
silverlight - Silverlight 客户端使用 WCF 服务 - 生产环境中的配置问题
我们构建了一个使用 WCF 服务的 silverlight 客户端。它在我们的本地开发盒上运行绝对完美,因为项目 WCF 服务 + Silverlight Host App 都在 Localhost 上运行并且工作正常。
但是,在生产环境中,silverlight 客户端托管在不同的网站中,而 WCF 服务现在托管在同一 IIS 内的不同站点中。silverlight 应用程序根本无法调用服务,在服务上配置 WCF 诊断后,我们发现根本没有调用该服务。似乎不知何故,WCF 服务的端点(生产环境)需要在 silverlight 中更新,但似乎没有明确的方法来更新 Silverlight 中的端点。
有任何想法吗 ?
wcf - 将 WCF 服务更改为需要 SSL
我有一个在 http 绑定上运行良好的 WCF 服务。我尝试将其更新为使用 SSL,但出现以下错误:
“找不到与绑定 WSHttpBinding 的端点的方案 http 匹配的基地址。注册的基地址方案是 [https]。”
仅当我在 IIS 7.5 中将站点设置为“需要 SSL”时才会发生这种情况,如果我取消选中它可以正常工作。
这是我的配置
我已经尝试了各种方法,但似乎没有什么能让我到达那里,非常感谢任何帮助!
wcf - 具有静态变量和两个虚拟目录的 WCF 服务
我有一个带有两个端点/虚拟目录的 WCF 服务,
本地主机/A/X.svc
本地主机/B/X.svc
看起来,两个“端点”都有一个来自静态变量的自己的实例。我已经知道这是因为 AppDomain。但是两个端点是否有可能使用相同的 AppDomain?
wcf - WCF Configuration - basicHttpbinding
I have problem with basic configuration of WCF. I am working on MobilePhone Application . First I created test desktop appliction which use basicHttpBinding and everything was fine. Next I used the same code (Only difference is in ServerReference - In phone I used Two Server Files generated using NetCFSvcUtil). In Phone Application I am getting Endpoint no Found Exception. Below I am putting my configuration. I would be grateful for help or suggestions.
Regards.
Exception on Phone side:
There was no endpoint listening at http://localhost:4444/Service/PhoneService that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.
Phone Configuration:
** revelant fragment of Server Configuration**
*Configuration in browser *
PhoneService Service
You have created a service.
To test this service, you will need to create a client and use it to call the service. You can do this using the svcutil.exe tool from the command line with the following syntax:
svcutil.exe http://localhost:4444/Service/PhoneService?wsdl
This will generate a configuration file and a code file that contains the client class. Add the two files to your client application and use the generated client class to call the Service. For example:
wcf - 工作流 WCF 服务 (XAMLX) 使用什么服务名称
我试图弄清楚如何为我创建的 WF 服务(MyFoo.xamlx)提供端点等。通常,当您创建服务时,您需要让 Service name="" 反映您创建的服务类型?即通过填写如下内容:
<Service name="MyNameSpace.Foo" behaviorConfiguration="myFooBehaviorConfig">
这适用于典型的 .svc 场景,我可以正常工作。只是如何将此概念映射到 .xamlx 服务?如果我有Foo.xamlx将它放在服务名称中不起作用 - 或者似乎不起作用(因为没有启用元数据)。
如果我随后从服务中删除了behaviorConfiguration属性,并从 标签中删除了myFooBehaviorConfig<behavior/>
- 因为它本质上为网络配置承担了更多的全局设置 - 繁荣!我可以看到 .xamlx 公开的方法/操作?
<serviceBehaviors>
<behavior name="foo" >
对比
<serviceBehaviors>
<behavior >
起初这很好,不需要任何努力,但同时我不希望开发人员为此访问 HTTP 端点或网络管道。我只希望它们通过我指定的net.tcp端口进入。为了做到这一点,我需要以<Service name=""/>
某种方式与 xamlx 匹配?
我也尝试过使用创建一个空的 .svc 文件然后以这种方式指向 xamlx 的技巧(这样开发人员总是假设它是 .svc 而不是 .xamlx)
<%@ ServiceHost Language="C#" Debug="true" Service="ActivityHubService.xamlx" Factory="System.ServiceModel.Activities.Activation.WorkflowServiceHostFactory" %>
同样,如果我删除命名行为等,这也可以通过 foo.svc ..但我似乎无法破解整个匹配 a<service>
与一个怪异的 xamlx !:) 呵呵。
令人沮丧..
有人是这个领域的专家吗?
wcf - WCF 端点配置
浏览“WCF4.0 中的新增功能”教程。第一个练习是在没有任何配置的情况下设置服务。然后,您进行一些配置以提供服务元数据。简单的东西。
我现在尝试做的是扩展配置以在不同的端口上公开相同的服务合同 - 在本例中为http://localhost:9001/test
这是我的配置...
但是我尝试连接到这个我收到机器主动拒绝连接的消息。为什么这不起作用?我可以在 wcftestclient 中使用什么地址来显示服务?
.net - 如何硬编码服务的默认 WCF 端点?
在自托管服务中,我想使用 App.config 中指定的端点(如果存在),或者如果 App.config 为空,则使用代码中指定的默认端点。我怎样才能做到这一点?
编辑:澄清一下,这是在使用 ServiceHost 的服务器(服务)端。
asp.net - Authentication mode="Forms" 导致 WCF 端点出错
我的 .NET 4.0 Web 应用程序项目中有一个 WCF 端点。使用 VS2010 WCF 测试客户端,我可以正确连接到服务。但是,当我使用该服务时,会收到一条通用错误消息:
内容类型 text/html;响应消息的 charset=UTF-8 与绑定的内容类型不匹配 (text/xml; charset=utf-8)。如果使用自定义编码器,请确保正确实现 IsContentTypeSupported 方法。响应的前 1024 个字节是:
我发现当我从 web.config 文件中删除身份验证时,服务可以正常工作:
有什么想法可以从身份验证中删除此服务吗?
endpoint - 在 Virtuoso 中定义端点
如何在 Virtuoso 中为我的本体定义新的端点?我能够通过 RDF Store Upload 选项卡中的 Virtuoso Conductor 上传我的本体。现在我需要定义一组端点,以便能够通过 HTTP 在我的应用程序中使用它们。Virtuoso Conductor 中是否有任何选项卡实现了用于创建端点的用户友好界面,我该怎么做?我需要使用一些外部工具吗?