Programming

일반 영어로 된 "웹 서비스"란 무엇입니까?

procodes 2020. 5. 17. 21:40
반응형

일반 영어로 된 "웹 서비스"란 무엇입니까?


SO, Wikipedia, Google 등에서 "웹 서비스"에 대해 읽었으며 그 내용이 무엇인지 이해하지 못합니다. 일반 영어 정의 / 설명은 무엇입니까?

예를 들어 PHP를 사용하여 간단한 웹 사이트를 만들면 임의의 정수가 페이지에 인쇄됩니다. 이것이 "웹 서비스"입니까? 그렇지 않다면 왜 안됩니까?


간단한 정의 : 웹 서비스는 웹 (HTTP)을 통해 다른 프로그램에서 액세스 할 수있는 기능입니다.

예를 들어 HTML을 출력하는 PHP로 웹 사이트를 만들 때 대상은 브라우저 이며, 확장하여 브라우저에서 페이지를 읽는 사람도 있습니다. 웹 서비스는 사람을 대상으로하지 않고 다른 프로그램을 대상으로합니다.

따라서 임의의 정수를 생성하는 PHP 사이트는 다른 프로그램이 사용할 수있는 형식으로 정수를 출력하는 경우 웹 서비스가 될 수 있습니다. 다른 프로그램이 출력을 이해할 수있는 한 XML 형식이거나 다른 형식 일 수 있습니다.

전체 정의는 분명히 더 복잡하지만 일반 영어를 요구했습니다.


기술적이지 않은 간단한 설명 : 웹 서비스를 사용하면 브라우저를 사용하여 웹 페이지를 여는 대신 웹 프로그램이 웹 페이지와 통신 할 수 있습니다.

예 : maps.google.com으로 이동하여 집 주소를 입력하고 브라우저에서 거주하는 지역의지도를 볼 수 있습니다.

그러나 Google지도와 같이 주소를 가져와 예쁜지도를 표시하려는 컴퓨터 프로그램을 작성하는 경우 어떻게 되나요?

완전히 새로운지도 프로그램을 처음부터 작성하거나 Google지도에서 제공하는 웹 서비스를 호출하여 주소를 보내면 프로그램에 표시 할 수있는 위치의 그래픽지도를 반환 할 수 있습니다.

다른 게시물 중 일부가 들어가면서 더 많은 내용이 있지만 응용 프로그램에서 정보를 검색하거나 일부 리소스에 정보를 제출할 수 있다는 결론이 있습니다. 다른 예 :

  1. 웹 서비스를 사용하여 Amazon.com에서 도서에 대한 정보를 검색 할 수 있습니다.
  2. 유사한 웹 서비스를 사용하여 Amazon.com에 주문을 제출할 수 있습니다.
  3. 외부 응용 프로그램이 회사 내의 제품 정보를 찾을 수 있도록 웹 서비스를 만들 수 있습니다.
  4. 외부 애플리케이션이 회사에 주문을 제출할 수 있도록 웹 서비스를 작성할 수 있습니다.

예, 간단한 웹 서비스입니다.

웹 서비스는 실제로 클라이언트가 데이터에 원격으로 액세스 / 수정할 수있는 요청 / 응답 메커니즘에 지나지 않습니다. 웹 서비스 (SOAP, SOA 등)에 대한 공식적인 표준이 있지만 간단한 페이지도 서비스입니다.

페이지에 인쇄 할 때의 주요 단점은 서비스에서 HTML을 반환한다는 것입니다. 대부분의 클라이언트 프레임 워크 (및 서버 프레임 워크)는 JSON 및 XML을 사용하여 설계되었으므로 바람직한 데이터 형식은 JSON 및 XML입니다.

따라서 서비스를 수정하여 다음을 반환하는 경우 :

<RANDOM>some random number</RANDOM>

오히려

<HEAD>...</HEAD>  
<BODY>some random number</BODY>

대부분의 고객에게 더 유용 할 것입니다.


간단히 말해서 웹 서비스는 http 프로토콜을 통해 데이터를 서비스로 제공하는 것입니다. 항상 그런 것은 아닙니다. ...하지만 가까이 있습니다.

표준 웹 서비스 사용 메시지의 통신 ​​및 구조를 정의하는 SOAP 프로토콜이며 XML은 데이터 형식입니다.

웹 서비스는 다른 기술을 사용하여 구축 된 응용 프로그램이 문제없이 서로 통신 할 수 있도록 설계되었습니다.

웹 서비스의 예는 Weather.com과 같이 사이트에서 사용할 수있는 날씨 정보를 제공하거나 UPS가 배송 견적 또는 패키지 추적을 요청하는 방법을 제공하는 것입니다.

편집하다

