Click here to Skip to main content
15,881,600 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Silverlight Tutorial: Creating a data centric web app with DataGrid, LINQ, and WCF Web Service[^]


At this Article What is DemoServiceClient i dont know

private void OnSubmitBtnClick(object sender, RoutedEventArgs e)<br />
{<br />
    DemoServiceClient webService = new DemoServiceClient();<br />
<br />
    webService.InsertDataAsync(TestItem1TxtBox.Text, TestItem2TxtBox.Text);<br />
}




Please help me.
Posted
Updated 7-Jul-10 2:59am
v2

That appears to be the proxy to the webservice. However post this question in the article and the author might be able to guide you further.
 
Share this answer
 
That is the Web Service Proxy reference Class for Communicating the WebServer :)
 
Share this answer
 
Hi,

DemoServiceClient is the proxy generated by the Visual Studio IDE when you are adding the service reference.

Suppose, you have a WCF service named "MyService" and you added the service reference to your project, it will generate the proxy class in that project to give you easy access to the service contract.

You can then call the methods inside the class i.e. the service call by using this:

DemoServiceClient webService = new DemoServiceClient();<br />
...<br />
...<br />
webService.InsertDataAsync(TestItem1TxtBox.Text, TestItem2TxtBox.Text); // assume this is the service call
 
Share this answer
 
v2
Comments
Member 1227638 18-Oct-10 18:55pm    
is there any namespace that we need to use ? because DemoServiceClient thing is not intellisensed by the compiler.
Kunal Chowdhury «IN» 18-Oct-10 21:23pm    
You have to specify the full namespace of your client. So, first check what is the namespace for your client class. Check using the object browser.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900