Questions tagged [wcf-client]

For questions about Windows Communication Foundation (WCF) clients.

757 questions
0
votes
0 answers

Is CommunicationException always/almost always a service issue?

Receiving the following exception while communicating with a WCF service. CommunicationException: The underlying connection was closed: A connection that was expected to be kept alive was closed by the server. The error doesn't not occur with every…
Ryan Pedersen
  • 3,177
  • 27
  • 39
0
votes
2 answers

Write WCF output to document

Hi I have a WCF service which is working good. for testing purpose to QC the data i would like to seriliaze the data and write it to an xml document. how can this be done. please find the below code where im consuming the WCF service in a client…
Justin Russo
  • 339
  • 1
  • 8
  • 22
0
votes
1 answer

Port sharing in net tcp binding service

I have a site which uses nettcp binding service which is opened at port Number 808. Now I have created one more website which uses nettcp binding at port number 808 only.
user1400915
  • 1,933
  • 6
  • 29
  • 55
0
votes
0 answers

WCF callback generated interface

.NET Framework 3.5. On the server side I have an interface public interface IClientCallback { [OperationContract(IsOneWay = true)] void ReceiveBroadcast(string nickname, string message); [OperationContract(IsOneWay = true)] void…
OneMoreVladimir
  • 1,653
  • 3
  • 21
  • 32
0
votes
1 answer

How to authenticate client while consuming the WCF web service?

I want to authenticate a client while consuming a Web service. I see a property exposed in the Client called ClientCredential in which we can pass username and password. How can I pass this information to my WCF web service and how can i…
Ashish Ashu
  • 14,169
  • 37
  • 86
  • 117
0
votes
1 answer

WCF Service - What happens if a wcf client/channel isn't explicitly closed?

Say we have the following class in client app: public class TestClass { public void CallWCFService() { WCFClient svcClient = new WCFClient("endpointName"); var x = svcClient.GetFoo(); // no Close() or Abort() method…
IWriteApps
  • 973
  • 1
  • 13
  • 30
0
votes
1 answer

WCF proxy gets faulted only on usage

I am learning WCF and trying out different examples from things learned in the book. I have a simple service setup as follows: [ServiceContract] interface MyService { [OperationContract(IsOneWay = true)] void Throws(); } My client code is…
lysergic-acid
  • 19,570
  • 21
  • 109
  • 218
0
votes
1 answer

wcf service no config file when adding service reference

I have a wcf service that I tried to add using both svcutil and by adding service reference to the client test project. In both cases a new config file was not created and subsequently the client test will not run due to it not seeing the endpoints.…
vbNewbie
  • 3,291
  • 15
  • 71
  • 155
0
votes
1 answer

Which kind of VS project to use for WCF-Service hosted on internal Server

I need urgent help and have many questions. I will start by asking what kind of Ms-Vs project should i use (Wcf-Application or Wcf-library) to create a wcf-service, which will be hosted on a local server in my company and will be consumed by a…
Asmaa Edress
  • 153
  • 5
  • 14
0
votes
2 answers

WCF Client does not follow contract UriTemplates

I have defined a function in the ServiceContract of my WCF service as followed: [WebInvoke(Method = "GET", ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare, UriTemplate = "/test")] CommandResponse Test(); And on the…
Idan
  • 2,819
  • 4
  • 33
  • 61
0
votes
1 answer

.net 4.0 declarative workflow wcf: client reference

Techies-- I tried to use just the default basicHttpBinding with an increase for the maxReceivedMessageSize, but discovered I needed to increase the readQuotas--which I couldn't define without naming the binding.
plditallo
  • 701
  • 2
  • 13
  • 31
0
votes
3 answers

How can I create 'smarter' (ie typed checked/readonly properties) Client DataContract objects?

I'm quite stuck on one part of using WCF for a client/server messaging system, and would very much appreciate some help. On the server, I've got a Message DataContract object where one of the properties points to a typed collection of MessageBody…
Ciel
0
votes
1 answer

WPF application with multiple WCF clients

I have a WPF application using Prism. The application loads several modules. Each module connects to one or more WCF Service. The connection details are in the 'app.config' file of the Module library. My question is - how do I make the 'Shell'…
John Miner
  • 893
  • 1
  • 15
  • 32
0
votes
1 answer

consume WCF in asp.net error

I consumed wcf by adding service reference to my project then I changed the web.confing to be like that