wcf

WCF Channel listners

Hi All I need to create a WCF service that listen to messages on Tcp port and converts it to a data contract. I also need to create a WCF client that initiates the connection to the services and starts receiving the converted messages for processing. I have created services and clients that initial a service operation in return to a us...

How to enable certificate authentication mode for basichttpbinding?

Hi all, I need to enable the security for my service using basichttpbinding with the authentication mode set to "Certificate" . So far i have used the default windows certificate for my service by mentioning it on IIS and made the url to "https" What are all the procedures/steps to enable the certificate authentication for basichttpbi...

WCF Data Service can't handle UPDATE on feed entries

Hi! Me and some buddy of mine are trying to get started with WCF Data Services, so let me first describe what we have done so far: We have created a fairly simple WCF Data Service with a data source that implements the IUpdatable interface and exposes some data through some public IQueryable<> attributes (the code is attached at the b...

Stream to file while returning a WCF stream?

I have a WCF service that streams large files (100MB+) from a remote FTP server. [ServiceContract] public interface IStreamService { [OperationContract] Stream GetDataFromFtp(); } public class StreamService : IStreamService { public Stream GetDataFromFtp() { Stream ftpStream = Retr(...); return ftpStream...

WCF client returns "nothing" as a response to a third party webservice

I have a 3rd party webservice (happens to be a peoplesoft EIP service) that I'm trying to call from .net. I've tried using a service reference and the old web reference to call this service and every time I call it I get a response of "nothing" back from the service. I've ran the service call through SoapUI and it works fine. I've capt...

how to call WCF Service method in Iphone

I have made a WCF service(service1.svc) have 2 methods. 1.GetData() 2.ProductDetails(string ProdId) Both returns a file in JSON format when i do this. http://192.x.x.x/Demo/Service1.svc/GetData http://192.x.x.x/Demo/Service1.svc/ProductDetails?prodId=P2 now i want to use these methods in Iphone. & i call them as- NSDictionary *ar...

WCF SecurityNegotiationException by trying remote access

I have a WCF Webservice deployed on IIS 6. I deployed it now buy create a WebSite and use the default settings. I can see the DNSService.svc?wsdl in my Webbrowser so i can access this site. But if i make a WebReference in my VS project and try to run a method of the WebService the programm runs in a SecurityNegotiationException. The Me...

WCF: How to pass a variable number of parameters to a WebGet enabled service

We're trying to pass a variable number of key-value-pairs to our service by using the WebGetAttribute and the UriTemplate to expose a REST interface. What we want to do: [WebGet(UriTemplate="/Query/Select?{query}"] Response Query(string query); At client-side we want to specify some keys several times, e.g.: hllp://localhost/MyService...

WCF - Memory problems when deserializing a large streamed objects

Here's my situation - I have a simple object model. At the root, there's a Report object. Reports have an array of Documents. Each document has an array of Chapters and Page. Each of these objects has 4 or 5 properties (primitives - strings and integers). It looks something like this: Report List< Document> List < Chapter> List ...

Send timeouts on WAS-hosted WCF service with named pipe binding, per-call instancing

We have a client that sends requests to a per-call WCF service (WAS hosted, NP binding, same machine) in a loop. The WCF service calls an external EXE to process requests. The operations on the service can take a few seconds, or a few hours. To combat this, we have sendTimeout=00:01:00, receiveTimeout=00:05:00 and a built-in circuit-b...

How can I change the logical URI of my web service?

I have a WCF service running under IIS7. It can be accessed just fine at http://myserver.domain.com/myservice.svc I don't want to change the physical location or name of this file but I want calls to http://myserver.domain.com/this/here to be handled by http://myserver.domain.com/myservice.svc Is this possible? ...

Windows Service "self hosted" WCF : compression?

Using compression with WCF in IIS I can find documentation for, but its oriented towards using IIS features. I can find people talking about how they've written their own compression handlers, but it all looks pretty custom. Is there a best practice around compressing WCF? We're using http bindings. Edit: setting this as a wiki. ...

Using KnowTypeAttribute in WCF Service

I have a situation where I need to pass a list of objects to my service. The objects have to be of type ELEMENT. I have my Element interface defined like so public interface IElement{ } Then I have my DataContracts inheriting this IElement class Like so . . . . [KnownType(typeof(Common.IElement))] [DataContract] public abstract ...

System.Runtime.Serialization.InvalidDataContractException in production environment , not in test environment

I’m moving a web service from our test environment to our production environment, and am installing it under “services” The web service works fine in test, but in prod I get this error: “System.Runtime.Serialization.InvalidDataContractException: Type ‘CustomClass' cannot be serialized. Consider marking it with the DataContractA...

WCF Service with netTcpBinding + windows Authentication hosted with IIS and using roles for authorization

I am having a WCF Service which is hosted with IIS with nettcpbinding and Windows authentication, I am trying to do authorization with user name/roles. But service is allowing any user to access it. Is this possible in first place? ...

WCF is using the wrong URL reference

I created a WCF service that works beautifully on my dev box, but when I move the code over to the web server, it gives me the following error: There was no channel actively listening at 'http://live01.farm02.webhost.com/webservice/service.svc'. This is often caused by an incorrect address URI. Ensure that the address to whic...

Getting 'Access is Denied' exception message when running WCF service on Windows Azure

I am trying to build a Healthvault WCF web service that requires an x509 certificate to deploy on Windows Azure in C# using Visual Studio 2010. When I debug the solution on my local IIS7, I can perform all functions no problem. When I deploy to Windows Azure and try to run any of my methods, I get this error. The server encountered ...

WCF Message Contract and Streaming

I'm going boarder line crazy, I have been working with this for over a day and still have no idea why it doesn't work, I have a MessageContract that I'm using to send out a stream, but I get the following error, Type 'System.IO.FileStream' with data contract name 'FileStream:http://schemas.datacontract.org/2004/07/System.IO' i...

What does "AsyncTimerCallbackCompletion TimerInfo@" in !threadpool output mean?

Hello, Sometimes my application consumes 100 cpu. When I investigate crush dumps in windbg I always see huge "request queue" in the log and I am very suspicious of this huge amount of requests. Definitely I want to know where they come from, but at the first place I don't quite understand what it means. Does it mean that there are lots ...

Pattern for client-side update in SOA

I want to develop a data-driven WPF application, which uses WCF to connect to the server-side, which itself uses NHibernate to persist data. For examle there is a domain-object called "Customer" and there is also a flattened (with Automapper) "CustomerDTO" which is returned by a WCF-operation called "GetCustomer(int customerId)". I don'...