how to use MessageParameterAttribute in wcf
- by Archie
hello,
I wanted to know what is the use the MessageParameterAttribute in wcf.
In my function:
[OperationContract]
public float GetAirfare(
[MessageParameter(Name=”fromCity”)] string originCity,
[MessageParameter(Name=”toCity”)] string destinationCity);
I dont use fromCity or toCity anywhere in the implementation or even while using a service. Then whats the point in giving it a name?