26.02.2015 Views

DOT NET Interview Questions - DotNetSpider

DOT NET Interview Questions - DotNetSpider

DOT NET Interview Questions - DotNetSpider

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Figure :- 4.8 Create Web project menu in VS2005<br />

(B)Which attribute is used in order that the method can be used as<br />

WebService ?<br />

WebMethod attribute has to be specified in order that the method and property can be<br />

treated as WebService.<br />

(A) What are the steps to create a webservice and consume it ?<br />

Note :- For this question this book will make a attempt by creating a simple webservice and<br />

explaining steps to acheive it.A simple webservice will be created which takes two number<br />

and gives addition result of the two number.In CD sample webservice project with folder<br />

name “MathsWebService” is provided and same will be explained below. Definitely the<br />

77

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!