Sunday, August 18, 2013

Way to call a webservice

make an asp.net webservice   and write functions(eg:  sum(int a,int b) ) in it.

then run the project,,copy url in browser .

then create a new asp.net website...add webreference and copy paste the URL which was copied.

give a name(eg: webnew) to webservice..

then make an object of webservice such that....eg:  webnew.Service obj=new webnew.Service();


call function when necessary   such that....eg:   obj.sum();

No comments:

Post a Comment