For questions about Windows Communication Foundation (WCF) clients.
Questions tagged [wcf-client]
757 questions
11
votes
3 answers
Configure WCF service client with certificate authentication programmatically
How do i setup a ServiceClient using Certificate authentication programmatically in c#?
And i don't want to use .config.
using(var srv = GetServiceInstance())
{
srv.DoStuff()
}
private TheServiceClient…

espvar
- 1,045
- 5
- 16
- 28
11
votes
1 answer
How do I pass value to List property while testing my WCF service?
I am testing a WCF service method which accepts a DC type parameter, some of my DC properties are of type List. How do i pass values to that, I tried strings in "", did not accept, Please refer the attached screenshot.
AdjReason in the attached…

KeenUser
- 5,305
- 14
- 41
- 62
11
votes
0 answers
The request was aborted: Could not create SSL/TLS secure channel - Decrypt returned SEC_I_RENEGOTIATE
Our application consumes a web service in C# (.Net framework 3.5). Getting the correct response from the server most of the time, but it is intermittently throwing an error:
The request was aborted: Could not create SSL/TLS secure channel.
Having…

user1124965
- 111
- 1
- 3
11
votes
3 answers
WCF client-side error-handling
I'm consuming a clunky WCF server that occasionally throws various exceptions, and additionally returns some of its errors as string. I have no access to the server code at all.
I want to override the inner WCF-client request invocation method and…

Shimmy Weitzhandler
- 101,809
- 122
- 424
- 632
11
votes
1 answer
Consuming Java Webservice with Date and Time elements in WCF
I need to consume a Java Webservice which has elements of type Date and Time.
Example from the wsdl:
...
...
When consuming the…

Thomas
- 2,137
- 1
- 17
- 38
11
votes
3 answers
Create WCF client programmatically
I have a website with a Silverlight-enabled WCF service. The service works fine, and I can browse to the WSDL page in the browser with no problems.
Now, I am trying to create a client in a DLL. I need to create the whole client programmatically…

eidylon
- 7,068
- 20
- 75
- 118
11
votes
2 answers
WCF Client ignores timeout values when service down
I have a VB .NET application that uses WCF. I've set the client timeouts for everything in code:
Dim oMastSrv As MastSvc.IclsIOXferClient = Nothing
Dim binding As New ServiceModel.NetTcpBinding("NetTcpBinding_IclsIOXfer")
Dim intTimeout…

MarkFisher
- 516
- 4
- 15
11
votes
2 answers
WCF Client Configuration: how can I check if endpoint is in config file, and fallback to code if not?
Looking to make a Client that sends serialized Message objects back to a server via WCF.
To make things easy for the end-developer (different departments) would be best that they didn't need to know how to edit their config file to set up the client…
Ciel
10
votes
3 answers
Problem with generating WebService proxy using svcutil
In our application we are forced to consume several WebServices. In the beginning we used just the "Add Service Reference" menu option, in order to create a WCF proxy.
The wizard didn't generate a DataContract, but much rather an XML-Serializable…

Daniel Fabian
- 3,828
- 2
- 19
- 28
10
votes
2 answers
WCF TCP clients - basic guidelines on how to use them?
I've got a WCF service and want to connect to it using a TCP binding. This is all well and good, but how are you supposed to handle the clients? I've noticed that if you create a new client for each call it doesn't re-use the channel and leaves…

RandomEngy
- 14,931
- 5
- 70
- 113
10
votes
3 answers
A socket operation was attempted to an unreachable host
One customer reported this error at my WCF client connecting to our server service.
"Message: A socket operation was attempted to an unreachable host
Type : System.Net.Sockets.SocketException"
From this link…

Adrya
- 3,427
- 8
- 31
- 29
10
votes
2 answers
Why is my WCF Service not loading my Binding config?
I have the problem with the following error: "The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element."
So I did some research…

MisterIsaak
- 3,882
- 6
- 32
- 55
10
votes
2 answers
WCF timeout client vs server
Can anyone explain to me what is the difference between the timeout configuration on the server vesus on the client ? For example, what would happen if a client sets the sendTimeout to 5 minutes while the configuration on the server has it set for 1…

Patrice Cote
- 3,572
- 12
- 43
- 72
10
votes
1 answer
There was no endpoint listening at that could accept the message. This is often caused by an incorrect address or SOAP action
I have two WCF clients consuming a 3rd party web service.
These two clients execute the same method call. In the one case it works every time, in the other I get the "There was no endpoint listening ..." message.
As far as I can tell, the only…

Peter
- 1,292
- 4
- 15
- 33