Click here to Skip to main content
15,897,371 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In my previous interview , interviewer asked me about consuming web service , i told him as below


1. Right click on website / web application
2. click on Add service reference
3. Put the address where service is hosted e.g. http://..../service.aspmx
4. once found click on ok
5. in the .cs file i have created proxy class instance & using that instance i have consume web methode written into the webservice


once i told this , interviewer asked me what type of object it is? client side or server side(or client side class proxy object or server side class proxy object)
Posted

1 solution

SERVER SIDE.

When you create simple web service then it is server side object but you can get it client side with full path of web service.

When you want use client side then you can create Ajax enabled web service like this example

Access Server Side (webservice) from JavaScript in Master Page[^]

AJAX for Beginners (Part 3) - Calling Server Side Methods and Consuming Web Services from JavaScript in an ASP.NET website[^]

Using JSON with ASP.NET 3.5[^]
 
Share this answer
 

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