how to use MessageParameterAttribute in wcf
Posted
by Archie
on Stack Overflow
See other posts from Stack Overflow
or by Archie
Published on 2010-05-12T06:44:35Z
Indexed on
2010/05/12
6:54 UTC
Read the original article
Hit count: 316
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?
© Stack Overflow or respective owner