{"id":24432,"date":"2021-04-09T23:10:07","date_gmt":"2021-04-10T03:10:07","guid":{"rendered":"http:\/\/bangla.salearningschool.com\/recent-posts\/attributes-of-a-web-method-net-xml-programming-root\/"},"modified":"2025-05-11T20:20:46","modified_gmt":"2025-05-11T20:20:46","slug":"attributes-of-a-web-method-net-xml-programming-root","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=24432","title":{"rendered":"Attributes of a Web Method (.Net, XML Programming) #Root"},"content":{"rendered":"<p>Brought from: http:\/\/salearningschool.com\/displayArticle.php?table=Articles&amp;articleID=1118&amp;title=Advanced%20XML%20Web%20Services%20Programming<\/p>\n<p>\nAttributes of a web method. Using attributes, you can define the behavior of the methods exposed. \n<\/p>\n<p>Syntax <\/p>\n<p>VB.net <\/p>\n<p>\nPublic Function &#8230;.<\/p>\n<p>C# <br \/>\n[WebMethod (BufferResponse=false)]<br \/>\npublic int HelloWorld(){<br \/>\n&#8230;&#8230;<\/p>\n<p>}<\/p>\n<p>We just used BufferResponse attribute in the method declaration above. Some other attributes: <\/p>\n<p>Attributes:<\/p>\n<ul>\n<li> BufferResponse: Should the response be buffered?<\/li>\n<li> CacheDuration: Number of seconds the response is cached in memory<\/li>\n<li> Description: Describe a web method<\/li>\n<li> EnableSession: Should session state be enabled or not?<\/li>\n<li> MessageName: Alias to a web method<\/li>\n<li> TransactionOption: Transaction support for a web-method<\/li>\n<\/ul>\n<p>Creating Asynchronous methods: later &#8230;&#8230;<br \/>\n From: http:\/\/sitestree.com\/?p=3770<br \/> Categories:Root<br \/>Tags:<br \/> Post Data:2016-07-17 14:55:33<\/p>\n<p>\t\tShop Online: <a href='https:\/\/www.ShopForSoul.com\/' target='new' rel=\"noopener\">https:\/\/www.ShopForSoul.com\/<\/a><br \/>\n\t\t(Big Data, Cloud, Security, Machine Learning): Courses: <a href='http:\/\/Training.SitesTree.com' target='new' rel=\"noopener\"> http:\/\/Training.SitesTree.com<\/a><br \/>\n\t\tIn Bengali: <a href='http:\/\/Bangla.SaLearningSchool.com' target='new' rel=\"noopener\">http:\/\/Bangla.SaLearningSchool.com<\/a><br \/>\n\t\t<a href='http:\/\/SitesTree.com' target='new' rel=\"noopener\">http:\/\/SitesTree.com<\/a><br \/>\n\t\t8112223 Canada Inc.\/JustEtc: <a href='http:\/\/JustEtc.net' target='new' rel=\"noopener\">http:\/\/JustEtc.net (Software\/Web\/Mobile\/Big-Data\/Machine Learning) <\/a><br \/>\n\t\tShop Online: <a href='https:\/\/www.ShopForSoul.com'> https:\/\/www.ShopForSoul.com\/<\/a><br \/>\n\t\tMedium: <a href='https:\/\/medium.com\/@SayedAhmedCanada' target='new' rel=\"noopener\"> https:\/\/medium.com\/@SayedAhmedCanada <\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Brought from: http:\/\/salearningschool.com\/displayArticle.php?table=Articles&amp;articleID=1118&amp;title=Advanced%20XML%20Web%20Services%20Programming Attributes of a web method. Using attributes, you can define the behavior of the methods exposed. Syntax VB.net Public Function &#8230;. C# [WebMethod (BufferResponse=false)] public int HelloWorld(){ &#8230;&#8230; } We just used BufferResponse attribute in the method declaration above. Some other attributes: Attributes: BufferResponse: Should the response be buffered? CacheDuration: Number of &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/bangla.sitestree.com\/?p=24432\">Continue reading<\/a><\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1973,1917],"tags":[],"class_list":["post-24432","post","type-post","status-publish","format-standard","hentry","category-c-misc","category-fromsitestree-com","item-wrap"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":69388,"url":"http:\/\/bangla.sitestree.com\/?p=69388","url_meta":{"origin":24432,"position":0},"title":"Advanced XML Web Services Programming #24","author":"Author-Check- Article-or-Video","date":"August 20, 2021","format":false,"excerpt":"Attributes of a web method. Using attributes, you can define the behavior of the methods exposed. Syntax VB.net _Public Function ....C# [WebMethod (BufferResponse=false)]public int HelloWorld(){......Attributes: BufferResponse: Should the response be buffered? CacheDuration: Number of seconds the response is cached in memory Description: Describe a web method EnableSession: Should session state\u2026","rel":"","context":"In &quot;C# - Misc&quot;","block_context":{"text":"C# - Misc","link":"http:\/\/bangla.sitestree.com\/?cat=1973"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":66316,"url":"http:\/\/bangla.sitestree.com\/?p=66316","url_meta":{"origin":24432,"position":1},"title":"Java Fundamentals #Java Short Notes","author":"Author-Check- Article-or-Video","date":"July 18, 2021","format":false,"excerpt":"An abstract class may have constructors It is illegal to invoke the new operator on an abstract class An abstract class is allowed to have method implementations There is no restriction about the placement of abstract classes in a class hierarchy It is legal for an abstract class to implement\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":67688,"url":"http:\/\/bangla.sitestree.com\/?p=67688","url_meta":{"origin":24432,"position":2},"title":"Java: Some basic important stuffs #Computer Game Design #Java Short Notes","author":"Author-Check- Article-or-Video","date":"July 27, 2021","format":false,"excerpt":"Data types to represent telephone numbers:a string of ten digits can represent all ten-digit telephone numbers.an object can hold data (integers or strings) of the elements of a telephone numberan integer data type can represent all ten-digit numbers--a boolean can only represent two valuesan enumerated type can only represent a\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":69282,"url":"http:\/\/bangla.sitestree.com\/?p=69282","url_meta":{"origin":24432,"position":3},"title":"JSP: Random Information #37","author":"Author-Check- Article-or-Video","date":"August 16, 2021","format":false,"excerpt":"Three JSP constructs: scripting elements, actions, directives Scripting elements: expressions, scriptlets, declarations Expression = translates to println in servlets in _jspService methods < % = expression %> < % = new java.util.Date() %> inserts values directly to the output scriptlet: block of java code : directly inserted into the related\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":70025,"url":"http:\/\/bangla.sitestree.com\/?p=70025","url_meta":{"origin":24432,"position":4},"title":"OOP concepts in PHP 5 in brief #16","author":"Author-Check- Article-or-Video","date":"August 23, 2021","format":false,"excerpt":"OOP concepts in PHP 5 in short Why this short - note? if you are familiar with OOD and any OOP language such as Java\/C++, this short note will give you enough information to start with PHP 5 OOP Class Class definition starts with the keyword class, followed by a\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":24402,"url":"http:\/\/bangla.sitestree.com\/?p=24402","url_meta":{"origin":24432,"position":5},"title":"JavaScript DOM: Must knowledge to understand Ajax #Root","author":"Author-Check- Article-or-Video","date":"April 8, 2021","format":false,"excerpt":"Understanding Javascript DOM is the first step to understand Ajax. DO M provides many methods to access and edit individual components of a web-page\/document. The methods are called getters. < div id = 'test' > Hello < \/div > getElementById method can reference to this div element. var testDiv =\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/24432","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=24432"}],"version-history":[{"count":1,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/24432\/revisions"}],"predecessor-version":[{"id":78157,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/24432\/revisions\/78157"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=24432"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=24432"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=24432"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}