<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Tiago Rodrigues</title>
    <description>The latest articles on DEV Community by Tiago Rodrigues (@rtiago45).</description>
    <link>https://dev.to/rtiago45</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1119050%2Fc6dd229a-464c-4eee-8f0b-c3fe11a9d8ec.jpeg</url>
      <title>DEV Community: Tiago Rodrigues</title>
      <link>https://dev.to/rtiago45</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rtiago45"/>
    <language>en</language>
    <item>
      <title>Webservices - REST x SOAP</title>
      <dc:creator>Tiago Rodrigues</dc:creator>
      <pubDate>Fri, 14 Jul 2023 16:44:34 +0000</pubDate>
      <link>https://dev.to/rtiago45/webservices-rest-x-soap-4o2i</link>
      <guid>https://dev.to/rtiago45/webservices-rest-x-soap-4o2i</guid>
      <description>&lt;p&gt;&lt;strong&gt;Firstly, what is a webservice?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Webservices are hosted and accessible applications via HTTP that enable communication and data exchange between different systems. There are different approaches to implementing webservices, with the most common ones being REST (Representational State Transfer) and SOAP (Simple Object Access Protocol). In summary, it is an application hosted and accessible via HTTP.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;SOAP and REST&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;REST is a communication approach based on the HTTP protocol, using methods such as GET, POST, PUT, and DELETE to manipulate resources. It is considered lighter, more efficient, and scalable, utilizing simple message formats like JSON or XML. Additionally, REST is widely supported across various platforms and programming languages.&lt;/p&gt;

&lt;p&gt;On the other hand, SOAP is an older and more complex protocol. It can be executed on different transport protocols, such as HTTP and SMTP, and it utilizes XML as the message format. SOAP has a more intricate interface, described in the Web Services Description Language (WSDL), with messages sent and received through specific method calls. Although SOAP is heavier in terms of processing, it offers advanced security and transactional features.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;HTTP&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;GET: Requests a specific resource from the server.&lt;br&gt;
POST: Sends data to the server, usually used to create new resources.&lt;br&gt;
PUT: Updates an existing resource on the server.&lt;br&gt;
DELETE: Removes a resource from the server.&lt;br&gt;
PATCH: Partially updates an existing resource on the server.&lt;/p&gt;

&lt;p&gt;Key HTTP Status Codes:&lt;br&gt;
1xx (Informational):&lt;/p&gt;

&lt;p&gt;2xx (Success):&lt;br&gt;
200: OK&lt;/p&gt;

&lt;p&gt;3xx (Redirection):&lt;/p&gt;

&lt;p&gt;4xx (Client Error):&lt;br&gt;
400: Bad Request&lt;br&gt;
401: Unauthorized&lt;br&gt;
404: Not Found&lt;br&gt;
405: Method Not Allowed&lt;/p&gt;

&lt;p&gt;5xx (Server Error):&lt;br&gt;
502: Bad Gateway&lt;br&gt;
503: Service Unavailable&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;In conclusion&lt;/strong&gt;, webservices are a means of communication between systems that allows for standardized data exchange over the internet. REST and SOAP are different approaches to implementing webservices, with REST being lighter, more efficient, and widely supported, while SOAP is more complex and offers advanced features. The choice between REST and SOAP depends on the specific project requirements. HTTP status codes are used to indicate the outcome of HTTP requests, providing information about the success or failure of the request.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Webservices - Rest x Soap</title>
      <dc:creator>Tiago Rodrigues</dc:creator>
      <pubDate>Fri, 14 Jul 2023 16:43:36 +0000</pubDate>
      <link>https://dev.to/rtiago45/webservices-rest-x-soap-ehm</link>
      <guid>https://dev.to/rtiago45/webservices-rest-x-soap-ehm</guid>
      <description>&lt;p&gt;&lt;strong&gt;Primeiramente o que seria um webservice ?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Webservices são aplicações hospedadas e acessíveis via HTTP que permitem a comunicação e troca de dados entre diferentes sistemas. Existem diferentes abordagens para a implementação de webservices, sendo as mais comuns o REST (Representational State Transfer) e o SOAP (Simple Object Access Protocol). Em resumo, é uma aplicação hospedada e que pode ser acessada através do HTTP.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;SOAP and REST&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;O REST é uma forma de comunicação baseada no protocolo HTTP, utilizando métodos como GET, POST, PUT e DELETE para manipular recursos. Ele é considerado mais leve, eficiente e escalável, utilizando formatos de mensagem simples, como JSON ou XML. Além disso, o REST é amplamente suportado em várias plataformas e linguagens de programação.&lt;/p&gt;

&lt;p&gt;Já o SOAP é um protocolo mais antigo e mais complexo. Ele pode ser executado em diferentes protocolos de transporte, como HTTP e SMTP, e utiliza XML como formato de mensagem. O SOAP possui uma interface mais complexa, sendo descrita no WSDL (Web Services Description Language) e com mensagens enviadas e recebidas por meio de chamadas de método específicas. Embora seja mais pesado em termos de processamento, o SOAP oferece recursos avançados de segurança e transações.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;_HTTP _&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;GET: Solicita um recurso específico do servidor.&lt;br&gt;
POST: Envia dados para o servidor, geralmente usado para criar novos recursos.&lt;br&gt;
PUT: Atualiza um recurso existente no servidor.&lt;br&gt;
DELETE: Remove um recurso do servidor.&lt;br&gt;
PATCH: Atualiza parcialmente um recurso existente no servidor.&lt;/p&gt;

&lt;p&gt;Principais Códigos de Status HTTP:&lt;br&gt;
1xx (Informacional):&lt;/p&gt;

&lt;p&gt;2xx (Sucesso):&lt;br&gt;
200: OK&lt;/p&gt;

&lt;p&gt;3xx (Redirecionamento):&lt;/p&gt;

&lt;p&gt;4xx (Erro do cliente):&lt;br&gt;
400: Solicitação inválida&lt;br&gt;
401: Não autorizado&lt;br&gt;
404: Não encontrado&lt;br&gt;
405: Método não permitido&lt;/p&gt;

&lt;p&gt;5xx (Erro do servidor):&lt;br&gt;
502: Bad Gateway&lt;br&gt;
503: Serviço indisponível&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Em conclusão&lt;/strong&gt;, os webservices são uma forma de comunicação entre sistemas que permite a troca de dados padronizada pela internet. O REST e o SOAP são abordagens diferentes para a implementação de webservices, sendo o REST mais leve, eficiente e amplamente suportado, enquanto o SOAP é mais complexo e oferece recursos avançados. A escolha entre REST e SOAP depende das necessidades específicas do projeto. Os códigos de status HTTP são utilizados para indicar o resultado das solicitações HTTP, fornecendo informações sobre o sucesso ou falha da requisição.&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
