wcf

What alternitives are there to WCF Test Client?

I feel like it should be easier to test my WCF Services. Is there an alternative to WCF Test Client? Something with these features: Can save my object trees (method parameters) to be used again. Ideally it would even let me identify GUIDs that need to be re-generated on each run and ones that should stay static. Easier to deal with...

WCF. to send data through service and client

I have a service. This service get data from SQL Server. What the best way to send information to client? Should I use ADO.NET or Entity Framework? ...

WCF. Patterns. SQL Server

I will develop a WCF service. The service will get data from SQL Server. What patterns I should use to separate access code to SQL Server and other code. In future I am planning to change access logic to SQL Server (LINQ to SQL or ADO.NET or Entity Framework). ...

WCF Difference in two URLs that point to the WSDL

URL in browser: http://localhost:12345/FRB.EC.BMI.WebSvc/Datafaction.svc shows this: You have created a service. To test this service, you will need to create a client and use it to call the service. You can do this using the svcutil.exe tool from the command line with the following syntax: svcutil.exe http://sfbztkdev01v.biztalkde...

Best practice for Service and data contracts - WCF

I understand I can apply several options to the ServiceContract (like Name, Namespace) attribute and for OperationContract (Action, ReplyAction) The same goes to DataContract (Namespace) and DataMember (IsRequired, Name, Order) How do I determine if I need to apply a particular option or not. What is the best practice/convention I shou...

IIS 7 Application Pool - Can't connect to WCF Service

Greetings, I have to following problem. I have a WCF Service which runs under IIS7. Application connects to it and WCF Service makes some requests to DB. I have notice in activity monitor in SQL Server 2005 that after there are exactly 102 active connections, the application pool in IIS7 hangs. After this I can't connect to my WCF Serv...

WCF REST POST XML

Here is a code snippet. Please tell me whats the difference between these two codes and also which content suitable for these code snippets. "application/xml" or "plain/text" [OperationContract] [WebInvoke(Method="POST", UriTemplate="DoSomething")] public XElement DoSomething(XElement body) { ... return new XElement("Result"); }...

WCF configuration for SOAP plain text password authentication over SSL

I have an application that connects via https to a SOAP-based web service that implements WS-Security. The web service is written in Java, expects a plain text password as well as a properly set timestamp. After a great deal of googling and experimentation, I can't figure out how to configure my WCF client to interact with this service...

Where are my WCF client constructor overloads?

I'm creating a simple WCF service (MailService), and have added a service reference to a client project. The object browser in the client project is successfully showing the MailService metadata, including an object called MailServiceClient that has 4 overloads for its constructor. I want to use the single string parameter constructor, ...

How to create a WCF dead-letter service for MSMQ3.0

Hi, I'm trying to create a service reading the dead-letter from the transactional system dead letter queue. The service configuration looks like this: <service name="NotificationDeadLetterQueueService"> <endpoint address="net.msmq://localhost/system$;DeadXact" binding="netMsmqBinding" contract="INotificationService" /> </servic...

Passing method implementations of a class between web applications.

Hello, Is it possible to implement a system similar to this: 1 Centralized assembly storage in a central web application N Client web applications consuming types in assemblies in this centralized web app. It should work this way. I design an interface and deploy it with every client application Client application request for a spe...

Which Fluent WCF framework should I use, if any?

Is there any Fluent WCF interface out there worth using? Maybe something like these: http://www.markharris.net.au/blog/category/net/wcf-net/ http://code.google.com/p/vitamink/ http://www.simonsegal.net/blog/2009/03/15/if-i-had-a-fluent-interface-for-wcf-configuration-i-would/ Anyone tried one of these? Which one is the best? ...

Bad Request to RESTful WCF Service Forces IIS to Recycle App Pool

I am attempting to create and host a simple RESTful WCF Service. The service works perfectly except for 1 situation. I attempt to perform a POST to insert a new object into my static List using the JSON request of: {"sampleItem":{"Id":1,"StartValue":2,"EndValue":3}} If I then change the request to be: {"sampleItemBlah":{"Id":1,"Start...

Duplicate classes in my wcf proxy

Okay, I have two OperationContracts and MessageContracts, like this: [OperationContract] OperationResult OperationOnSingleItem(Input input) [OperationContract] OperationResult OperationOnItemCollection(Inputs inputs) [MessageContract] public class Inputs { [MessageBodyMember] Input[] InputCollection } [MessageContract] public...

WCF - CompositeDispatchFormatter.SerializeReply throws null reference exception in .NET 4

I am presently converting some existing .NET 3.X WCF code (written by someone else) to .NET 4.0. Of particular interest is a WCF service that implements a restful COMET behavior by using a specialized dispatcher (ChannelDispatcherBase) and behavior (WebHttpBehavior). This code works by deferring a WCF response from the server until certa...

Webservice Response is turned into ref parameter when using MessageContract

I have defined the following Interface [ServiceContract] public interface IHealthProducts { [OperationContract()] ResponseClass OrderSelfSignedHealthCertificate(); } Which returns the following type [MessageContract] public class ResponseClass { [MessageBodyMember] public string AnimalSpeciesCode { get; ...

Controlling what properties are serialized through a service reference

We have a service reference that points at a WCF service, this acts as a proxy to our model layer where our data access logic is being handled. Under the hood we are using Linq2Sql as the ORM to facilitate the database communication. We use the generated classes as our data access layer, but what gets returned is actually dumb DTOs obje...

Databind a RIA Entity to a Custom Form

Hello All! I have a question very similar to this gent in this post http://stackoverflow.com/questions/1864567/wcf-ria-services-loading-data-and-binding in which the poster was trying to figure out how to use ria to bind to something other than the common scenrios overviewed in the numerous online examples (ie bind to an item source ...

WCF hosted in a Web application and compatibility mode

I have a WCF service hosted in a web application (IIS). I need to expose 1 end point over wsHttp and the other over netTcp. I am on a IIS7 environment that makes it possible for me to host non HTTP based services. Anyways, when I browse the .svc file using a browser, I get the error: The service cannot be activated because it does not s...

Add Service Reference is generating Message Contracts

OK, this has been haunting me for a while, can't find much on Google and I am starting to lose hope so I am reverting to the SO community. When I import a given service using "Add service Reference" on Visual Studio 2008 (SP1) all the Request/Response messages are being unnecessarily wrapped into Message Contracts (named as --> "operat...