{"id":192,"date":"2016-02-08T23:06:47","date_gmt":"2016-02-08T23:06:47","guid":{"rendered":"http:\/\/kaizen-koka.com\/?p=192"},"modified":"2017-04-02T03:12:38","modified_gmt":"2017-04-02T03:12:38","slug":"web-services","status":"publish","type":"post","link":"https:\/\/kaizen-koka.com\/?p=192","title":{"rendered":"Web Services"},"content":{"rendered":"<p>\n\tWeb services are web application components.\n<\/p>\n<h2>\n\tWSDL<br \/>\n<\/h2>\n<ul>\n<li>\n\t\tWSDL stands for Web Services Description Language\n\t<\/li>\n<li>\n\t\tWSDL is an XML-based language for describing Web services.\n\t<\/li>\n<li>\n\t\tWSDL is a W3C recommendation&nbsp;\n\t<\/li>\n<\/ul>\n<h2>\n\tSOAP<br \/>\n<\/h2>\n<ul>\n<li>\n\t\tSOAP stands for Simple Object Access Protocol\n\t<\/li>\n<li>\n\t\tSOAP is an XML based protocol for accessing Web Services.\n\t<\/li>\n<li>\n\t\tSOAP is based on XML\n\t<\/li>\n<li>\n\t\tSOAP is a W3C recommendation\n\t<\/li>\n<\/ul>\n<p>\n\tA SOAP message is a XML document which is used to transmit your data. WSDL is an XML document which describes how to connect and make requests to your web service.\n<\/p>\n<p>\n\tBasically SOAP messages are the data you transmit, WSDL tells you what you can do and how to make the calls.\n<\/p>\n<p>\n\tIn a simple terms if you have a web service of calculator. WSDL tells about the functions that you can implement or exposed to the client. For example: add, delete, subtract and so on. Where as using SOAP you actually perform actions like doDelete(), doSubtract(), doAdd(). So SOAP and WSDL are apples and oranges. We should not compare them. They both have their own different functionality.\n<\/p>\n<p>\n\tfor example: Lifted from stackoverflow,\n<\/p>\n<p>\n\t<strong>SOAP Request<\/strong>:\n<\/p>\n<pre class=\"brush:xml;\">\r\n&lt;SOAP-ENV:Envelope\r\n  xmlns:SOAP-ENV=&quot;http:\/\/schemas.xmlsoap.org\/soap\/envelope\/&quot;\r\n  SOAP-ENV:encodingStyle=&quot;http:\/\/schemas.xmlsoap.org\/soap\/encoding\/&quot;&gt;\r\n  &lt;SOAP-ENV:Body&gt;\r\n    &lt;m:GetBookPrice xmlns:m=&quot;http:\/\/namespaces.my-example-book-info.com&quot;&gt;\r\n      &lt;ISBN&gt;978-0451524935&lt;\/ISBN&gt;\r\n      &lt;Title&gt;1984&lt;\/Title&gt;\r\n      &lt;NumPages&gt;328&lt;\/NumPages&gt;\r\n    &lt;\/m:GetBookPrice&gt;\r\n  &lt;\/SOAP-ENV:Body&gt;\r\n&lt;\/SOAP-ENV:Envelope&gt;<\/pre>\n<p>\n\t<strong>SOAP Response,<\/strong>\n<\/p>\n<pre class=\"brush:xml;\">\r\n&lt;SOAP-ENV:Envelope\r\n  xmlns:SOAP-ENV=&quot;http:\/\/schemas.xmlsoap.org\/soap\/envelope\/&quot;\r\n  SOAP-ENV:encodingStyle=&quot;http:\/\/schemas.xmlsoap.org\/soap\/encoding\/&quot;&gt;\r\n  &lt;SOAP-ENV:Body&gt;\r\n    &lt;m:GetBookPriceResponse xmlns:m=&quot;http:\/\/namespaces.my-example-book-info.com&quot;&gt;\r\n      &lt;CurrentPrice&gt;8.99&lt;\/CurrentPrice&gt;\r\n      &lt;Currency&gt;USD&lt;\/Currency&gt;\r\n    &lt;\/m:GetBookPriceResponse&gt;\r\n  &lt;\/SOAP-ENV:Body&gt;\r\n&lt;\/SOAP-ENV:Envelope&gt;<\/pre>\n<p>\n\t<strong>WSDL Sample<\/strong>,\n<\/p>\n<pre class=\"brush:xml;\">\r\n&lt;wsdl:types&gt;\r\n\r\n  &lt;!-- all type declarations are in a chunk of xsd --&gt;\r\n  &lt;xsd:schema targetNamespace=&quot;http:\/\/namespaces.my-example-book-info.com&quot;\r\n    xmlns:xsd=&quot;http:\/\/www.w3.org\/1999\/XMLSchema&quot;&gt;\r\n\r\n    &lt;xsd:element name=&quot;GetBookPrice&quot;&gt;\r\n      &lt;xsd:complexType&gt;\r\n        &lt;xsd:sequence&gt;\r\n          &lt;xsd:element name=&quot;ISBN&quot; type=&quot;string&quot;\/&gt;\r\n          &lt;xsd:element name=&quot;Title&quot; type=&quot;string&quot;\/&gt;\r\n          &lt;xsd:element name=&quot;NumPages&quot; type=&quot;integer&quot;\/&gt;\r\n        &lt;\/xsd:sequence&gt;\r\n      &lt;\/xsd:complexType&gt;\r\n    &lt;\/xsd:element&gt;\r\n\r\n    &lt;xsd:element name=&quot;GetBookPriceResponse&quot;&gt;\r\n      &lt;xsd:complexType&gt;\r\n        &lt;xsd:sequence&gt;\r\n          &lt;xsd:element name=&quot;CurrentPrice&quot; type=&quot;decimal&quot; \/&gt;\r\n          &lt;xsd:element name=&quot;Currency&quot; type=&quot;string&quot; \/&gt;\r\n        &lt;\/xsd:sequence&gt;\r\n      &lt;\/xsd:complexType&gt;\r\n    &lt;\/xsd:element&gt;\r\n\r\n  &lt;\/xsd:schema&gt;\r\n&lt;\/wsdl:types&gt;<\/pre>\n<p>\n\t&nbsp;\n<\/p>\n<p>\n\t<strong>REST<\/strong>\n<\/p>\n<p>\n\t<a href=\"https:\/\/i0.wp.com\/kaizen-koka.com\/wp-content\/uploads\/2016\/02\/Screen-Shot-2016-02-10-at-7.14.25-PM.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"217\" data-permalink=\"https:\/\/kaizen-koka.com\/?attachment_id=217\" data-orig-file=\"https:\/\/i0.wp.com\/kaizen-koka.com\/wp-content\/uploads\/2016\/02\/Screen-Shot-2016-02-10-at-7.14.25-PM.png?fit=529%2C311&amp;ssl=1\" data-orig-size=\"529,311\" data-comments-opened=\"0\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Screen Shot 2016-02-10 at 7.14.25 PM\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/kaizen-koka.com\/wp-content\/uploads\/2016\/02\/Screen-Shot-2016-02-10-at-7.14.25-PM.png?fit=300%2C176&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/kaizen-koka.com\/wp-content\/uploads\/2016\/02\/Screen-Shot-2016-02-10-at-7.14.25-PM.png?fit=529%2C311&amp;ssl=1\" alt=\"Screen Shot 2016-02-10 at 7.14.25 PM\" class=\"aligncenter size-full wp-image-217\" height=\"311\" src=\"https:\/\/i0.wp.com\/kaizen-koka.com\/wp-content\/uploads\/2016\/02\/Screen-Shot-2016-02-10-at-7.14.25-PM.png?resize=529%2C311\" width=\"529\" srcset=\"https:\/\/i0.wp.com\/kaizen-koka.com\/wp-content\/uploads\/2016\/02\/Screen-Shot-2016-02-10-at-7.14.25-PM.png?w=529&amp;ssl=1 529w, https:\/\/i0.wp.com\/kaizen-koka.com\/wp-content\/uploads\/2016\/02\/Screen-Shot-2016-02-10-at-7.14.25-PM.png?resize=300%2C176&amp;ssl=1 300w\" sizes=\"auto, (max-width: 529px) 100vw, 529px\" \/><\/a> <a href=\"https:\/\/i0.wp.com\/kaizen-koka.com\/wp-content\/uploads\/2016\/02\/Screen-Shot-2016-02-18-at-6.59.44-PM.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"218\" data-permalink=\"https:\/\/kaizen-koka.com\/?attachment_id=218\" data-orig-file=\"https:\/\/i0.wp.com\/kaizen-koka.com\/wp-content\/uploads\/2016\/02\/Screen-Shot-2016-02-18-at-6.59.44-PM.png?fit=1098%2C384&amp;ssl=1\" data-orig-size=\"1098,384\" data-comments-opened=\"0\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Screen Shot 2016-02-18 at 6.59.44 PM\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/kaizen-koka.com\/wp-content\/uploads\/2016\/02\/Screen-Shot-2016-02-18-at-6.59.44-PM.png?fit=300%2C105&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/kaizen-koka.com\/wp-content\/uploads\/2016\/02\/Screen-Shot-2016-02-18-at-6.59.44-PM.png?fit=1024%2C358&amp;ssl=1\" alt=\"Screen Shot 2016-02-18 at 6.59.44 PM\" class=\"aligncenter size-full wp-image-218\" height=\"384\" src=\"https:\/\/i0.wp.com\/kaizen-koka.com\/wp-content\/uploads\/2016\/02\/Screen-Shot-2016-02-18-at-6.59.44-PM.png?resize=1098%2C384\" width=\"1098\" srcset=\"https:\/\/i0.wp.com\/kaizen-koka.com\/wp-content\/uploads\/2016\/02\/Screen-Shot-2016-02-18-at-6.59.44-PM.png?w=1098&amp;ssl=1 1098w, https:\/\/i0.wp.com\/kaizen-koka.com\/wp-content\/uploads\/2016\/02\/Screen-Shot-2016-02-18-at-6.59.44-PM.png?resize=300%2C105&amp;ssl=1 300w, https:\/\/i0.wp.com\/kaizen-koka.com\/wp-content\/uploads\/2016\/02\/Screen-Shot-2016-02-18-at-6.59.44-PM.png?resize=1024%2C358&amp;ssl=1 1024w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Web services are web application components. WSDL WSDL stands for Web Services Description Language WSDL is an XML-based language for describing Web services. WSDL is a W3C recommendation&nbsp; SOAP SOAP [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":true,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[9],"tags":[],"class_list":["post-192","post","type-post","status-publish","format-standard","hentry","category-advance"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p70lnf-36","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/kaizen-koka.com\/index.php?rest_route=\/wp\/v2\/posts\/192","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kaizen-koka.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kaizen-koka.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kaizen-koka.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kaizen-koka.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=192"}],"version-history":[{"count":2,"href":"https:\/\/kaizen-koka.com\/index.php?rest_route=\/wp\/v2\/posts\/192\/revisions"}],"predecessor-version":[{"id":219,"href":"https:\/\/kaizen-koka.com\/index.php?rest_route=\/wp\/v2\/posts\/192\/revisions\/219"}],"wp:attachment":[{"href":"https:\/\/kaizen-koka.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=192"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kaizen-koka.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=192"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kaizen-koka.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=192"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}