For questions about Windows Communication Foundation (WCF) clients.
Questions tagged [wcf-client]
757 questions
6
votes
4 answers
Intercept messages in a WCF Client
Has anyone got any experience with Web Service Extensions? I spent time trying to make a web service extension from the MS examples.
I have an .net 3.5 web service client, built by adding a reference to the WSDL, via the VS IDE "Project > Add…
bob
6
votes
1 answer
Getting a PipeException (pipe is closing) with a WCF service that uses NamedPipesBinding
I am just learning WCF, trying out different things.
I have set up the following service:
[ServiceBehavior(IncludeExceptionDetailInFaults = true ,
InstanceContextMode = InstanceContextMode.Single)]
public class TestService : ITestService
…

lysergic-acid
- 19,570
- 21
- 109
- 218
6
votes
4 answers
Two WCF services with different contracts but same business objects
For example I have two services hosted in IIS.
[ServiceContract]
public interface IDeviceService
{
[OperationContract]
DeviceCollection GetAllDevices(Customer customer);
}
[ServiceContract]
public interface IUserService
{
…

Simian
- 801
- 1
- 12
- 20
6
votes
1 answer
Ignore certain WCF services from WCF trace logs
The application I am building exposes several WCF services (A, B). Internally, it consumes several other WCF services running on our internal network (X, Y).
Using WCF message logging, I wish to only log traffic between our services A, B and the…

geoffreys
- 1,107
- 7
- 24
6
votes
1 answer
Cannot access a disposed object - wcf client
I have a WCF client that I'm having problems with.
From time to time I am getting this exception: Cannot access a disposed object. This is how I am opening the connection:
private static LeverateCrmServiceClient crm = null;
public static…

SexyMF
- 10,657
- 33
- 102
- 206
5
votes
2 answers
Consuming non-wcf SOAP fault from WCF client (soap fault defined)
I have a non-wcf server that I call from WCF client and I need to gain access to registered soap fault in case server throws it (it contains a feedback I need for user). I used the example from How to access SOAP 1.1 fault detail from WCF client (no…

mmix
- 6,057
- 3
- 39
- 65
5
votes
1 answer
Separating as a client the server's transport and message signature certificates with WCF
I am currently in the process of integrating a WCF client into a java web service. The server requires the client to authenticate via certificate using SSL and the message to be signed.
I have successfully sent the message to the server through…

kripto_ash
- 919
- 7
- 14
5
votes
3 answers
How to consume multiple WCF services from one client
I am still learning the whole WCF thing, so please bear with me here.
What I have is two self hosted services created using C# and VS 2008:
Service # 1 Adds two numbers and returns the result.
Service # 2 Returns the square of a number.
I want the…

Mostlyharmless
- 2,285
- 19
- 28
5
votes
1 answer
Streaming Image files using Wcf
I want to send a large image to server through Wcf.I may pass it as a byte[].How can i do that.What is MTOM...where can i find a sample...?
biju
5
votes
1 answer
How to POST a POCO with WCF WebApi's HttpClient
I'm using the WCF WebApi stack (Preview 4) via NuGet (pkg version 0.3.0) and cannot seem to figure out how to "POST a POCO" using HttpClient.
Given the following:
Public Class MyInfo
Public Property MyDate As DateTime
Public Property MyId As…

ckittel
- 6,478
- 3
- 41
- 71
5
votes
3 answers
WCF Test Client error: Failed to Invoke the service
I'm getting an error when trying to use the WCF Test Client with my WCF service. Here is the service code:
[ServiceContract]
public interface IEmployeeService
{
[OperationContract(Name = "GetEmployee")]
[WebGet(RequestFormat =…

Kevin Babcock
- 10,187
- 19
- 69
- 89
5
votes
1 answer
Loading the WCF configuration from different files on the client side
A common problem in WCF that many people face is the impossibility of loading the client configuration from different configuration files.
This is a common scenario when the developer wants to deploy some binaries with along with an independent…

Kiquenet
- 14,494
- 35
- 148
- 243
5
votes
0 answers
Consuming WCF Service (nettcp) from Asp.net core using WCF client library
We have a WCF service hosted as nettcp mode and WCF client library, both services and client has been created using .net framework.
Now we are creating new application using Asp.net core 2.1, still here we need to consume the above created WCF…

Jagankumar
- 121
- 1
- 5
5
votes
3 answers
Converting type from a WCF service
I'm sure this must be a pretty common problem. I have two WCF services, that basically expose standard access and admin access to one larger service.
There is a similar method Foo on each service. Foo takes an argument of type TemplateInfo which is…

earthling
- 5,084
- 9
- 46
- 90
5
votes
1 answer
WCF Getting "An error occurred while receiving the HTTP response to.." on random call
I am receiving randomly (Not always) "An error occurred while receiving the HTTP response to.." when calling SOAP API from client. It does not happen every time. My application itself is a WCF service.
Client Config:

FaizanHussainRabbani
- 3,256
- 3
- 26
- 46