by kirupa |
11 August 2006In the
previous page you created your web service, but you
haven't done anything interesting besides modify some
existing attributes. We will actually add some code on this
page!
- Ok, I promise that things will get more
interesting from here onwards. At the very least, you
won't be doing trivial meta information work. First,
delete the entire section of code corresponding to
HelloWorld(). Next, copy and paste the following code
below the TopMovies() constructor:
- With the above code copied and pasted,
press Ctrl + F5 to test your Web Service. You will see
something similar to the following page:
http://www.kirupafx.com/WebService/TopMovies.asmx

[ what your browser displays when you
visit your TopMovies.asmx file ]
-
There you have it. You have now created
a web service. The WDSL URL is your ASMX
file followed by the ?WSDL parameter such as:
http://www.kirupafx.com/WebService/TopMovies.asmx?WSDL,
for some applications will use that URL to make the web
service call.
Onwards to the
next page.
|