Hi All,
I created a WCF Contract as follows:
[OperationContract]
double ConvertToUnit(double value, string unit);
[OperationContract]
double[] ConvertToUnitDbl(double[] value, string unit);
I have hosted this service on a console application. I also created a
winform client used the "Add Service Reference" to add a reference to
the exiting service. The added proxy created looks as follows:
[System.ServiceModel.OperationContractAttribute(Act ion="http://
tempuri.org/IUnitConversion/ConvertToUnit", ReplyAction="http://
tempuri.org/IUnitConversion/ConvertToUnitResponse")]
double ConvertToUnit(double value, string unit);
[System.ServiceModel.OperationContractAttribute(Act ion="http://
tempuri.org/IUnitConversion/ConvertToUnitDbl", ReplyAction="http://
tempuri.org/IUnitConversion/ConvertToUnitDblResponse")]
System.ComponentModel.BindingList<double>
ConvertToUnitDbl(System.ComponentModel.BindingList <doublevalue,
string unit);
All the double[] return types have been converted to
System.ComponentModel.BindingList<double. Why does this happen? How
do i make sure it stay as double[] ?
PS: When i use the svcutil.exe tool to generate the proxy it works
fine. The double[] stays as double[].
Thank you in Advance,
Pooja