c# - Dictionary in wcf -
i have wcf service contains method returns dictionary.
the generated method in proxy class returns arrayofkeyvalueofstringstringkeyvalueofstringstring array. how can use method ?
the contract method :
[operationcontract] dictionary<string, string> getesgkeywordquestion(); in proxy class have arrayofkeyvalueofstringstringkeyvalueofstringstring[] getesgkeywordquestion() { // code }
the accepted answer in similar thread reference link telling how have dictionary @ client side in .net .net communication. in other words, poor interoperability if want service consumed non-dot-net applications php or java etc. if had learned/remember data structure in cs, know dictionary implemented through non-linear structure b-tree, dictionary not included in wsdl because of complexity , variant. arrayofkeyvalueofstringstringkeyvalueofstringstring structure generated client designed , intended. if want see consistency on both side , want interoperability, don't use dictionary, instead, use linear structure such array of keyvaluepair.
Comments
Post a Comment