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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -