Questions tagged [wcf-proxy]
30 questions
                    
                    29
                    
            votes
                
                2 answers
            
        Silverlight 4.0 and WCF client proxy - how to create and how to close instances
Topic of Silverlight WCF service proxy lifecycle is not very clear to me. I have read various materials, resources, answers here, but still I don't completely understand the supposed best way to use them.
I am using  custom binary binding in…
         
    
    
        Valentin Kuzub
        
- 11,703
- 7
- 56
- 93
                    10
                    
            votes
                
                5 answers
            
        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…
         
    
    
        Simon_Weaver
        
- 140,023
- 84
- 646
- 689
                    8
                    
            votes
                
                3 answers
            
        Unity to dispose of object
Is there a way to make Unity 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…
         
    
    
        Johan Levin
        
- 830
- 1
- 9
- 26
                    6
                    
            votes
                
                1 answer
            
        Why does WCF generated proxy wrap contract interface methods with new methods with different signatures?
I'm subcsribing to the SQL Server 2008 SSRS web service ( .../reportserver/ReportService2005.asmx?wsdl) using WCF, with default WCF config options as far as I can tell.
It does something weird when it generates the local proxy classes though.
I'll…
         
    
    
        codeulike
        
- 22,514
- 29
- 120
- 167
                    6
                    
            votes
                
                3 answers
            
        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…
         
    
    
        Trinition
        
- 1,153
- 2
- 15
- 25
                    4
                    
            votes
                
                1 answer
            
        WCF Proxy fails following call to external API
I have a Web API controller method that calls an external REST API service using the HttpClient. The results of the external REST call are then passed to a WCF Service via a call to its proxy.
If I call the WCF proxy first and then call the external…
         
    
    
        Andrew Bromfield
        
- 103
- 6
                    3
                    
            votes
                
                2 answers
            
        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…
         
    
    
        Andrew Harry
        
- 13,773
- 18
- 67
- 102
                    3
                    
            votes
                
                1 answer
            
        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…
         
    
    
        Andrew Harry
        
- 13,773
- 18
- 67
- 102
                    2
                    
            votes
                
                1 answer
            
        How do I get WCF to generate a list of proxies?
How do I get WCF to generate a list or IEnumerable of proxies to the actual object?  I'm doing this in a self-hosted application.
Here's what I have:
public interface IRemoteControlGroup {
     List GetInstances();
}
public class… 
         
    
    
        user314104
        
- 1,528
- 14
- 31
                    2
                    
            votes
                
                3 answers
            
        Invoking WCF service methods without having a proxy
Is there anyway I can invoke a WCF service without adding service reference or even having a proxy at all.
         
    
    
        VJAI
        
- 32,167
- 23
- 102
- 164
                    2
                    
            votes
                
                2 answers
            
        WCF - Can I generate one proxy from two separate interfaces
I have two separate interfaces and two separate endpoints (.svc files) defined in a single WCF project. These interfaces share common objects in the project. Is there a way to create a single proxy that combines both interfaces and all the objects,…
         
    
    
        laconicdev
        
- 6,360
- 11
- 63
- 89
                    1
                    
            vote
                
                3 answers
            
        Unable to trap custom exception in WCF client
I know this question has been asked on a number of occassions (believe me I know I have went through almost every one of the posts). However, I still can't get it to work...
I have the following simple service:
[ServiceContract]
public interface…
         
    
    
        James
        
- 80,725
- 18
- 167
- 237
                    1
                    
            vote
                
                2 answers
            
        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…
         
    
    
        Wouter
        
- 11
- 3
                    1
                    
            vote
                
                0 answers
            
        Speed up WCF client instantiation?
Suppose my WCF client interface is called ISDK, and the client object itself is called ISDKClient, as generated by svcutil.
When I instantiate a WCF client like this:
Dim myClient As New ISDKClient
it takes around 1.5sec to create the first client,…
         
    
    
        Victor Zakharov
        
- 25,801
- 18
- 85
- 151
                    1
                    
            vote
                
                2 answers
            
        WCF Async methods not generated in proxy interface 
        I want to use the Asnyc methods rather than the Begin/End 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…   
         
    
    
        Charlie
        
- 10,227
- 10
- 51
- 92