Differentiate between: (i) Website & Web services (ii) HTML & XML
web services • 461  views

Difference between Website & Web Services

Website Web Services
A website is a collection of related web pages, including multimedia content, typically identified with a common domain name, and published on at least one Web server. A web service is a service offered by an electronic device to another electronic device, communicating with each other via the World Wide Web.
A website has a user interface or GUI. A web service doesn't have a user interface.
Websites are meant for use by humans. Web services are meant for other applications to be interacted over the Internet.
Websites are cross platform as they require tweaking to operate on different browsers, operating systems etc. Web services are platform independent as they use open protocols.
Websites are accessed by using their GUI components - buttons, text boxes, forms, URL/domain and serve HTML. Web services are accessed by HTTP methods - GET, POST, PUT, DELETE etc.
Typically returns HTML or image data or similar. Typically returns XML or JSON or something like that, something that is easily decoded by a programmer.
The results user get from a web application is usually shown to a person, through a web browser. The results user get from a web service is typically not just shown to a person in its row form.
Websites have a double role, provide information and present information. Web services, there is no concept of presentation.
Websites are pretty self-explanatory A web service is equivalent to a method in java that has a web wrapper around it. It lives on the server and it can be sent data/queried etc. and may or may not return a result. It does not have any front end.
Websites are not registered in UDDI registries. Web services are registered in UDDI registries.

Difference between HTML & XML

HTML was designed to display data and to focus on how data looks. XML is used to describe data and focus on what data is (describe data).
HTML tags are predefined. XML tags are not predefined.
HTML tags are not case Sensitive. XML tags are case Sensitive.
It is not mandatory to close tag. It is mandatory to close tag.
Stylesheet for HTML are optional. Stylesheet for XML called XSL are compulsory for formatting of data.
Some HTML elements can be improperly nested within each other. XML elements must be properly nested.
HTML is static in nature because it is used to display data. XML is dynamic in nature because it is used to transport data.
HTML is presentation language. XML is neither programming nor presentational language.
HTML does not preserve white spaces. XML preserve white spaces.
Used to display a web page. Used to transport data between the application and the database. To develop other markup languages.
Please log in to add an answer.

Continue reading

Find answer to specific questions by searching them here. It's the best way to discover useful content.

Find more