wcf

WCF XML and Serialization with List

I have a basic WCF service that takes some xml. Some of the xml is a list like so: <Root> <Products> <Product> <SKU>1234</SKU> <Price>2533</Price> <ProductName>Brown Shows</ProductName> <Quantity>1</Quantity> </Product> <Product> <SKU>345345</SKU> ...

One endpoint, different bindings ?

Hi, Is there a way to expose a service from a single endpoint like "https://mydomain.com/Myservice.svc" but to be able to have differents binding configuration. I know that a endpoint must be unique on URL + Contract + Binding, but I wonder how can I have multiple bindings without coping all the .svc files for every bindings that I wha...

Windows Service Install

I have a WCF Host with an Installer. What I'd like to achieve is to be able to communicate with another WCF service already installed as Windows Service on some machine. Is this possible ? Maybe if I override the Install method of the installer? Is this recommended? Do you guys see another way of achieving this? ...

What is the difference between marking a wcf method with [OperationContract(IsOneWay = true)] attribute and checking the generate asynchronous operations checkbox when adding a service reference?

What is the difference between marking a wcf method with [OperationContract(IsOneWay = true)] attribute and checking the generate asynchronous operations checkbox when adding a service reference? From what I have read, it seems the asynchronic nature of the call should only be defined on the client side. If that's the case, what is ...

How do I configure WCF client to use XElement and not XmlDocument?

I have an ASMX webservice that returns XElement - (not an .svc WCF service) When consuming the service in Silverlight the client that is generated uses XElement as I want. However in C# .NET 3.5 WCF 'Service Reference' it generates this property using XmlDocument. In C# .NET 4 WCF 'Service Reference' it also generates this property us...

Read an XML file in a WCF service and return XML from the service

I need to read an XML file in my WCF service and return the same file as XML back from my WCF service in C#. Can someone point me to the right direction. Most samples out there seems outdated. ...

How do I start an out of process instance of a WCF service?

I would like to start a new instance of a wcf service host from another (UI) application. I need the service to be out of process because I want to make use of the entire 1.4GB memory limit for a 32bit .NET process. The obvious method is to use System.Diagnostics.Process.Start(processStartInfo) but I would like to find out whether it is...

View raw XML request

I am very new to WCF and SOAP messaging but I have managed to put together a reasonably good client which I am using to download news stories from a media organisation. I have generated proxy classes which obviously abstract a lot away and mean that I am basically just creating objects, calling methods and iterating through results. My ...

WCF and proxy server

Greetings, I am developing some application that uses web service from third party to authenticate. Some of the users uses proxy server and here comes the bad thing. In case when this server proxy is disabled, they can connect to the server and authenticate. In case when the proxy server they are using is enabled - authentication faile...

WCF service connection closing when trying load more records

I use WCF service to connect WPF front-end application with ERP back-end database. I get an WCF service error: "The connection was closed unexpectedly" in my WPF application when trying to load table with many records (about 1000). Everything is going fine on tables with 10 - 20 records. In my settings of the WCF service I have nothin...

WCF CustomBinding and Proxy

Greetings, how can I add proxy server to my custom binding in WCF? ...

How to sync complex domain objects structure between server and client

Are there any best practices for syncing hierarchical domain objects between client with modular structure (WPF,PRISM,MVVM) and server(WCF service and NHibernate for persistence in DB)? Already have DTO objects for transport and separate module for server requests with callback management infrastructure. Thanks in advance=) Alexey ...

Calling a webservice that uses ISO-8859-1 encoding from WCF

Hi, I am trying to call a webservice using WCF that uses the following encoding: <?xml version="1.0" encoding="ISO-8859-1" ?> I cannot change the encoding for this webservice. I have generated a wcf proxy and when I try and call the proxy, I get the following error: FailedSystem.ServiceModel.ProtocolException: The content type...

WCF XML Serialization & Overloading

In my WCF service I only want 1 endpoint (1 URI), however, I want this URI to be able to handle multiple types of requests. 5 different request types can be sent to this service from another company. Each request has a unique XML schemas. I created classes for each XML request to be serialized. Normally I would just overload a function ...

Share WCF settings between service and client

Can WCF sevice and client share the same settings (from the same config file) about bindings, etc.., whatever is in? In other words, can I write a single bindings section and put in anything and be sure that it is good for service and client? I'll explain better. I have a config file like this: <services> <service name="TestClass1"...

MEF + WCF Service Host?

I am just getting into MEF and I have come across a problem that I cannot resolve. I have a windows service that is reading in my DLLs (via MEF) and each DLL is a WCF Service Host. When I run my windows service and read in the DLLs everything runs fine, except that whenever one of the WCF DLLs get any "activity" then they reinstantiate a...

Poison Message Handling in WCF MSMQ 4.0

I am trying to handle the poison messages in WCF with MSMQ transport. I followed the below link for creating the original and poison services. http://msdn.microsoft.com/en-us/library/aa395218.aspx The only difference is instead of self hosting , I hosted the 2 servces in IIS with a single host project. The configuration of both the s...

Get Path of a Static XML file in C#?

How do I read get the full path of a static XML file I added to my C# WCF project? ...

Can AppDomainSetup.ConfigurationFile be loaded from database?

I'm working on a WCF host by using ServiceHost and dynamically creating several application domains to keep my services up. I'm also planning to keep my assemblies on database and load them by using Assembly.Load(byte[]) But now I stumbled on a problem: how to load my configuration file (aka *.dll.config) from database and pass it to my...

Access an XML file in /App_Data folder of my WCF service?

How do I access an XML file I added to /App_Data folder in my WCF Service? ...