WCF windows service as scheduled service
I've a .net WCF windows service running on an app server which keeps monitoring a folder for xml files. How do I make this service run only at a particular time (01.00 hours) everyday ? Thanks. ...
I've a .net WCF windows service running on an app server which keeps monitoring a folder for xml files. How do I make this service run only at a particular time (01.00 hours) everyday ? Thanks. ...
For logging purposes, I want to get at the raw request sent to my RESTful web service implemented in WCF. I have already implemented IDispatchMessageInspector. In my implementation of AfterReceiveRequest, I want to spit out the raw bytes of the message even (and especially) if the content of the message is invalid. This is for debugging...
I have a WCF web service, currently served over WSHttpBinding endpoint with Transport security and Windows client credential type. The service is hosted on top of IIS 5.1 with SSL configured using a certificate from the domain certificate authority. IIS itself runs with the identity of [email protected] on a domain computer. Anonymous acce...
I'm in the process of writing a WCF application which will be consumed by a Silverlight application. I have done most of the design work and I am now doing the implementation, which has made me come up with this question. Here's an example of something that exists in my application: [DataContract] class Person { [DataMember] pr...
I want to get the working folder of a WCF application. How can I get it? If I try HttpContext.Current.Request.MapPath(HttpContext.Current.Request.ApplicationPath) I get a null reference exception (the Http.Current object is null). [Updated] What I meant with the working folder was the folder where my WCF service is running. If I set a...
I'm new to the Active Record design pattern and usually use a Data Mapper type pattern. The project I'm currently working on seems to meet nicely with the requirements for using the Active Record pattern in that the domain is fairly small and the object and database schemas are quite similar (though not identical obviously). I plan on ...
I've put an instance of the client proxy for the WCF service into a property on the App class so I can get it from anywhere in the app. I am not closing the client, I'm leaving it open for the duration of the app. The main reason for this is that if I were to follow the // Comment in the WCF service mex page (the one you get if you poi...
I've got a Sivlerlight app that I want to call from either https or http. I've got it working with one or the other but am having problems making it work with both (with a single web.config) I've found a post on silverlight.net forums that shows how they did it but it is not working for me. http://silverlight.net/forums/t/13275.aspx (t...
What is the best possible way to share a single instance of a WCF Service (the SoapClient class) across multiple instances of an application (WPF)? I need to do this because I need to enable duplex communications with callbacks, so i need to "register the application" to the the service so that other users using the application will ge...
I am newbie in WCF; I am developing a client server application and my goal is to execute some logic on the server side every one second. I made small client to my WCF service using NetTcpBinding because it is the most optimized way in terms of BW (I understand) as it uses binary encoding? After short tracing using TracePlus I found th...
I have a simple WCF Web service. It's hosted on IIS under the default website in our production domain. (local address: 10.10.20.100) By default this default website was setup for "All Unassigned" IP's on Port 80: however, I noticed that this caused the WCF Service to generate it's WSDL using the servers local DNS name. i.e. all the URI...
Hi guys,i give an error when connect my wcf service, The content type text/html of the response message does not match the content type of the binding (application/soap+xml; charset=utf-8) My wcf service config file below this: <?xml version="1.0"?> <configuration> <customErrors mode="Off"> </customErrors> <system.serviceMod...
I have the below code for returning back an instance of my WCF Service ServiceClient: var readerQuotas = new XmlDictionaryReaderQuotas() { MaxDepth = 6000000, MaxStringContentLength = 6000000, MaxArrayLength = 6000000, MaxBytesPerRead = 6000000, MaxNameTableCharCount = 6000000 }; ...
I'm using a class library that exposes a few objects. These objects have a couple of properties that hold data my clients need. I'd like to create a WCF service that returns the objects to my clients but I cannot update the class library in order to add the DataContract and DataMember attributes. What is the easiest way of exposing th...
When I serialize a enum value using DataContractJsonSerializer, it serializes the numerical value of the enum, not the string name. IE: enum foo { bar, baz } Serializing a value of foo.bar returns "0", not "bar". I'd prefer it the other way around, is there a way to override this? Edit: Because I didn't want to change the ...
I am trying to expose a WCT REST service and only users with valid username and password would be able to access it. The username and password are stored in a SQL database. Here is the service contract: public interface IDataService { [OperationContract] [WebGet(ResponseFormat = WebMessageFormat.Json)] byte[] GetData(doubl...
I have classes in my service defined as [DataContract] [KnownType(typeof(MyConcrete1)) ] [KnownType(typeof(MyConcrete2)) ] public abstract class MyAbstract { [DataMember] public int AbsInt { get; set; } } [DataContract] public class MyConcrete1 : MyAbstract { [DataMember] public int Concrete1Int { get; set; } } [DataCo...
I'd like to know whether Mono's implementation of WCF already implements NetPeerTcpBinding. Anyone is using it? Some examples? ...
I'm trying to publish a calculation service on a bunch of computers which will be used by an application server. The calculation servers are stateful and need to be able to perform asynchronous callbacks so I want to use per-session settings via TCP. The service application was built using the WCF Service Application project type in VS2...
I have a WCF service running that needs to parse some data. It turns out that data (points, sizes) gets converted differently in different CultureInfo's and the parsing is spread out in a lot of classes and methods. Since all the parsing is done without passing any CultureInfo the success of the parsing is dependant of the threads cultur...