wcf

WCF channel lifetime with repeat calls

Maybe this is an obvious question, maybe it isn't. Imagine a GUI control application where every button push calls a different function on a remote WCF service. Button usage is frequent at approximately every few seconds. In general is it best to open and close the WCF channel every function call or hold the channel open for the lifetime...

WAS net.msmq service messages stuck in retry queue

We are hosting a net.msmq service in IIS7. The queue is transactional. Messages arrive in the queue and are picked up correctly by the service. If an exception occurs, message is put into the retry queue. The retry delay is set to 1 hour, however when this time elapses the message is not "re-tried". If we browse to the .svc or send an...

WCF ChannelFactory State Property

What does it mean for a ChannelFactory to have a State property? I understand that a created channel can have connection based states. But am confused as to why the ChannelFactory also has such connection states. Does it too connect to the WCF service? ...

Problem with generating XPS documents with images in a WCF class library

I have a Silverlight application which uses a web service in order to create XPS documents. The document templates are created as XAML controls in a WCF class library. public void GenerateXPS() { Type typeofControl = Type.GetType(DOCUMENT_GENERATOR_NAMESPACE + "." + ControlTypeName, true); FrameworkElement control = (FrameworkE...

Calling WCF Service Methods from test Website throws error

Hello there, I have WCF Service Library implemented in Fluent NHibernate and hosted under Windows Service. Also, I have a WebSite to which Service reference is being added. Now, when I am calling WCF Service methods from WebSite, I get the following error: [FaultException`1: An invalid or incomplete configuration was used while creati...

WCF: The Caller was not authenticated by the service

Hi, I have just configured my first service application and i am getting this error: "The Caller was not authenticated by the service." The service is being hosted on my server via IIS 6.0 and I have created a desktop application on another pc which consumes this service. The strange thing is when the two applications are on the same ...

How to consume RESTful webservices with WCF ?

Hi, Is that better to use WCF REST Starter Kit for consuming web services (REST) with WCF (by using HTTPClient) or do it directly with WCF ? It seems that WCF REST Starter kit won't be available for .NET 4.0 and is a preview version only. Thanks ! ...

WCF Service Base Address Http and netTcp

Hello there, I have two base addresses defined in my WCF Service config file: <?xml version="1.0" encoding="utf-8" ?> <configuration> <!-- When deploying the service library project, the content of the config file must be added to the host's app.config file. System.Configuration does not support config files for libraries. --...

It is possible to use WCF + DTO's + Automapper?

I want to use automapper with a structure that uses WCF + DTO's but I want to know how the question of the eager loading with entity framework 4.0 work with the mappings of the automap. ...

Why does the XmlRoot attribute gets ignored in WCF and how to overcome this

We've observed that when we expose a WCF service which uses classes decorated with various xml serialisation attributes, despite the fact that we use the XmlSerializerFormat attribute on the interface any XmlRoot attribute on any of the operation's parameters gets completely ignored. The namespace of the parameters is always that of the...

WCF Error "This could be due to the fact that the server certificate is not configured properly with HTTP.SYS in the HTTPS case"

Hello, I'm having a problem using a WCF call from a Windows service to my WCF service running on my web server. This call has been working for a number of weeks, but then stopped working all of a sudden, and has not worked since. The exception I'm getting is: "General Error Occurred System.ServiceModel.CommunicationException: An erro...

IDispatchMessageInspector to log plain-text soap messages?

I've written a WCF IDispatchMessageInspector, so I can log incomming and outgoing messages. But I'm not sure how to get a nicely-formatted XML string to log. My code looks something like this: public object AfterReceiveRequest(ref Message request, IClientChannel channel, InstanceContext instanceContext) { MessageBuf...

WCF Proxy - SOAP 1.1 and 1.2 at the same time

Is it possible to configure a WCF proxy such that it is able to understand SOAP 1.1 and SOAP 1.2 messages at the same time? In other words, I want to be able to connect to a web service that may return at any time, SOAP 1.1 or 1.2 based messages. Thanks. ...

WCF Client configuration - base address?

I'm connecting a WCF client to a group of services all implementing the same contract and all at the same host. I was hoping that there would be a way to combine the endpoint definitions to cut down on configuration clutter. I also would rather not do it programmaticly - just by configuration. Right now, my config has this repeated ma...

WCF Serialization Problem

I'm switching code generators for my business objects. I was using SQL Metal, but in moving to the T4 toolbox's generator, serialization seems to have stopped working, and it looks like the two are doing pretty much the same thing. This is the property generated by SQL Metal (which works): [Association(Name="FK_FamilyConfiguration_Fam...

WCF, LINQ, Silverlight Problem

I am starting to learn silverlight, WCF and LINQ here. the silverlight is hosted in the asp.net website. in the asp.net website, 1. added LINQ to SQL Classes with one table "ABC". 2. added WCF Service with one method "RetrieveABC" to retrieve "ABC" table from database. 3. in Silverlight Added WCF Service and successfully run RetrieveAB...

WCF RIA Silverlight deployment issues

It seems the world is awash with people having problems deploying RIA WCF services, and now I'm one too. I've already tried a bunch of things, but to no avail. I need WCF RIA to support a Silverlight 3 application I've built. The short story is, using the new WCF RIA services (Nov 09?) I open VS 2008, create new project (silverlight a...

Validating Domain Objects and Displaying Validation Results on the View

I have a client -> service -> server, architecture and I want to introduce validation. I have dtos being passed over the service and get transformed into domain objects on the server. Say if a user enters in a value and I need to check this value against the database to see if it exists and if so return an error and highlight the fie...

Questions about controlling WCF PeerChannel connections

I've been studying the PeerChannel in WCF. The docs indicate that a peer will automatically try to get between 3 and 7 connected neighbors. My scenario is a couple of systems on one side of an expensive, high-latency connection; and one or more on the other side. Since the connection has limited bandwidth, I'd really like to keep cont...

How to push data to a .NET CF client?

Although polling a webservice is possible, do you know of another method to push changes to a mobile client except using the exchange server mail transport? ...