For questions about Windows Communication Foundation (WCF) clients.
Questions tagged [wcf-client]
757 questions
9
votes
1 answer
WCF Client - Specifying the signature algorithm for WS-Security Timestamp signature
I have a WCF client that is sending a message to a non-WCF service and that service is having problems handling the HMAC-SHA1 signature method used to sign the WS-Security Timestamp element. Ideally, we'd like to use the RSA-SHA1 signature method…

BearsEars
- 849
- 1
- 13
- 21
9
votes
3 answers
How to set that the WCF Test Client will run every time the service is running
I have a WCF project and when I run it sometimes it lunch the WCF Test and sometimes it does not.
How can I set the WCF Test Client to always be displayed ?

Erez
- 6,405
- 14
- 70
- 124
9
votes
2 answers
Do I need to expose a constructor in a WCF DataContract for it to work during object instantiation on the client?
I have a class in a WCF service, lets call it A. A is a data contract, which contains as one of its DataMembers a collection of another custom object B. To avoid Null Reference problems on the client side, I instantiate the BList in the constructor…

Tushar S
- 352
- 1
- 6
- 15
9
votes
1 answer
How can I consume a WCF service using a local WSDL file?
I need to consume a WCF service based on a (preferably single) wsdl file.
The environment is VS-2008 (sp1), and I will be using a customized "Add Service Reference" macro to generate an error handling proxy. I want to be able to do this, by…

Assaf Stone
- 6,309
- 1
- 34
- 43
9
votes
1 answer
How can I prevent an out-parameter to end up return parameter in a WCF web service?
If my contract looks as follows:
[OperationContract]
void DoSomething(int id, out string moreInfo);
this ends up looking like:
string DoSomething(int id);
when you import a web service reference. Is it possible to influence the auto-conversion of…

Abel
- 56,041
- 24
- 146
- 247
8
votes
2 answers
How to get raw XML in WCF Client from Web Service call
I have a WCF Client (console app) that calls a WCF web service and I'm trying to get the raw XML response from within my Console Application.
Does anyone have an idea or code snippet on how to do this?

Kevin Jensen
- 1,418
- 3
- 18
- 25
8
votes
3 answers
How can I set the maxItemsInObjectGraph property programmatically from a Silverlight Application?
I have a Silverlight 3.0 application that is using a WCF service to communicate with the database, and when I have large amounts of data being returned from the service methods I get Service Not Found errors. I am fairly confident that the solution…

Corey Sunwold
- 10,194
- 6
- 51
- 55
8
votes
1 answer
WCF Service Client Lifetime
I have a WPF appliction that uses WCF services to make calls to the server.
I use this property in my code to access the service
private static IProjectWcfService ProjectService
{
get
{
_projectServiceFactory = new…

Burt
- 7,680
- 18
- 71
- 127
8
votes
5 answers
How can I specify an alternate config file for a WCF client?
I am working on a large system, for which I have to use WCF to access a web service. My test code works fine, now I need to integrate my WCF client code into the larger system. I cannot add to the existing 'app.config' file, and would like specify…

Jay
- 10,200
- 4
- 28
- 36
8
votes
1 answer
ChannelFactory bug with dynamic arguments
This question is related to Bug in the dynamic language runtime in combination with IIS 7.5
ChannelFactory hangs if I provide it with a correctly typed dynamic object.
dynamic src = "MSFT";
var binding = new BasicHttpBinding();
var endpoint = new…

Juliano
- 2,402
- 1
- 20
- 22
8
votes
1 answer
Can a ChannelFactory become Faulted?
Let's say i'm caching a ChannelFactory and using it to create channels. These channels are used to make WCF calls to other services, and are then being (safely) disposed.
Do I need to worry about a situation where the cached ChannelFactory…

rony l
- 5,798
- 5
- 35
- 56
8
votes
1 answer
How to achieve Asp.net MVC OneWay/FireAndForget call like WCF does?
In WCF you have something like this
[ServiceContract]
public interface IDoAuditService
{
[OperationContract(IsOneWay = true)]
[WebInvoke]
void Audit(AuditEntry auditEntry);
}
Which as a result will allow the consumers to issue a…

ruslander
- 3,815
- 4
- 32
- 34
7
votes
2 answers
WCF Proxy Client taking time to create, any cache or singleton solution for it
we have more than dozon of wcf services and being called using TCP binding. There are a lots of calls to same wcf service at various places in code.
AdminServiceClient client = FactoryS.AdminServiceClient();// it takes significant time. and…

Techmaster
- 1,032
- 2
- 12
- 26
7
votes
3 answers
The maximum array length quota (16384) has been exceeded while reading XML data
I am getting following error
The maximum array length quota (16384) has been exceeded while reading XML data. This quota may be increased by changing the MaxArrayLength property on the XmlDictionaryReaderQuotas object used when creating the XML…

SHAJI P.D.
- 115
- 1
- 1
- 6
7
votes
2 answers
Is there an execution timeout for WCF operations marked as OneWay?
Does the OneWay operations in WCF service execute as long as the operation is complete?
By my experiment, I think there is no timeout. I was able to run an operation for half an hour. (I closed after that)
Can someone experienced in WCF answer this?…

Sandeep
- 756
- 1
- 6
- 10