• Web Services So Easy as 1-2-3

    You must be wondering what a Web Service is all about. Well hear this, it is so easy to use than you can ever imagine. And it makes the business transactions go as smoothly as possible.

    As a matter of fact Web Service is one of the many features that makes it different from its competition for example PHP and JSP and other technologies in the market. It has just overshadowed other technology with this service.

     

    If you want to learn about web design in easier way so click here.

     

    Now, what is web service after all? Well it allows consumers to interact with the producers and get information and data from them. For example you want to find out about the weather forecast of some place so what you do? Just enter the city and the web service will get back to you with the related information. Similarly you want to know about exchange rates for currencies, so again just enter the currency and it will get back to your with the exchange rate. No hassle whatsoever.

    Remember, Web Services come with the extension as .asmx. An .asmx file is a text file that is similar to an .aspx file.

    While working with web service, XML also plays a very important part. Now what is XML? Well, I knew you are going to ask about it. It is a data in pure text form. Users can create their own tags and make data easily readable. It is case-sensitive unlike HTML. It is not a replacement of HTML. And it is read and easily rendered in all the web

    Designer.

    .

     

    If you want learn more about PHP course in jaipur so 

    Coming back to web service, in this article I am simply going to tell you how you can create one.

    So let's get started, shall we?

    Open Visual Studio.net.

    Go to File Menu -> New -> Project

    Choose your flavor (VB or C#) whichever you are comfortable working with in the left pane.

    Now select web services Asp.Net Web Service from the list on the right pane.

    Choose the code view because it does not have much of a designed interface as you will simply write some codes. But do not get scared yet.

    Now that your page is open, closely view the commented code. IT IS one web service that Microsoft as written for you.

    This is a pure Hello World example. Remember when you started off programming?

    Now simply uncomment this code.

    Go to Build -> Build Solution

    Then run your project.

    It will show you your first EVER web service you made yourself.

    See how easy it was to create one. Without actually writing any codes.

    I hope it helped you.

    ^_^
    Cheers and keep that smile on!Aftab Kashif is computer programmer, He has made quite few websites sharing knowledge with other people and teaching them through the experience that he has gained. He programs both in web as well as windows development environment.

     


  • Commentaires

    Aucun commentaire pour le moment

    Suivre le flux RSS des commentaires


    Ajouter un commentaire

    Nom / Pseudo :

    E-mail (facultatif) :

    Site Web (facultatif) :

    Commentaire :