wcf

XmlElement wrapped in extra tag in SOAP request

Hi I have a service-proxy with one method: void SendRequest(MyMessage msg); The MyMessage is defined as follows: [MessageContract(IsWrapped=false)] public class MyMessage{ [MessageBodyMember(Order=0)] public XmlElement Body; public MyMessage(XmlElement Body){ this.Body = Body; } } Now, the problem is that w...

wcf service OpenTimeout error

i am making a WCF service, and its corresponding client, both hosted in a single ASP.NET application. Now what happens, is that whenever i open my connection, it gives a timeout error. It happens, only of the .Open() statement. And moreover, it doesn't happen always, but sometimes it keeps coming.?? Please tell me a way.. ...

Difference between WCF rest starter kit and Web Application Toolkit for REST Services

Whats the difference between http://code.msdn.microsoft.com/WebAppToolkitREST and http://www.asp.net/downloads/starter-kits/wcf-rest? ...

WCF wsHttpBinding with certificate authentication on multiple machines.

Hi, I have WCF service that uses wsHttpBinding and authentication with certificate. I run this service on multiple machines and my firewall routes the request to the different servers. The problem is when the client open proxy and works with one server and on the next call the firewall routes the request to another server I get an exc...

asynchronously call a wcf service in xaml

Hi, I'm trying to figure out how to call a wcf in an asynchronous pattern in xaml tooltip object. so far I got the following code inside my combobox item template the combo box has several itemNames pulled from a database and a toolip appears whenever mouse is hovered on any of the items. I'm trying to show more information on the hove...

Async=true and Entity Framework

Background WCF Stack, Data Access Implemented in Entity Framework, Simple ASP.NET Front End This is a two part question. Recently we ran into an issue with periodic crashes with an exception that read: A transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 - The specified ne...

Using POST in Rest with .Net

I have successfully added and used a Get action in my new REST-service in .Net using WCF and the Rest-toolkit. The service is defined like this: [OperationContract] [WebGet(UriTemplate = "/{id}")] Foo GetFooById(string id); And I call it like this from the client side: public Foo GetFoo(string id) { var httpClient = new HttpCli...

How to debug a WCF service connected with multiple clients - .NET

Hello I've written a WCF service with a duplex contract which asynchronously calls back the clients. I have some issues when multiple clients get connected and i dono how to debug the service. Any insights on this? Thank you. NLV ...

WCF. Overhead of ConcurrencyMode.Multiple

I have a WCF service which is used synchronously, but its ConcurrencyMode is set to ConcurrencyMode.Multiple value, because the service is stateless actually. How much overhead does this mode impose? Does it make sense to change the mode to ConcurrencyMode.Single? ...

Need help to develope WCF with SSAS

How can expose the cubes data using wcf? ...

Intense Distributed C# (WCF) Architecture Design.

I want to design a new distributed application, but I have a few queries that I need some genius advice on, hopefully from you people: Scenario I currently support a legacy application that is starting to fall between the cracks. It is a distributed Client-Server app implemented using .Net Remoting. I can't explain exactly what it does...

same app.config : wcftestclient work, selfHosting doesnot

i have the same app config on both programs A - the service itself when i run it , wcf Test Client starts. B - A self host program using -new ServiceHost(typeof(MyService))) here it is : <services> <service name="MyNameSpace.MyService" behaviorConfiguration="MyService.Service1Behavior"> <host> <baseAddresses...

WCF Known Type from System.Object in Config

I'm trying to specify a known type in my config, but I'm having problems with the fact that it derives from Object. I can make it work specifying the known type via attribute. But in this case I need to make it work from the config. Here's an example. The following works fine: [ServiceContract] [ServiceKnownType(typeof(MyData))] publ...

Advantage .NET Data Provider - AdsConnection - DataSource

Does the full dictionary path need to be specified for the DataSource? I have tried using the database AliasName and it doesn't seem to work. ...

Accessing wcf web service with powershell2

I'm trying to write a cmdlet that accesses one of my wcf webservices. I've been looking at the new cmdlet : New-WebServiceProxy, but it only really seems capable of consuming ASMX webservices. I've seen this article; which is focussed around Powershell v1.0 I'd rather use a better method (if one exists). http://keithhill.spaces.live.co...

Wcf DataContractAttribute.IsReference Issue

Hi guys, I am having problem using [DataContract(IsReference = true)] on base/derive classess. I have the following base class and child class. I have no control (can't modify it) over baseclass public class BaseDto { } [DataContract(IsReference = true)] public class NodeTypeDto : BaseDto { .... } When I add service reference in wc...

Adding Custom WCF header to Endpoint Programatically for Reliable Sessions

I'm building a WCF router and my client uses Reliable Sessions. In this scenario when the client opens a channel a message is sent (establishing a Reliable Session?). Its contents is as follows: <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"&gt; <s:Header> <a:Action s:m...

Sync Framework vs Web Services to load a lot of objects

Our WCF web services are not being consumed by any other service, and we highly doubt that they will be. Currently we are only loading about 30 5k objects and have been using web services with success. At this point we are looking at scaling this to support 1,000 objects. Only about 20 will change at any one time. We have a few options...

WCF web service - how can I view XML request and response inside my app?

I am writing a C# WinForms application that consumes a web service using WCF. I would like to be able to display the XML request and response in the application in real-time as the calls are happening. Is this possible? ...

WCF callback with multiple clients

Can I have two different clients listening to the same WCF callback and have them both receive the same data without having to do the processing twice? ...