Discussion 2

docx

School

Southern New Hampshire University *

*We aren’t endorsed by this school

Course

260

Subject

Computer Science

Date

Nov 24, 2024

Type

docx

Pages

3

Uploaded by Wahoobeauty

Report
2-1 Discussion: Web Service or API? In the blog post, API vs. Web Service: What’s the difference? , the authors state that “All web services are APIs, but not all APIs are web services.” For your initial discussion post: Create an explanation for this statement that you could share with someone new to the information technology field. Make sure you include information that describes what web services and APIs are and also clearly explains why “All web services are APIs, but not all APIs are web services.” In your response to your peers, could you provide feedback on their explanations? Your feedback should be constructive and include ways their posts help clarify the concept, things about their positions that confuse you, or suggestions for something they could address or handle differently. All feedback should be focused on creating the best explanation for the statement: “All web services are APIs, but not all APIs are web services.” References RapidAPI Staff. (2019, February 28). API vs. web service: What’s the difference? Retrieved from https://blog.rapidapi.com/api-vs-web-service/ Application Programming Interface, or API, and web services are technical terms that are regularly confused. Even though they are two different concepts, some of the parts overlap. To further explain both aspects of the technology, we must first understand the meanings of API and web services. An API, or Application Programming Interface, is a set of procedures and functions that allow access to an application and build on the data of a said application, which means that an API is essentially the glue that holds the internet together. We use web APIs every day if we go to Google and search for car rentals or flights that use APIs through the web by sending data back and forth at the request of the HTTP or Hypertext Transfer Protocol. Alternatively, web services allow for two machines to communicate with each other over the internet. A web service requires a network. The software system is designed to support machine interaction between the two machines. Some developers of Web services, for the most part, use SOAP or Simple Object Access Protocol. Soap is a messaging protocol where XML data, or Extensible Markup Language, is shared via the HTTP request. Others say that web services do not have to use SOAP, but this falls under a semantic issue. However, they have associated with S, the architectural pattern for designing applications in which features are split and made available as services within a network.
Web service is used for REST, SOAP, and XML-RPC for communication, while API is used for any communication style. Web service supports only HTTP protocol, whereas API supports HTTP/HTTPS protocol. Web service supports XML while API supports XML and JSON. Therefore, all web services are APIs, but all APIs are not web services. References Walker, Alyssa. October 8, 2021. “SOAP Vs. REST: Difference between Web API Services.” https://www.guru99.com/comparison-between-web-services.html . Accessed November 2, 2021. Bush, Thomas. July 16, 2019. “What Is The Difference Between Web Services and APIs?” https://nordicapis.com/what-is-the-difference-between-web-services-and-apis/. Accessed November 2, 2021. RapidAPI23 Staff. April 20, 2021. “API vs. Web Service: What’s the Difference?” https://rapidapi.com/blog/api-vs-web-service/ . Accessed November 2, 2021. Hello Tasneem. Your overview of web services vs. APIs is straight to the point as to “ Web service requires a network while APIs can be on-or offline, web services and use a network. APIs are protocol agnostic while APIs can use any protocols or design styles, web services usually use SOAP (but sometimes REST, UDDI, and XML-RPC).” While web services allow communication of two machines over a network, an API, or Application Programming Interface, is a set of procedures and functions that will enable access to an application and build on the data of a said application, which means that an API is essentially the glue that holds the internet together. Do you have any examples of an API or web service? For example, Google utilizes APIs to display data relevant to users’ searches. Web services, such as SOAP headers, allow web services to prove metadata separate from the body of the message. What others can you think of? Have a fantastic weekend!
Judging by your post, you have a grasp of the difference between APIs and web services. I, too, used Google as my API example, as it is one of the most popular APIs and is well known around the world. An example of a web service includes any software or application that provides protocols such as HTTP or HTTPS to communicate and exchange data messaging. Web service would be able to provide the functionality to the client, which invokes that web service. For example-data types often require using data other than a simple string. Usually, the data string can be complex. f Any ideas on other examples? Have a wonderful weekend.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help