Customizing the Webmethod Attribute
Create and consume an XML Web service.
Control characteristics of Web methods by using attributes.
You've seen how easy it is to generate a Web service by using Visual Studio .NET, simply by marking published methods with the WebMethod attribute. But there are also a number of ways to customize your Web service by adding properties to that attribute. Table 4.1 shows the properties that you can use to customize the WebMethod attribute.
Property | Meaning |
---|---|
BufferResponse | Indicates whether the response should be buffered. If set to true (the default) the entire response is buffered until the message is completely serialized and is then sent to the client. If set to false ... |
Get MCAD/MCSD Training Guide (70-320): Developing XML Web Services and Server Components with Visual C#™ .NET and the Microsoft .NET Framework now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.