{"id":1795,"date":"2013-06-17T05:50:44","date_gmt":"2013-06-16T19:50:44","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=1795"},"modified":"2013-06-17T05:50:44","modified_gmt":"2013-06-16T19:50:44","slug":"asp-net-web-service-primer-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/asp-net-web-service-primer-tutorial\/","title":{"rendered":"ASP.Net Web Service Primer Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/ASPNet\/WebService\/Primer\/\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"ASP.Net Web Service Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/ASPNet\/WebService\/Primer\/ASPNet_WebService_Primer-19of.jpg\" title=\"ASP.Net Web Service Primer Tutorial\"  style=\"float:left;\" \/><\/a><p class=\"wp-caption-text\">ASP.Net Web Service Primer Tutorial<\/p><\/div>\n<p>Web Services allows for communication using the World Wide Web between two devices, as <a target=_blank title='Web service on Wikipedia' href='http:\/\/en.wikipedia.org\/wiki\/Web_service'>Wikipedia<\/a> explains below.  For our tutorial here we are using Windows, but, if you are more interested in cross-operating-system possibilities look at <a target=_blank title='ASP.Net Web Service' href='http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=1772'>Java Eclipse Web Service Primer Tutorial<\/a>.<\/p>\n<p><\/p>\n<blockquote><p>A web service is a method of communication between two electronic devices over the World Wide Web. A web service is a software function provided at a network address over the web or the cloud, it is a service that is &#8220;always on&#8221; as in the concept of utility computing.<\/p>\n<p>The W3C defines a &#8220;Web service&#8221; as:<\/p>\n<p>    [&#8230;] a software system designed to support interoperable machine-to-machine interaction over a network. It has an interface described in a machine-processable format (specifically WSDL). Other systems interact with the Web service in a manner prescribed by its description using SOAP messages, typically conveyed using HTTP with an XML serialization in conjunction with other Web-related standards.[1]<\/p>\n<p>The W3C also states:<\/p>\n<p>    We can identify two major classes of Web services:<\/p>\n<p>        REST-compliant Web services, in which the primary purpose of the service is to manipulate XML representations of Web resources using a uniform set of &#8220;stateless&#8221; operations; and<br \/>\n        arbitrary Web services, in which the service may expose an arbitrary set of operations.[2]<\/p>\n<\/blockquote>\n<p>In this primer tutorial I wanted to show you the basics of an ASP.Net Visual Studio created Web Service.  This is like the &#8220;Hello World&#8221; of ASP.Net Web Service tutorial ideas, but it can easily be used as a starting point for your further investigation, as this is a large LARGE subject area.   In the last slides of the tutorial, as you can also see on the picture above is some real scenario of Web Service use in ASP.Net in an eCommerce scenario using SAP B1 Web Services incorporating a Sql Server database.   Below you can download one component of this functionality as a wsdl file.<\/p>\n<p><strong>Below are some good background reading for the concepts of this tutorial all via Wikipedia:<\/strong><\/p>\n<ul>\n<li><a target=_blank title='ASP.Net' href='http:\/\/en.wikipedia.org\/wiki\/ASP.Net'>ASP.Net<\/a><\/li>\n<li><a target=_blank title='XML' href='http:\/\/en.wikipedia.org\/wiki\/XML'>XML<\/a><\/li>\n<li><a target=_blank title='SOAP' href='http:\/\/en.wikipedia.org\/wiki\/SOAP'>SOAP<\/a><\/li>\n<li><a target=_blank title='TCP\/IP' href='http:\/\/en.wikipedia.org\/wiki\/Internet_protocol_suite'>TCP\/IP<\/a><\/li>\n<li><a target=_blank title='Web Services Descriptive Language' href='http:\/\/en.wikipedia.org\/wiki\/Web_Services_Description_Language'>Web Services Descriptive Language<\/a><\/li>\n<li><a target=_blank title='Client-server model' href='https:\/\/en.wikipedia.org\/wiki\/Client%E2%80%93server_model'>Client-server model<\/a><\/li>\n<li><a target=_blank title='Microsoft Visual Studio' href='https:\/\/en.wikipedia.org\/wiki\/Microsoft_Visual_Studio'>Microsoft Visual Studio<\/a><\/li>\n<li><a target=_blank title='Microsoft SQL Server' href='https:\/\/en.wikipedia.org\/wiki\/Microsoft_SQL_Server'>Microsoft SQL Server<\/a><\/li>\n<\/ul>\n<p>Download and rename to <a target=_blank title='wsdl file' href='http:\/\/www.rjmprogramming.com.au\/ASPNet\/WebService\/Primer\/TCS_WW_ITEM.wsdl_GETME'>TCS_WW_ITEM.wsdl<\/a> as you see fit.  Please note that this is just one of many wsdl files for this project.<\/p>\n<p>Some personal experience with Web Services and SAP B1 Web Services is shown <a target=_blank title='SAP B1 Web Services personal experience' href='http:\/\/www.rjmprogramming.com.au\/SAPB1\/Web\/'>here<\/a>.<\/p>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d1795' onclick='var dv=document.getElementById(\"d1795\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"http:\/\/www.rjmprogramming.com.au\/wordpress\/?s=ASP.Net\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d1795' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Web Services allows for communication using the World Wide Web between two devices, as Wikipedia explains below. For our tutorial here we are using Windows, but, if you are more interested in cross-operating-system possibilities look at Java Eclipse Web Service &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/asp-net-web-service-primer-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,25,37,39],"tags":[106,558,1319,1383,1412,1435],"class_list":["post-1795","post","type-post","status-publish","format-standard","hentry","category-elearning","category-networking","category-tutorials","category-visual-studio","tag-asp-net","tag-hello-world","tag-tutorial","tag-visual-studio","tag-web-service","tag-windows"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/1795"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=1795"}],"version-history":[{"count":0,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/1795\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=1795"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=1795"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=1795"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}