Attributes of a Web Method (.Net, XML Programming) #Root

Brought from: http://salearningschool.com/displayArticle.php?table=Articles&articleID=1118&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 ….

C#
[WebMethod (BufferResponse=false)]
public int HelloWorld(){
……

}

We just used BufferResponse attribute in the method declaration above. Some other attributes:

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 be enabled or not?
  • MessageName: Alias to a web method
  • TransactionOption: Transaction support for a web-method

Creating Asynchronous methods: later ……
From: http://sitestree.com/?p=3770
Categories:Root
Tags:
Post Data:2016-07-17 14:55:33

Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada