문제

i have a problem with WCF service.. i am using service reference in windows app project. In Reply to one of my wcf methods there is a class which has a propety ID int (datacontract) it always comes 0. When i try from code it works. but when i actually installl the wcf service and try it comes 0. any idea guys ? some settings with proxy? anything at all?

[DataMember(Order = 1)]
public int ID { get; set; }

[DataMember(Order = 2)]
public int Quantity { get; set; }

now quantiy is populated, but ID is always 0. I chekcd the database calls, ID and quantiyt is returned. also mapping are all correct. From code i get both values but when i install setup this ID field never retuned

도움이 되었습니까?

해결책

This problem was related to multilingual application. This code worked fine for English, but in other language login it failed. Reason being, In request parameter dates were passed, and for login other than english, date comparison used to fail.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top