I have included a web service in my project.It works fine.Then to Test it i made a client.It also works fine and i have added reference successfully.Now the issue is that client passes a value.How to send that value to my application.
My wcf service code
public class MvcService : IMvcService { public void DoWork() { } #region IMvcService Members public User GetName(string name) { User tUser = new User(); tUser.NAME = name; // return View(tUser); return tUser; } #endregion }
Now My client code is as follows..
public class Default1Controller : Controller { // // GET: /Default1/ public ActionResult Index() { MvcService.MvcServiceClient tMvcServiceClient = new MvcServiceClient(); MvcService.User tUser=new MvcService.User(); tUser.NAME="alpa"; tMvcServiceClient.GetName(tUser.NAME); return View();--------------->What should be written over here so that it comes to my application } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)