wcf

RIA Services and multiple/dynamic "Include" strategies

As an example, assume the following simple model: public class Order { public List<LineItem> LineItems { get; set; } public List<Fee> Fees { get; set; } } public class LineItem { } public class Fee { } With RIA Services, if I want to retrieve an Order and include all of it's line items in the same network call, I can statical...

How to make a dynamic javame wcf web service client?

I'm new on this. And can't find the solution in google. Anybody care to help me out? :) I think it's also called dynamic proxy client ...

WCF Streaming not working at server

hi, i have used WCF service to transfer large files in chunks to the server for that i have reference this article http://kjellsj.blogspot.com/2007/02/wcf-streaming-upload-files-over-http.html i have configured my application on IIS on my machine. its work fine here. it allows upto 64mb file upload but when we have published the site. i...

WCF identity when moving from dev to prod. environment

I have a web service developed with WCF. In the development environment the endpoint has the following identity section under the endpoint configuration. <identity> <dns value="myservice.devdomain.local" /> </identity> myservice.devdomain.local is the dns name used to reach the development version of the service. The binding used...

What is the correct way to implement GetProperty<T> on a MessageEncoder?

The GetProperty<T> method is something of a mystery for me, especially when it comes to overriding the behaviour for MessageEncoder implementations. Are there any guidelines to the expected behaviour for this method? ...

'normal' SVC versus 'Silverlight' SVC (WCF)

Hi, i'm trying to call a WCF service from my Silverlight 3 app. But... when trying to create a 'silverlight enabled wcf service' in my web project, my VS2008 crashes during creating the item (i think while editing the web.config). So i thought: let's create a 'normal' wcf service, and manually edit it to be a 'silverlight enabled webse...

[Silverlight] DataGrid

I'm making tutorials. Silverlight + MSSQL And I'm on the last step when it says "Copy-paste my code and tada it will works"... :-/ But after I added System.Windows.Controls.Data reference it still can't find Error 3 The type or namespace name 'Data' does not exist in the namespace 'System.Windows.Controls' (are you missing an as...

Should I re-write all my ASP.NET web-services as WCF?

Is there really an added benefit that worth the bother of spending time converting existing asmx web-services to WCF? (I have about 10 web-services in the project) ...

How to get all methods from WCF service?

How to get list of all methods from WCF silverlight enabled service from code. I already have added service reference to Silverlight application. Can I get all methods using Reflection? If can please provide me example. ...

Wcf inhereted models

[DataContract] Base { [DataMember] public int Id {get;set;} } [DataContract] A : Base { [DataMember] public string Value {get;set;} } [ServiceContract] interface IService { [OperationContract] void SetValue (Base base); } is there a way to use the service like the following style: new Service ().SetValu...

StateServer not allowing WCF returned type to be stored in session variable

Hello, I'm making a call to one of our internal WCF services from within a 1.1 web application and returning a type which I then store in session. The returned type contains data for the page and when the page renders I get the following message: "Unable to serialize the session state. Please note that non-seriWializable objects or M...

How to specify the <useRequestHeadersForMetadataAddress/> behavior with attribute in WCF?

I have a .NET WCF Rest endpoint configured through attributes (instead of using the web.config). I would like to achieve the <useRequestHeadersForMetadataAddress/> behavior with attributes. Any idea how to do that? ...

How to disable reliable session in netNamedPipeBinding in WCF?

How do I disable reliable sessions in a named pipe binding? ...

Adding description to WCF web service that appears in WSDL.

Hi, should it be possible to tag DataContracts, DataMembers, ServiceContracts and OperationContracts with a Description attribute, (System.ComponentModel.DescriptionAttribute) so that those descriptions appear in the WSDL to aid the developer or so an automatic documentation generation tool like TechWriter can use them in the documentati...

Sanitizing incoming XML via WCF

I am consuming a Java webservice from .net using WCF. I am getting an error on deserialization of a response from the Java service The byte 0x00 is not valid at this location. Line 1, position 725. I know from some research that this is an incorrectly encoded null, but I am unlikely to get the provider to change it, so I would like...

How do I cache WCF REST web service in IIS7?

When I turn on output caching for my service it doesn't appear to be cache-worthy in IIS. It really should be since I'm returning the same JSON content over and over. The varyByQueryString option seems like it would do the trick, but since my resources are URI based, there really isn't a query string, just a path to a resource. Has an...

Problems with WCF endpoints hosted from Windows Service

I have a managed Windows Service that hosts a couple of WCF endpoints. The service is set to start automatically when the PC is restarted. On reboot I find that this line of code: ServiceHost wcfHost1 = new ServiceHost(typeof(WCFHost1)); in the OnStart() method of the service takes somewhere between 15 - 20 seconds to execute. Actu...

Passing Custom headers from .Net 1.1 client to a WCF service

I have a simple wcf service which uses basicHttp binding, I want to pass few information from client to this service via custom SOAP header. My client is a .net application targetting .Net 1.1, using visual studio I have created the proxy( Added a new web reference pointing to my WCF service) I am able to call methods in the WCF service ...

WCF and streaming requests and responses

Is it correct that in WCF, I cannot have a service write to a stream that is received by the client? Streaming is supported in WCF for requests, responses, or both. I would like to support a scenario where the data generator (either the client in case of streamed request, or the server in case of streamed response) can Write on the st...

Security errror while accessing WCF Service thru flex application

There is flex app accessing dot net web service (WCF) . Both are hosted in the same machine(Server). The web service wsdl is accessible via browser. Tried accessing the service thru dot net application it works perfect , but when I try accessing the service using the flex applicationI get a error . (FaultEvent fault=[RPC Fault faultS...