calling a web service method in WCF layer

May 26 2010 11:19 AM
I am trying to implement a WCF layer, in which I must make a call to a web service (service1)

exactly, I must make a call to a method (consultationClient ())FROM this web service which should show the list of clients which corresponds to the identifier entered (in our case ID_CLIENT).

when I test this method in the web service , the consultation goes well, but when I'm calling this method in the WCF layer customer_id and I tapped the ID_CLIENT, it show me a list containing 10 clients with its ID_CLIENT = 0 and all other fields of the client are 0 or null according to their types,

Here is the code containing the method call consultationClient () in the layer WCF

public List ConsultationClientWCF (int ID_CLIENT)

Service1 service = new Service1 ();
ClientTopNet ClientTopNet CL = new ClientTopNet ();

List test = ser.ConsultationClient (CL.ID_CLIENT);
return test;


knowing that I am a beginner.

Please help me

Answers (1)