The MessageParameter Attribute
The MessageParameter Attribute also defined in the System.ServiceModel namespace, controls how the names of any operation parameters and return values appear in the service description, that is, how they are emitted as part of the WSDL for the service. This attribute has only one property, the Name property.
One concrete case in which this attribute can be useful is when you need to have a .NET keyword or type name for the name of the XML element that is serialized at the wire-level transport layer.
Eg:
[OperationContract]
int Display(
[MessageParameter(Name="int")]
int a);
No comments:
Post a Comment