내가 언급 한 것처럼 항상 SOAP는 아니지만보다 명확하게하기 위해 SOAP와 관련하여 표현을 변경했습니다. 핵심은 데이터를 UI 요소가 아닌 서비스로 제공하는 것입니다.


웹 서비스는 웹 서비스가 사람이 아닌 소프트웨어가 소비 할 수있는 정보를 제공한다는 점에서 웹 사이트와 다릅니다. 결과적으로 우리는 일반적으로 노출 된 JSON , XML 또는 SOAP 서비스에 대해 이야기하고 있습니다.

웹 서비스는 "매시업"의 핵심 구성 요소입니다. 매시업은 많은 웹 사이트의 정보가 새롭고 유용한 서비스로 자동 집계되는 경우입니다. 예를 들어 경찰 보고서에 대한 정보와 함께 Google지도를 집계하여 해당 지역의 범죄를 그래픽으로 표시하는 사이트가 있습니다. 매시업의 또 다른 유형은 다른 사이트에서 제공 한 실제 주식 데이터를 가져 와서 가짜 거래 응용 프로그램과 결합하여 주식 시장 "게임"을 만드는 것입니다.

웹 서비스는 뉴스 (RSS 참조), 사이트에 추가 된 최신 항목, 새로운 제품에 대한 정보, 팟 캐스트 및 최신 웹 서비스를 만드는 기타 훌륭한 기능을 제공하는데도 사용됩니다.

도움이 되었기를 바랍니다!


가장 일반적인 영어 설명은 유추를 사용하여 비롯됩니다.

  • 웹 페이지를 통해 사람들은 서로 의사 소통하고 협업 할 수 있습니다.
  • 웹 서비스를 통해 프로그램은 서로 통신하고 협업 할 수 있습니다.

PHP 예제는 다른 프로그램에서 출력을 사용할 수 있기 때문에 해당 정의에 따른 웹 서비스입니다. 그러나 실제로 HTML 화면 스크래핑은 신뢰할 수 있거나 유지 관리 가능한 웹 서비스 생성 방법이 아닙니다.


대부분의 사이트에는 브라우저를 사용할 때 방문하는 HTML 페이지가 있습니다. 이 페이지는 사람이 이해할 수 있기 때문에 많은 데이터가 함께 쌓일 수있는 사람이 읽을 수있는 페이지 (브라우저에서 한 번 렌더링 됨)입니다.

다른 누군가가 그 데이터 중 일부를 사용하고 싶다고 상상해보십시오. 그들은 귀하의 페이지를 다운로드하고 원하는 데이터를 얻기 위해 모든 "노이즈"를 필터링하기 시작할 수 있지만, 대부분의 웹 사이트는 모든 요소에 대해 동일한 지점에 데이터를 배치 할 수 있도록 100 % 확실한 방식으로 구축되지 않았습니다. 번거롭기 때문에 신뢰할 수 없게됩니다.

Enter web services.

A web service is something that a website chooses to offer to those who wish to read, update and/or delete data from your website. You might call it a "backdoor" to your data. Instead of presenting the data as part of a webpage it is provided in a pre-determined way where some of the more popular are XML and JSON. There are several ways to communicate with a webservice, some use SOAP, others have REST'ful web services, etc.

What is common for all web services is that they are the machine-readable equivelant to the webpages the site otherwise offers. This means that others who wish to use the data can send a request to get certain data back that is easy to parse and use. Some sites may require you to provide a username/password in the request, for sensitive data, while other sites allow anyone to extract whatever data they might need.


A web service is a collection of open protocols and standards used for exchanging data between applications or systems. Software applications written in various programming languages and running on various platforms can use web services to exchange data over computer networks like the Internet in a manner similar to inter-process communication on a single computer. This interoperability (e.g., between Java and Python, or Windows and Linux applications) is due to the use of open standards (XML, SOAP, HTTP).

All the standard Web Services works using following components:

  • SOAP (Simple Object Access Protocol)
  • UDDI (Universal Description, Discovery and Integration)
  • WSDL (Web Services Description Language)

It works somewhat like this:

  • The client program bundles the account registration information into a SOAP message.
  • This SOAP message is sent to the Web Service as the body of an HTTP POST request.
  • The Web Service unpacks the SOAP request and converts it into a command that the application can understand.
  • The application processes the information as required and responds with a new unique account number for that customer.
  • Next, the Web Service packages up the response into another SOAP message, which it sends back to the client program in response to its HTTP request.
  • The client program unpacks the SOAP message to obtain the results of the account registration process.

Webservice is a technology by which two or more remote web applications interact with each other over network/internet. It can be implemented using Java, .net, PHP etc.

