<br />
<b>Warning</b>:  Undefined array key "global_protection_id" in <b>/home/wikitechy/public_html/interview-questions/wp-content/plugins/content-protector/inc/class-ps-rest-handler.php</b> on line <b>51</b><br />
{"id":4198,"date":"2022-04-22T11:14:42","date_gmt":"2022-04-22T11:14:42","guid":{"rendered":"https:\/\/www.wikitechy.com\/interview-questions\/?p=4198"},"modified":"2022-04-22T11:14:42","modified_gmt":"2022-04-22T11:14:42","slug":"what-is-the-difference-between-soap-and-rest","status":"publish","type":"post","link":"https:\/\/www.wikitechy.com\/interview-questions\/web-designing\/what-is-the-difference-between-soap-and-rest\/","title":{"rendered":"What is the difference between SOAP and REST ?"},"content":{"rendered":"<p><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone size-full wp-image-4199 aligncenter\" src=\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/04\/soap-vs-rest-api-described.png\" alt=\"\" width=\"553\" height=\"458\" srcset=\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/04\/soap-vs-rest-api-described.png 553w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/04\/soap-vs-rest-api-described-300x248.png 300w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/04\/soap-vs-rest-api-described-390x323.png 390w\" sizes=\"(max-width: 553px) 100vw, 553px\" \/><\/p>\n<table width=\"651\">\n<tbody>\n<tr>\n<td width=\"325\"><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SOAP<\/strong><\/td>\n<td width=\"325\"><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 REST<\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"325\">It is a protocol.<\/td>\n<td width=\"325\">It is an architectural style.<\/td>\n<\/tr>\n<tr>\n<td width=\"325\">SOAP- Simple Object Access Protocol.<\/td>\n<td width=\"325\">REST- Representational State Transfer.<\/td>\n<\/tr>\n<tr>\n<td width=\"325\">It can\u2019t use REST because it is a protocol.<\/td>\n<td width=\"325\">It can use SOAP because it is a concept and can use any protocol like HTTP, SOAP.<\/td>\n<\/tr>\n<tr>\n<td width=\"325\">It uses service interfaces to expose the business logic.<\/td>\n<td width=\"325\">It uses URI to expose business logic.<\/td>\n<\/tr>\n<tr>\n<td width=\"325\">JAX-WS is the java API For SOAP web services.<\/td>\n<td width=\"325\">JAX-RS is the java API For RESTful web services.<\/td>\n<\/tr>\n<tr>\n<td width=\"325\">It defines standards to be strictly followed.<\/td>\n<td width=\"325\">It does not define too many standards like SOAP.<\/td>\n<\/tr>\n<tr>\n<td width=\"325\">It defines its own security.<\/td>\n<td width=\"325\">REST web services inherit security measures form the underlying transport.<\/td>\n<\/tr>\n<tr>\n<td width=\"325\">It is less preferred than REST.<\/td>\n<td width=\"325\">It is more preferred than SOAP.<\/td>\n<\/tr>\n<tr>\n<td width=\"325\">It requires more resource and bandwidth than REST<\/td>\n<td width=\"325\">It requires less resource and bandwidth.<\/td>\n<\/tr>\n<tr>\n<td width=\"325\">It permits XML data format only.<\/td>\n<td width=\"325\">It permits different data formats such as HTML, XML, Plain text, JSON, etc.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SOAP \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 REST It is a protocol. It is an architectural style. SOAP- Simple Object Access Protocol. REST- Representational State Transfer. It can\u2019t use REST because it is a protocol. It can use SOAP because it is a concept and can use any protocol like HTTP, SOAP. It uses service interfaces to expose the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"passster_activate_protection":false,"passster_protect_child_pages":"","passster_protection_type":"password","passster_password":"","passster_activate_overwrite_defaults":"","passster_headline":"","passster_instruction":"","passster_placeholder":"","passster_button":"","passster_id":"","passster_activate_misc_settings":"","passster_redirect_url":"","passster_hide":"no","passster_area_shortcode":"","gtb_hide_title":false,"gtb_wrap_title":false,"gtb_class_title":"","gtb_remove_headerfooter":false,"footnotes":""},"categories":[17079],"tags":[17205,17202,17203,17199,17207,17200,17204,17201,17198,17206],"class_list":["post-4198","post","type-post","status-publish","format-standard","hentry","category-web-designing","tag-difference-between-rest-and-soap","tag-difference-between-rest-api-and-soap-api","tag-difference-between-soap-and-rest-web-services","tag-rest-vs-soap","tag-soap-full-form","tag-soap-vs-rest","tag-soap-vs-rest-apis","tag-soap-vs-rest-web-services","tag-what-is-the-difference-between-soap-and-rest","tag-when-to-use-soap-and-rest-web-services"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>What is the difference between SOAP and REST ?<\/title>\n<meta name=\"description\" content=\"What is the difference between SOAP and REST ? - SOAP- Simple Object Access Protocol. - REST- Representational State Transfer.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wikitechy.com\/interview-questions\/web-designing\/what-is-the-difference-between-soap-and-rest\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What is the difference between SOAP and REST ?\" \/>\n<meta property=\"og:description\" content=\"What is the difference between SOAP and REST ? - SOAP- Simple Object Access Protocol. - REST- Representational State Transfer.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wikitechy.com\/interview-questions\/web-designing\/what-is-the-difference-between-soap-and-rest\/\" \/>\n<meta property=\"og:site_name\" content=\"Wikitechy\" \/>\n<meta property=\"article:published_time\" content=\"2022-04-22T11:14:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/04\/soap-vs-rest-api-described.png\" \/>\n<meta name=\"author\" content=\"webmaster\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"webmaster\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/web-designing\/what-is-the-difference-between-soap-and-rest\/\",\"url\":\"https:\/\/www.wikitechy.com\/interview-questions\/web-designing\/what-is-the-difference-between-soap-and-rest\/\",\"name\":\"What is the difference between SOAP and REST ?\",\"isPartOf\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/web-designing\/what-is-the-difference-between-soap-and-rest\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/web-designing\/what-is-the-difference-between-soap-and-rest\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/04\/soap-vs-rest-api-described.png\",\"datePublished\":\"2022-04-22T11:14:42+00:00\",\"dateModified\":\"2022-04-22T11:14:42+00:00\",\"author\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/f785ba3ecc599133e65ab6138042a3e4\"},\"description\":\"What is the difference between SOAP and REST ? - SOAP- Simple Object Access Protocol. - REST- Representational State Transfer.\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wikitechy.com\/interview-questions\/web-designing\/what-is-the-difference-between-soap-and-rest\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/web-designing\/what-is-the-difference-between-soap-and-rest\/#primaryimage\",\"url\":\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/04\/soap-vs-rest-api-described.png\",\"contentUrl\":\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/04\/soap-vs-rest-api-described.png\",\"width\":553,\"height\":458},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#website\",\"url\":\"https:\/\/www.wikitechy.com\/interview-questions\/\",\"name\":\"Wikitechy\",\"description\":\"Interview Questions\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wikitechy.com\/interview-questions\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/f785ba3ecc599133e65ab6138042a3e4\",\"name\":\"webmaster\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/155b77fd8cdda3d0913fcb7e7ee63543b0c345d2d8f6dcebda5b0583ab61f967?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/155b77fd8cdda3d0913fcb7e7ee63543b0c345d2d8f6dcebda5b0583ab61f967?s=96&d=mm&r=g\",\"caption\":\"webmaster\"},\"sameAs\":[\"https:\/\/www.wikitechy.com\/interview-questions\"],\"url\":\"https:\/\/www.wikitechy.com\/interview-questions\/author\/webmaster\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What is the difference between SOAP and REST ?","description":"What is the difference between SOAP and REST ? - SOAP- Simple Object Access Protocol. - REST- Representational State Transfer.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wikitechy.com\/interview-questions\/web-designing\/what-is-the-difference-between-soap-and-rest\/","og_locale":"en_US","og_type":"article","og_title":"What is the difference between SOAP and REST ?","og_description":"What is the difference between SOAP and REST ? - SOAP- Simple Object Access Protocol. - REST- Representational State Transfer.","og_url":"https:\/\/www.wikitechy.com\/interview-questions\/web-designing\/what-is-the-difference-between-soap-and-rest\/","og_site_name":"Wikitechy","article_published_time":"2022-04-22T11:14:42+00:00","og_image":[{"url":"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/04\/soap-vs-rest-api-described.png"}],"author":"webmaster","twitter_card":"summary_large_image","twitter_misc":{"Written by":"webmaster","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wikitechy.com\/interview-questions\/web-designing\/what-is-the-difference-between-soap-and-rest\/","url":"https:\/\/www.wikitechy.com\/interview-questions\/web-designing\/what-is-the-difference-between-soap-and-rest\/","name":"What is the difference between SOAP and REST ?","isPartOf":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/web-designing\/what-is-the-difference-between-soap-and-rest\/#primaryimage"},"image":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/web-designing\/what-is-the-difference-between-soap-and-rest\/#primaryimage"},"thumbnailUrl":"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/04\/soap-vs-rest-api-described.png","datePublished":"2022-04-22T11:14:42+00:00","dateModified":"2022-04-22T11:14:42+00:00","author":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/f785ba3ecc599133e65ab6138042a3e4"},"description":"What is the difference between SOAP and REST ? - SOAP- Simple Object Access Protocol. - REST- Representational State Transfer.","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wikitechy.com\/interview-questions\/web-designing\/what-is-the-difference-between-soap-and-rest\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wikitechy.com\/interview-questions\/web-designing\/what-is-the-difference-between-soap-and-rest\/#primaryimage","url":"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/04\/soap-vs-rest-api-described.png","contentUrl":"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/04\/soap-vs-rest-api-described.png","width":553,"height":458},{"@type":"WebSite","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website","url":"https:\/\/www.wikitechy.com\/interview-questions\/","name":"Wikitechy","description":"Interview Questions","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wikitechy.com\/interview-questions\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/f785ba3ecc599133e65ab6138042a3e4","name":"webmaster","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/155b77fd8cdda3d0913fcb7e7ee63543b0c345d2d8f6dcebda5b0583ab61f967?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/155b77fd8cdda3d0913fcb7e7ee63543b0c345d2d8f6dcebda5b0583ab61f967?s=96&d=mm&r=g","caption":"webmaster"},"sameAs":["https:\/\/www.wikitechy.com\/interview-questions"],"url":"https:\/\/www.wikitechy.com\/interview-questions\/author\/webmaster\/"}]}},"_links":{"self":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/4198","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/comments?post=4198"}],"version-history":[{"count":1,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/4198\/revisions"}],"predecessor-version":[{"id":4200,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/4198\/revisions\/4200"}],"wp:attachment":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/media?parent=4198"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/categories?post=4198"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/tags?post=4198"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}