wcf

Problem with MessageContract, Generic return types and clientside naming

I'm building a web service which uses MessageContracts, because I want to add custom fields to my SOAP header. In a previous topic, I learned that a composite response has to be wrapped. For this purpose, I devised a generic ResponseWrapper class. [MessageContract(WrapperNamespace = "http://mynamespace.com", Wrappe...

WCF Workflow Service single instance correlation

Using visual studio 2010 RC/.Net 4.0 I have a wcf workflow service with three receive activities defined, basically StartProcessing, StopProcessing, and GetProcessingStatus. This is a long running service that continues to poll an external service for data once StartProcessing is called, until StopProcessing is called. My problem is wi...

Is there a difference between WAS and AppFabric

I understand that AppFabric has both caching capabilities along with hosting WCF/WF services. I have seen Windows Activation Service used interchangeably with AppFabric when talking about hosting services on IIS 7.0 Are both one and the same? ...

Any hints on the xsd bloat created by a WCF web service reference in a Silverlight 3 project?

I've a Silverlight 3 based project, talking with a DB via a WCF web service. So far, so good. I'm growing more and more concerned about the sheer number of xsd and wsdl files generated in the servicereference subfolder. The increasing numbers seems to be a kind of versioning, but I'm not sure... Do you know what is it for? It seems no...

Very slow performance deserializing using datacontractserializer in a Silverlight Application.

Here is the situation: Silverlight 3 Application hits an asp.net hosted WCF service to get a list of items to display in a grid. Once the list is brought down to the client it is cached in IsolatedStorage. This is done by using the DataContractSerializer to serialize all of these objects to a stream which is then zipped and then encry...

Can a WCF Operation that takes a single array as a parameter use MessageContracts?

I am trying to replace an asmx WebService with a WCF service. My primary goal is to keep the SOAP message the same. The caller is not .NET, and would require significant re-work to take minor changes to the contract. My pain point is that the web methods I am trying to replace webmethod uses the the following Attribute deceleration: [S...

xsd.exe - schema to class - for use with WCF

I have created a schema as an agreed upon interface between our company and an external company. I am now creating a WCF C# web service to handle the interface. I ran the XSD utility and it created a C# class. The schema was built in BizTalk, and references other schemas, so all-in-all there are over 15 classes being generated. I p...

WCF: How to log exceptions?

Is it possible to log WCF service exceptions? I have added in the app.config. But still the exception soap message is missing in the wcf log file. All the remaining messages for which there is no exceptions can be seen in the WCF log file. Here is my code & app.config. Any pointers are highly appreciated. public string GetName(int empl...

How to obtain client's URL from WCF service?

Hello, gentlemen. Here is the problem: I have a WCF service and a few sites connecting to it and sending certain messages. How can I obtain client's URL (not IP) from the WCF service to assign it with the message? A kind of statistics. I'm using C#. Thank you in advance, Tim ...

WCF Binding Reliable Session, would you ever realistically want Ordered set to false?

the WSHTTP Binding for WCF supports Reliable Session Properties. In there I noticed a boolean property which allows you to turn off / on ordering. The property description is as follows: Ordered: A boolean value that specifies whether messages are guaranteed to arrive in the order they were sent. I'm a bit baffled by this property, ...

Choosing correct connection properties for long running WCF applications

I am writing a client/server application in C# using WCF. All my testings went fine, but as soon as I deployed the service, I noticed random problems in communicating with the server. I enabled debugging and saw messages like this in the server: The communication object, System.ServiceModel.Channels.ServerReliableDuplexSessionChannel, ...

Ajax call to wcf windows service over ssl (https)

I have a windows service which exposes an endpoint over http. Again this is a windows service (not a web service hosted in iis). I then call methods from this endpoint, using javascript/ajax. Everything works perfectly, and this the code I'm using in my windows service to create the endpoint: //Create host object WebS...

WCF in IIS 6: Server cannot set status after HTTP headers have been sent

I have a WCF service that is essentially running in a loop and outputting files to a directory. I am getting this interesting error that I managed to find with tracing enabled <E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent"&gt; <System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system"&gt; <...

Error message: "Two different contracts have the same ConfigurationName" when downloading wsdl from xamlx in AppFabric beta 2

I get the following error message when I try to use svcutil to generate a client proxy for a xamlx file that is hosted by AppFabric beta 2: Two different contracts have the same ConfigurationName I understand the message, however, I cannot find its cause or how to fix it. I'm following the 'Introduction to Workflow Services' lab from t...

WCF: How to change the object graph?

Recently I came across this error in my WCF trace: There was an error while trying to serialize parameter http://tempuri.org/:ProcessAllTasksResult. The InnerException message was 'Maximum number of items that can be serialized or deserialized in an object graph is '65536'. Change the object graph or increase the MaxItemsInObjectGraph q...

WCF: The user specified maximum retry count for a particular message has been exceeded

Hi Folks Getting this WCF error, and no idea how to fix it: System.ServiceModel.CommunicationException: The sequence has been terminated by the remote endpoint. The user specified maximum retry count for a particular message has been exceeded. Because of this the reliable session cannot continue. The reliable session was faulted. Any ...

Any compelling reason to stay on WCF?

I've been trying to create a stable web service application for the last 2-3 months. about 2 months ago I made the choice to move over to WCF to take advantage of the single instanced web services. Since making that move I've had some real headaches deploying to IIS 6 scenarios. Unfortunately because most real clients still use Windows...

Silverlight and WCF: Handle 'WCF down' exception / WCF connection check

Inside my Silverlight app, I'm calling a web service asynchronously, using the client generated for me by Visual Studio (Add Service Reference...). My code looks like this: ServiceClient serviceClient = new ServiceClient(); serviceClient.GetServerTimeCompleted += new EventHandler<GetServerTimeCompletedEventArgs>(serviceClient_GetServerT...

WCF: how can we have services in which their output would be serialized by JSON method?

wcf: how can we have benefits on using JSON serialization in our services? ...

Stop lazy loading or skip loading a property in NHibernate? Proxy cannot be serialized through WCF

Consider I have a parent, child relationship class and mapping. I am using NHibernate to read the object from the database, and intended to use WCF to send the object across the wire. Goal For reading the parent object, I want to selectively, at different execution path, decide when I would want to load the child object. Because I don...