Creating a Web Service - Page 4
       by kirupa  |  11 August 2006

In 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!

  1. 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:

  1. 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 ]

  1. 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.

1 | 2 | 3 | 4 | 5




SUPPORTERS:

kirupa.com's fast and reliable hosting provided by Media Temple.