wcf-proxy

Handling WCF Proxy null return issue

I have a WCF Client Proxy connected to a third party webservice. The proxy works fine with nearly everything except on function. This function works just fine with a ASMX proxy. I have added service trace logging and can see the response from the service coming back. Only the proxy returns null. So now I know for sure that the proxy i...

What are the Pitfalls of using a shared static WCF Proxy Client?

I am considering using a Shared (read static) WCF proxy client for a high throughput application. I believe there is a performance gain in doing this, but I have not benchmarked this as yet. Are there some serious pitfalls to this idea? From my research I can see that there is the issue of handling the fault state, it is not clear wh...

Unity to dispose of object

Is there a way to make Unit dispose property-injected objects as part of the Teardown? The background is that I am working on an application that uses ASP.NET MVC 2, Unity and WCF. We have written our own MVC controller factory that uses unity to instantiate the controller and WCF proxies are injected using the [Dependency] attribute on...

Sharing classes across different web services proxy classes

Hi, I am writting wcf services in .net 3.5 framework with basicHttpBinding and hosting it in the IIS 6.0 ( windows 2003). I have 3 different services ( AuthenticationSerice, Dataserviceservice, ReportingService), there few classess which are shared among these service. My problem is When I am generating proxy classes for three wcf/web...

What is the proper life-cycle of a WCF service client proxy in Silverlight 3?

I'm finding mixed answers to my question out in the web. To elaborate on the question: Should I instantiate a service client proxy once per asynchronous invocation, or once per Silverlight app? Should I close the service client proxy explicitly (as I do in my ASP.NET MVC application calling WCF services synchronously)? I've found pl...

Windows Service Starts then Stops

I have a Windows Service that I inherited from a departed developer. The Windows Service is running just fine in the QA environment. When I install the service and run it locally, I receive this error: Service cannot be started. System.InvalidOperationException: The requested Performance Counter is not a custom counter, it has to be ini...

How bad is it if I don't close WCF/ASMX proxies?

So somebody (ok it was me) didn't realize you need to close WCF proxies after using them. How bad is this? What kind of problems can it cause. Is there just a delay in closing resources because of garbage collection - or should I really worry about things like premature app pool recycling? I actually have far more ASMX than WCF proxi...

How to prevent 'Specified' properties being generated in WCF clients?

I have two .NET 3.5 WCF services build with VS2008. I have two WCF clients in Silverlight to consume these services. The clients are generated with the 'Add Service Reference'. I am using Silverlight 4. ONE of the proxies is generated with Specified properties for each property. This is a 'message-in' class for my service method : ...

WCF <operation>Async methods not generated in proxy interface

I want to use the <operation>Asnyc methods rather than the Begin<operation>/End<operation> on my WCF service client proxy because I'm updating WPF controls and need to make sure they're being updated from the UI thread. I could use the Dispatcher class to queue items for the UI thread but that's not what I'm asking about.. I've configur...

migrating webclient to WCF; WCF client serializes parametername of method

I'm struggling with migrating from webservice/webclient architecture to WCF architecture. The object are very complex, with lots of nested xsd's and different namespaces. Proxy classes are generated by adding a Web Reference to an original wsdl with 30+ webmethods and using xsd.exe for generating the missing SOAPFault objects. My pilot W...