I wanted to know what is the use of MessageParameterAttribute in wcf.
In my function:
[OperationContract] public float GetAirfare( [MessageParameter(Name="fromCity")] string originCity, [MessageParameter(Name="toCity")] string destinationCity);
I do not use fromCity or toCity anywhere in the implementation or even when using the service. Then what's the point of giving him a name?
. , XSD-, . , XML . XML, CLR. , XML.
, :
<s:Body> <GetAirFare xmlns="yournamespacehere"> <fromCity>Chicago</fromCity> <toCity>Las Vegas</toCity> </GetAirFare> </s:Body>
Source: https://habr.com/ru/post/1745055/More articles:Могу ли я проверить группу RadioBottoms внутри группового окна? - c++Filtering Android ListActivity ArrayAdapter without a physical keyboard? - androidПапки, созданные с ** SUBST cmd **, не работают на IIS 6 - iis-7What is an effective way to find a pattern in large text? - regexLatin basics of language segmentation grammar rules - language-agnosticГалерея шаблонов Wpf - controlsHide table rows except heading - javascriptError deploying WAR file - deploymentSilverlight module testing (using NUnit) - unit-testingdiv popup inside td - htmlAll Articles