Questions tagged [wcf-proxy]

30 questions
1
vote
3 answers

WCF proxy convert List to List>

In my WCF web method i have a operation contract which accepts List of string array, but when i create a proxy for this service it converts that to List of List of string. List to List>. Can anyone please tell me if there…
user1662008
  • 297
  • 1
  • 5
  • 17
1
vote
3 answers

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…
Simon_Weaver
  • 140,023
  • 84
  • 646
  • 689
1
vote
2 answers

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.…
Rich Blumer
  • 960
  • 1
  • 15
  • 26
1
vote
1 answer

How to check if a WCF service is available?

Can I use Proxy.Open() as an indication to whether the connection should work or not? I would like to check if a connection is available first, and then, if its not, i won't make any calls to the service during the run of the application. Note: I…
Uri Abramson
  • 6,005
  • 6
  • 40
  • 62
0
votes
1 answer

How to manually create wcf service fault exception?

I want to manually make the wcf service channel to enter to faulted state to test a singleton object. I tried many solutions like changing 1. consuming incorrect service host name, 2. Incorrect host ip, 3. reducing exeution time to trigger timeout…
Naveen
  • 5
  • 2
0
votes
0 answers

Large WCF proxy reference class slows down application startup

I try to speed up the startup time for running application with debugger. I noticed that it takes ~1.5min to create an object of a class, that's used as a proxy to WCF service. That class is inside reference.cs generated by using 'Add Service…
Tomasz Kaniewski
  • 1,065
  • 8
  • 16
0
votes
1 answer

WSDL Confusion -- what I'm seeing in my references isn't what I'm seeing in the wsdl file

I'm consuming this wsdl file, but I'm seeing different things in my c# reference file that that's created when I add a reference to it. For example, EncyrptionClient is nowhere to be found in the wsdl file, but it's present in the Reference.cs file.…
Yatrix
  • 13,361
  • 16
  • 48
  • 78
0
votes
2 answers

Share constants across each WCF call between Client and Server

A couple of integer constants are computed by WCF client before making the call to the WCF service. I would want these integer constants to be available on WCF service. Please note that I would not want them to be used as method arguments, because…
Sandy
  • 466
  • 6
  • 15
0
votes
1 answer

Choose between which type of WCF proxy generation path we should take?

I am new to WCF service. I am aware about three ways to generate proxies. Using Service reference Using SvcUtil Using ClientBase But I am confused in which case I should use which type. In my case I have to generate proxies for third party service…
Manjay_TBAG
  • 2,176
  • 3
  • 23
  • 43
0
votes
0 answers

Chaging dynamically Reference.cs of WCF Service

I am in the process of developing a WCF Service(WCFManager) which would send out request to other services and get response back. For this I developed a WCF service. Trying to accomplish the following (Assuming that my service name is…
Macnique
  • 1,028
  • 2
  • 19
  • 44
0
votes
1 answer

Sharing classes across different web services proxy classes

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…
nRk
  • 1,251
  • 7
  • 24
  • 50
0
votes
2 answers

Visual Studio WCF Client creates classes with missing properties, adds ExtensionData property instead

I have a WCFService that returns sundry types of Data in this kind of a way: [DataContract( Name="Amazing", NameSpace="http://schemas.myorganisation.com/DataContract1")] Public class AmazingDto { [DataMember( Order=0, IsRequired=true )] …
glenatron
  • 11,018
  • 13
  • 64
  • 112
0
votes
1 answer

WCF service as internal and internet exposed on different servers

I have to distribute several applications in 2 servers. Currently both servers have public IPs and they can be accesed across internet requests. Both servers are hosting several Web Applications. Now, I have to distribute those applications to have…
0
votes
1 answer

Is it a better approach to close and re-open the WCF proxy , when we are re-using it?

I am implementing an object pool for my WCF proxy. Once a proxy has been used, is it better if we close it down, kind of passivating it, so that its active connections are closed. When the proxy object is borrowed, we could re-open the…
Vivin joy
  • 97
  • 7
-1
votes
3 answers

Questions about WCF proxy sessions

You know how you add a service reference to your client and then it creates this nice proxy so you could invoke methods on server side? Something like this: MyServiceClient proxy = new MyServiceClient(); proxy.GetMessage(); I've got a couple of…
RiskX
  • 561
  • 6
  • 20
1
2