wcf

WCF performance issue in Vista

Hi there, I am having performance issues with Vista when trying to connect with wsHttpBindings and NetNamedPipeBindings on Vista. I'm having 4 WCF services where the first one connects to the second and the second one connect to two others. The problem is when I run this setup on my Vista (64 bit) desktop the response times a really w...

Prepending some text to a WCF response message body

I want to prepend the following text to the response body of a WCF operation: <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet href="transform.xslt" type="text/xsl" ?> What is the best way to do this? An additional requirement is that the XSLT filename should be spec'd using an attribute on the operation method. I am trying t...

Why would the tab "WCF Options" not be in Visual Studio 2008 project properties?

On one machine with VS2008 installed, when I right-click on a WCF service library project and choose properties, I don't have the "WCF Options" tab but on three other computers the tab is there. The project is all the same one, from TFS. The only difference is that the one that doesn't have the tab is Vista and the others are all XP. ...

Mapping a WCF request message to the underlying operation

I need to know what operation is being invoked by examining a request Message object in an IDispatchMessageInspector. What is the best way to do this? ...

How to use simple TCP/IP sockets connection over Net.TCP WCF binding?

How to use simple TCP/IP sockets connections over/with Net.TCP WCF binding? Idea is – We have a web service with Net.TCP binding on some URL, port. We want to take advantage of the WCF address model and simplicity of socket connections. So can we use simple TCP/IP sockets connection over/with Net.TCP WCF binding? If yes. What do I ne...

Can I use Compression in WCF?

Hi, we hosted WCF services in IIS 5.1 wndows xp sp3 with httpBasicBinding. The data tranferered is huge in size and transfered every 1 minute. For this to less data transfer Is it possible to compress the response of WCF service by using default http compression ? Can I have some sample code / article for using http comression in WCF? ...

WCF Service Client accessing internal members

Hello there, I have a WCF Service Library (implemented using NH) with one of the class say Test, defined as [DataContract] public class Test with two constructors defined as internal Test() { } public Test(int param1, IList<Int32> param2, int param3) { this.Param1 = param1; this.Param2 = pa...

What is the best choice for making AJAX calls to a WCF service?

The Microsoft AJAX Library Preview 6 and jQuery provide several ways to make the sorts of calls I need: Sys.Net.WebRequest (ASP.NET Ajax) Sys.Net.WebServiceProxy (ASP.NET Ajax) $.ajax (jQuery) Sys.Net.WebRequest offers a way to specify the verb ("GET", "POST", "PUT", and "DELETE"), but no built-in callback for a failed request (they ...

WCF Object exposure

Hi All, I have a WCF service that needs to expose a custom collection to it's clients. I wondered what would be the best way to expose this object to my clients? Object Code: public class ListBoxDataCollection : System.Collections.CollectionBase { public ListBoxDataCollection() { } public ListBoxData this[int index...

WCF Singleton services: single instance per what? Per host instance?

My understanding is that for a WCF service with Single instance mode, the "single" is only true per host instance, i.e. it's quite possible to have multiple host instances (in the same process?) with different endpoint URLs and different service instances in each, and their state will remain separate. Is this correct? ...

WCF Security - Client Authorization

Hello there, I need help on securing my WCF Service so that only authorized users can make a call to service methods. The WCF Service is configured with wsHttpBinding and is hosted under Windows Service. The client application is an asp.net website. Also, the users making call to WCF service are already authorized by client applicati...

Source code hosting for ASP.NET and WCF projects

I'm working on a project with 2 other developers and I need to host it online. I need a site to host it for me with features such as version control, and others neat features. can you suggest any ? the project is not an open source one. thanks. ...

Create message from a MessageDescription

I'm trying to create a Message using only a set of parameters provided by the user and a MessageDescription I resolved by extracting the input message from an OperationDescription object in WCF. It looks simple, but I can't seem to find information on how to work with settings like Body.WrapperElementName and various message parts that...

provided URI scheme'http' is invalid; expected 'https'

Hi, I have a RESTful Web Service hosted in IIS 6.0, I am able to Browse the Service in browser. When i am trying to access the same service via Client console App, it is giving me error "provided URI scheme'http' is invalid; expected 'https', Parameter name: Via" My WebService web.config has this settings: <system.serviceModel> <s...

ASP.Net Membership provider in WCF (WebHttpBinding)

Hi, I'm developping a WPF application that needs authentification. I want to use the client application services to use the ASP.Net Membership Provider (see this link if you don't know what I'm talking about). Actually, I made my own provider based on the MembershipProvider. It works perfectly with a ASP.Net projet. But now, I don't w...

Data compression for ADO.NET data services

I have an ADO.NET data service exposed by a .NET app (not IIS) which is consumed by a .NET client app. Some calls to this data service return large amounts of data. I'd like to compress the XML data on the wire to reduce payload and improve performance. Is this possible? ...

How to create Net.TCP WCF binding for\using SOAP 1.1?

How to create Net.TCP WCF binding for\using SOAP 1.1? Is it posible? If yes. What do I need? MSDN if there is any help on this. Open Source Libs/wrappers. Tutorials and blog articles on How to do it. If no: I need know where did you get the information from (link to MSDN or other official WCF information resource). ...

Will messages between WCF Services hop over a WiFi Network/WLAN?

In my office building we have laptops on multiple floors all running a WCF Service. When WCF services communicate with each other, will a message for an out-of-range device automatically reach it by multi-hopping? Does WCF/the WLAN device driver handle this? Or do I have to detect if a device is not contactable/out-of-range and implement...

Can multiple WCF services communicate with each other?

I'm just beginning WCF and so I don't understand exactly how the abstraction works. Can I write a WCF service and install the same thing on multiple machines, and have them communicate via some ID? I'm looking at sending/receiving commands, and continuous real-time data being sent between devices. ...

What project structure do you use for C# apps that host multiple WCF services?

I need a C# WinForms app to host multiple WCF services. So which of these (1 or 2) would be suitable? Should I create a C# WinForms project and another WCF Service Library project? Or simply create a Form in the WCF ServiceLib project? -- Will I still be able to do all these: control service lifetime, set the properties of the servi...