wcf-endpoint

    1热度

    2回答

    我正在创建WCF服务。这是我的第一个。我收到错误: Could not find default endpoint element that references contract 'WCFClient.IWCFClient' in the ServiceModel client configuration section. 我尝试过切换端点名称等,并删除/重新创建服务引用。我似乎无法弄清楚问题所

    2热度

    1回答

    是什么在web.config中定义端点和在Global.asax中注册的路由。(服务),如下面的区别: protected void Application_Start(object sender, EventArgs e) { RouteTable.Routes.Add( new ServiceRoute( "", new WebService

    2热度

    4回答

    在自托管服务中,我想使用App.config中指定的端点(如果存在),或者如果App.config为空,则使用代码中指定的默认端点。我怎样才能做到这一点? 编辑:澄清,这是在服务器(服务)端使用ServiceHost。

    0热度

    1回答

    我有以下情形: 项目A包含2个接口A和B以及两个服务端点EndpointA和EndpointB,每个实现匹配接口。 我有一个单元测试项目,它使用Cassinini来测试服务。我使用svcutil生成的代理在我的单元测试中创建客户端对象。 下面是从单元测试项目我的app.config: <system.serviceModel> <bindings> <basicHttpBinding>

    3热度

    1回答

    有没有办法将一些日志记录或行为添加到WCF路由列表中,以便我可以记录路由何时使用备份列表上的端点? <filterTables> <filterTable name="RoutingTable"> <add filterName="Filter1" endpointName="EP1" priority="0" backupList="FailOver"/>

    0热度

    2回答

    同我有合同,我有一个basicHttpBinding的。 <endpoint address="http://localhost:49654/BookShopService.svc" binding="basicHttpBinding" contract="BookShop.IBookShopService"> </endpoint> 我想添加另一个端点wsHttpBindi

    1热度

    1回答

    嗨多个合同的多个端点我有2个服务合同IService1和IService2 我想每个服务合同不同的端点也是我只想用basicHttpBinding的。 假设IService1地址是http://localhost:4040/MyApp/Service1.svc然后 我想访问IService2与地址http://localhost:4040/MyApp/Service1.svc/service2或比

    3热度

    1回答

    我试图访问一个WCF Web服务的非Silverlight的支持Web服务(即未启用Silverlight)。 我能够添加服务引用罚款,我可以看到该服务上的所有方法。 我遇到的问题是,当我真正尝试调用一个方法,我得到一个“EndPointNotFoundException。” 我读过,使用Web服务,这是Silverlight启用的例子很多。 我的问题是:是否可以使用,是不是在Silverligh

    1热度

    4回答

    我已经开发了具有两个合同Contract1和Contract2暴露在两个不同端点的WCF服务消费WCF服务。 当我要添加对我的客户端应用程序的引用时,它允许我使用这两个合同。 我如何限制客户端应用程序只使用一个合同? 这里是我的web.config代码提前 <system.serviceModel> <services> <service behaviorConfigurat

    9热度

    2回答

    我已创建这样的 EndpointAddress address = new EndpointAddress("http://example.com/services/OrderService.svc"); 一个的EndpointAddress但我不能将行为添加到这个端点编程。 行为如下: <behaviors> <endpointBehaviors> <behavior n