Features of Web service:-

  1. Using web services two or more systems exchange data over network. Data are exchanged either using XML or JSON.
  2. Any web service has two parts Server end where the service is deployed and the client part where the service is accessed by its clients. Any web service can have multiple clients. When a travel portal is selling tickets of an airliner. Portal is client and the Airline is the server as it is selling its service.
  3. Web services can be synchronous or it can be asynchronous also.A web application can interact with many web services but these web services are loosely coupled with their client web applications. That means any change in the parent application has little or no effect on the web services or vice versa.
  4. Web services can carry attachment document also like PDF, Word etc. with its XML payload. Java provides separate API for this type of web services.
  5. A web service always hides the internal complexity of the service to its clients. For an example, an airliner which is selling tickets via a third party portal is only gathering end user info via a web service and in return it is providing ticket. The portal which is selling ticket doesn't have to bother about the internal complexity of the airlines ticket reservation systems.
  6. A web service can be of fire and forget type or it can return something. Suppose, a web application just want to send some info to a third party application. The sender doesn't need any acknowledgement from the receiver. In this type of scenario we need a fire and forget type of web service.

Simple way to explain web service is ::

  • A web service is a method of communication between two electronic devices over the World Wide Web.
  • It can be called a process that a programmer uses to communicate with the server
  • To invoke this process programmer can use SOAP etc
  • Web services are built on top of open standards such as TCP/IP, HTTP

The advantage of a webservice is, say you develop one piece of code in .net and you wish to use JAVA to consume this code. You can interact directly with the abstracted layer and are unaware of what technology was used to develop the code.


Image


A web service, as used by software developers, generally refers to an operation that is performed on a remote server and invoked using the XML/SOAP specification. As with all definitions, there are nuances to it, but that's the most common use of the term.


An operating system provides a GUI (and CLI) that you can interact with. It also provides an API that you can interact with programmatically.

Similarly, a website provides HTML pages that you can interact with and may also provide an API that offers the same information and operations programmatically. Or those services may only be available via an API with no associated user interface.


A simple definition would be an HTTP request that acts like a normal method call; i.e., it accepts parameters and returns a structured result, usually XML, that can be deserialized into an object(s).


Web services are almost like normal a web page. The difference is that they are formatted to make it very easy for a program to pull data from the page, to the point of probably not using any HTML. They generally also are more reliable as to the consistency of the format, may use a different formal process to define the content such soap or raw xml, and there is often also a descriptor document that formally defines the structure for the data.


A way of sending a message to invoke an operation on another computer. The difference between web services and previous methods is what gets sent over the wire is standardized at a higher level.

Old way: describe endians, encoding, port numbers, etc. Web Service: URL, XML


Web Service is like a medium of commuication between two unrelated programs. The programs use a specified protocol(Usually Simple Object Access Protocol (SOAP)) as medium to understand what REQUEST/RESPONCE they are to process/execute on there respective end.


Well,

As @Vincent Ramdhanie has said that a web service is not meant to be seen / consumed by end user but another program. So technically logic in your program will be:

In case of acting as a normal program

user on website -> HTML/JS/JQuery etc -> give me a random number ->ur program

Now

ur program -> generate random number -> generate HTML and encapsulate o/p -> go back to user

but in case of web service the flow changes a little:

user -> my application -> XML/JSON/some other format -> give me a random number ->ur program Now

ur program -> generate random number -> generate XML/JSON/some other format -> my application -> generate HTML and encapsulate o/p -> go back to user

Hope this helps :)


A web service defines a contract of actions that a server will perform for you. The format and protocol doesn't really matter, but you should have some set definition of how the communication happens.

In your example, it depends, if that is being used in another application that reads that number, yes it is service, otherwise, it's just a webpage with a number.


In simple words Web service could be any simple program ex: add two numbers which should be published over the UDDI and can be consumed by another program.WSDL will have the endpoint to locate the webservice and also the binding and port details.


'Web Service' is composed of two words,'Web' and 'Service'.
What is 'Web'? 'Web' means 'World Wide Web'.
'Service' for what? Not for Human,if so,it's 'Web Page',such as text,images,video etc.
It's for Programs to communicate through the Internet using the same technology the 'Web' used,such as TCP,HTTP etc.
'Service' also means it provides some functions,like the 'Service Layer' in CRUD. There are mainly two types:
1. SOAP(Simple Object Access Protocol)
2. RESTful(Representational state transfer)


Without prejudice to other definitions I would say that a web service is software system that allows for inter-operable machine-to-machine / application-to-application interaction over a network. This generic definitions would also help consider REST architectures to be a web service as they provide similar functionality albeit being an architectural style unlike the SOAP which is a fully defined protocol.

참고URL : https://stackoverflow.com/questions/226108/what-is-a-web-service-in-plain-english

반응형