
624
|
Chapter 34: The System.Web.Services.Protocols Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
under the Body element. If you specify Wrapped, all parameters will be wrapped in a
single element beneath the Body element. Default uses the default web service param-
eter style, which will be Wrapped unless the web service includes a
SoapDocumentServiceAttribute in its class declaration that specifies differently.
Hierarchy
System.Object ➝ System.ValueType ➝ System.Enum(System.IComparable, System.IFor-
mattable, System.IConvertible)
➝ SoapParameterStyle
Returned By
SoapDocumentMethodAttribute.ParameterStyle, SoapDocumentServiceAttribute.
ParameterStyle
Passed To
SoapDocumentMethodAttribute.ParameterStyle, SoapDocumentServiceAttribute.{Parame-
terStyle, SoapDocumentServiceAttribute( )}
SoapRpcMethodAttribute
System.Web.Services.Protocols (system.web.services.dll)
sealed class
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