Questions tagged [wcfserviceclient]

84 questions
0
votes
2 answers

Is it imperative to explicitly close the client?

I've seen a pre-existing code that uses automatically generated client for accessing a WCF. The original version, as suggested on the auto-generated page is as follows. public int GetNumber() { ServiceClient client = new ServiceClient(); int…
Konrad Viltersten
  • 36,151
  • 76
  • 250
  • 438
0
votes
1 answer

How to Write a WCF service method which should accept the logs as a collection in C#?

How to Write a WCF service method which should accept the logs as a collection in C# ? My WCF service should accept the collection of log messages and then we have to insert into the DB. Thanks !!!
0
votes
1 answer

How connect windows phone 8 app to wcf server

my wcf server is working, calculator app in the windows phone working. But i dont know how i connect calculate app to wcf server. i only add service referance as it's name Hesap WCF SERVER CODES IMatemetik.cs using System; using…
0
votes
1 answer

Unity resolves WCFServiceClient and closing the WCFServiceclient

We are using unity to resolve the WCFService and the good practice of WCF says close the client once done. But if we are using unity when and how to close WCFServiceClient?
Miral
  • 5,968
  • 16
  • 57
  • 85
0
votes
1 answer

creating a wcf client assistance

I am currently developing a WCF client to interaction with a set of WCF service references. I am developing in c#. I don't want to following the approach of having to generate a service reference using svc util or manually adding a service reference…
amateur
  • 43,371
  • 65
  • 192
  • 320
0
votes
2 answers

WCF solution needed for a service class

I have a class raises some events and do operations. Eg class MyService { EventHandler MessageSent; EventHandler StatusReceived; public void StartService(Serviceconfig configObject) { //Intialize serial port with…
Sudhakar B
  • 1,465
  • 9
  • 16
-1
votes
1 answer

WCF test Client working on my ip but do not work on the other ip

I have created WCF test client, and it's working on my IP. however, when I tried to test it on the guest's IP it was not working. See an error message below: Failed to invoke the service. Possible causes: The service is offline or inaccessible;…
-1
votes
2 answers

Calling a method in C#

I have problem to call a method in a WCFService. I downladed the file below for a project and I want to call a method in SampleHttpResquestAndResponse class in my WCFService (Also, I tried to do it in a main method and i couldn't succeed it either).…
-2
votes
2 answers

'System.NullReferenceException' occurred in databaseService.dll in wcf service

I made a WCF service and hosted in windows forms application and made a client win from application to consume that I service retrieves data from database and shows to the client by entering ID. How can I solve it? I have seen many null references…
waqar haider
  • 75
  • 10
1 2 3 4 5
6