The [SoapRpcService] attribute is useful when you wish to declare all Web
methods within a class to support the RPC style messaging format as opposed
to Document style messaging. In our example, we use the [SoapRpcService]
attribute before the declaration of class.
In Visual Studio, open the Calculator2WebServiceMethod.asmx file; this opens
the Design view. Select Click here to switch to code view.... You will find ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.