wcf-endpoint

Endpoint not found when accessing via URL in a browser

点点圈 提交于 2020-01-15 09:21:09
问题 When I enter the address of my service, I get to see the WSDL file. However, When I add a suffix to the URL, I get the error message: "endpoint not found". It's definitely due to something wrong with my service model declaration but after a few hours, I'm inclined to admit that it's beyond me. I've made sure that the namespaces are correct as discussed here. The first URL works. The other, don't. http://---.azurewebsites.net/MyService.svc/ http://---.azurewebsites.net/MyService.svc/Ping http:

Custom Endpoint Behavior not being used in WCF Client with Service Reference

无人久伴 提交于 2019-12-23 14:03:51
问题 I have an issue that I am not quite sure how it started. I am fairly certain it was working fine before, but do not remember making any changes. First, please do not focus too much on the setup unless it is directly impacting why it is not working. I am not looking for critiquing as much as I am what is causing it to not work. I am exposing an API that uses HTTP header authentication. I am consuming operations from this API in my solution. In order to avoid boilerplate code, I created a

Single endpoint with multiple service contracts

◇◆丶佛笑我妖孽 提交于 2019-12-19 07:48:13
问题 How can I write a WCF web service that has single endpoint but multiple service contract? Example: [ServiceContract] public interface IWirelessService { [OperationContract] void AddWireless(); } [ServiceContract] public interface IWiredService { [OperationContract] void AddWired(); } [ServiceContract] public interface IInternetService { [OperationContract] void AddInternet(); } Lets think like IInternetService is my main webs service and i want to implement IwiredService and IWirelessService

Using Castle Windsor WcfFacility to create client endpoints

 ̄綄美尐妖づ 提交于 2019-12-18 13:25:44
问题 I have created three assemblies. A web site, a WCF service and a contracts assembly that holds the interfaces that the services implement. I would like to use Castle Windsor to create the services for me on the client (website) so that I do not have to have an endpoint in the web.config of the web site for each service that I wish to use. I would like to look at the contract assembly and get all the service interfaces in a namespace. Right now for every service I have something like the

WCF C# Windows Store APP I am getting this exception “There was no endpoint listening at [URL] that could accept the message…”

别来无恙 提交于 2019-12-13 12:51:48
问题 I made a WCF that connects SQL DB and get data to a Windows Store App... Yesterday worked just fine. I could get the data from the DB to the Client app. Today I open the solution again and for my surprise it just stop working just like that... I 've been searching in foruns some ideias but didn't get any positive result. I didn't change a single line of code, and I really don't know what is happening. I tried to make a new solution, a new project with that funcionality and nothing, just doesn

WCF - let the client choose the return format

会有一股神秘感。 提交于 2019-12-12 08:45:54
问题 I'm trying to learn some WCF on my own. I have C#/ASP.net knowledge but I am new to WCF. I am using Visual Studio 2010 to develop some apps while I learn. I developed a small web service which acts as the backend for a TODO/Task manager where a user can create/delete/edit new events; it's all very simple and basic. My questions are the following: Is there a way to let the client choose the return format he wants (e.g. xml/json/rdf) without writing new operation contracts? How can I see on the

Could not find endpoint element with name ' and contract 'I' in the ServiceModel client configuration section.

这一生的挚爱 提交于 2019-12-11 12:14:18
问题 I am working on a Base WCF Service- Client WCF service - Consumer Base Wcf servcie model as following: In this model, I have created a Base WCF service and created 1 WCF service i.e; ClientWCFService and 1 ASMX service i.e; ClientASMXservice using the BaseWCFServiceProxy.cs the Proxy class of Base WCF Service using SVCUtil.exe. The ClientWCFService and ClientASMXservice are working fine in StandAlone environment. Now, I created a Consumer Console Application using the same proxy class

How to hard-code a default WCF endpoint for a service?

心已入冬 提交于 2019-12-11 03:38:01
问题 In a self-hosted service, I'd like to use the endpoint(s) specified in App.config, if present, or a default endpoint specified in code if App.config is empty. How can I do this? Edit : to clarify, this is on the server (service) side using ServiceHost. 回答1: One way is to try the first attempt to load from the config file, and hard-code the endpoint in the catch . EG: MyServiceClient client = null; try { client = new MyServiceClient(); } catch (InvalidOperationException) { EndpointAddress

WCF custom binding for compression

若如初见. 提交于 2019-12-10 20:33:39
问题 Following the sample for compression by Microsoft. I have added the encoder, encoder factory, and binding element to my solution. The difference from their sample is that we do not register our endpoints via the config file (requirement), but instead use a custom Service Host Factory. Service Host: protected override ServiceHost CreateServiceHost(Type serviceType, Uri[] baseAddresses) { ServiceHost host = base.CreateServiceHost(serviceType, baseAddresses); if (host.Description.Endpoints.Count

WCF Service service call to stream endpoint fails on 3rd call

僤鯓⒐⒋嵵緔 提交于 2019-12-08 06:17:41
问题 quick overview of what I've got here: WCF Soap service is running over HTTPS, with Message credential of type certificate. I've got 2 endpoints that I use (besides mex), 1 for my normal service calls, the other for streaming files. Here's my web.config for the service (edited some names of items): <bindings> <wsHttpBinding> <binding name="wsHttpEndpointBinding"> <security mode="TransportWithMessageCredential"> <message clientCredentialType="Certificate" /> </security> </binding> <