OperationFormatUse Enumeration
.NET Framework (current version)
Determines the format of the message.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
| Member name | Description | |
|---|---|---|
| Encoded | Implies that the schemas in the WSDL are abstract specifications that are encoded according to the rules found in SOAP 1.1 section 5. | |
| Literal | Implies that the message is a literal instance of the schema in the WSDL. |
The default value is Literal. Literal means that the message is a literal instance of the schema in the WSDL as shown in the following Document/Literal example.
<Add xmlns="http://Microsoft.ServiceModel.Samples"> <n1>100</n1> <n2>15.99</n2> </Add>
Encoded means that the schemas in the WSDL are abstract specifications that are encoded according to the rules found in SOAP 1.1 section 5. The following is an RPC/Encoded example.
<q1:Add xmlns:q1="http://Microsoft.ServiceModel.Samples"> <n1 xsi:type="xsd:double" xmlns="">100</n1> <n2 xsi:type="xsd:double" xmlns="">15.99</n2> </q1:Add>
Use the System.ServiceModel::XmlSerializerFormatAttribute to set this value.
.NET Framework
Available since 3.0
Available since 3.0
Show: