Hi,
In current large scale enterprise silverlight application I have service code as follows:
Code: Select all
UsersService.UsersClient objUserService =
new MyApp.UsersService.UsersClient("CustomBinding_Users");
objUserService.GetUserAuthenticationCompleted +=
new EventHandler<MyApp.UsersService.GetUserAuthenticationCompletedEventArgs>(objIntuitiveEMRService_GetUserAuthenticationCompleted);
objUserService.GetUserAuthenticationAsync(txtUserName.Text, txtPassword.Password, ((App)Application.Current).ClientID);
Now in CSHTML syntax to call web service is as follows:
Code: Select all
ServiceReference1.Service1Client _soapClient =
new ServiceReference1.Service1Client(
new System.ServiceModel.BasicHttpBinding(),
new System.ServiceModel.EndpointAddress(
new Uri("http://localhost:4598/Service1.svc")));
The
ServiceNameCompleted event is not available,
If I change the syntax then changes needs to be done in lots of files,
Please provide support to call the wcf web service without affecting the existing syntax?