3
Answers

How to access web service in windows application

Manas Sahoo

Manas Sahoo

7y
211
1
Hi all,
 
   I have a webservice. To open this web service I need to provide username and password.
   I want to use the same webservice in my windows application but it giving error.
   i.e.
The HTML document does not contain Web service discovery information.
Metadata contains a reference that cannot be resolve 
 
 
 
how to use the webservice in my application is there any way or coding to ahive this type of password protected webservice or any seeting needed in iis.
 
 
Answers (3)
0
Mahesh Bodepudi

Mahesh Bodepudi

NA 90 14.3k 9y
As of now in Controller's Action method I am using the code below to set no of records per page
 
return View(viewModel.ToList().ToPagedList(page ?? 1, 50)); 
0
Manas Mohapatra

Manas Mohapatra

NA 29.3k 3.3m 9y
How you are getting data from Controller's action: AJAX or direct call to action.
 
Provide some code snippet.