26.02.2015 Views

DOT NET Interview Questions - DotNetSpider

DOT NET Interview Questions - DotNetSpider

DOT NET Interview Questions - DotNetSpider

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Figure :- 4.9 Create WebService Project<br />

√<br />

By default the .<strong>NET</strong> editor has made a default webservice method called as<br />

"HelloWord" which returns a string datatype.Let's rename "Service.vb" to<br />

"Maths.vb" and "Service.asmx" to "Maths.asmx".Let’s replace the<br />

“HelloWorld” with following code below :-<br />

_<br />

Public Function AddTwoNumbers(ByVal Number1 As Integer, ByVal<br />

Number2 As Integer) As Integer<br />

Return Number1 + Number2<br />

79

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

Saved successfully!

Ooh no, something went wrong!