Name
SoapRpcMethodAttribute
Synopsis
This attribute is used to specify the encoding for SOAP request and response
messages. You can apply this attribute to methods in a web service or in methods in a
proxy class that derives from SoapHttpClientProtocol
(where it’s required
to bind the messages to the appropriate web method).
You use this attribute, instead of SoapDocumentMethodAttribute
,
when you want to use the RPC encoding standard.
There are two options for encoding XML information in a SOAP message: RPC and Document. ASP.NET’s default is Document. RPC (found in section 7 of the SOAP specification) specifies that all method parameters be wrapped in a single element named after the web service method and that each element be named after their respective parameter name. If you apply this attribute to a web method, it will not be able to return objects because no XSD schema will be generated.
Public NotInheritable Class SoapRpcMethodAttribute : Inherits Attribute ' Public Constructors Public Sub New() Public Sub New(ByVal action As String) ' Public Instance Properties Public Property Action As String Public Property Binding As String Public Property OneWay As Boolean Public Property RequestElementName As String Public Property RequestNamespace As String Public Property ResponseElementName As String Public Property ResponseNamespace As String End Class
Hierarchy
System.Object→System.Attribute→ SoapRpcMethodAttribute
Valid On
Method
Get ASP.NET in a Nutshell 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.