Hello Sirs, What exactly is the difference between a web site and web service? What advantages a web service is upon web sites? Ultimately web services also uses HTTP protocol and whether it is XML or JSON payload they both will come as part of HTTP body. So is the only difference is that HTML data can be read and presented by browsers whether XML or JSON data can be read by the software receiving the HTML response? And if so then why the programming language community (Java, .NET, PHP etc) haven't developed an API to read HTML data and extract important information from HTTP response, thus eliminating the use of XML, JSON and other structured data format library and keep things simple. Suppose a java application wants to get some information from .NET application over web. The application will simply call the .NET application service URL and it can parse the HTML response returned by .NET application using the Java API which is exclusively developed for parsing HTML got as data part of the HTTP response. From this Java API the java application can get important information and therefore interoperability will also be achieved by going this way also. After all in case of the web service also the application has to get the payload (whether XML or JSON) from HTTP response then why application can't directly get the payload and extract the information something like browsers does. Why to use separate structured data format and provide an api to handle the data presented as data format (XML, JSON etc). Just wanted to know why the programming world has not come up with an API to directly parse HTML and get information to be used by software, why they need to get the information in XML and then parse the XML to get the information.
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!