tag:blogger.com,1999:blog-5295746446529817470.post835152595425995076..comments2023-05-09T16:29:24.130+02:00Comments on Dotnet by Example: JSON services revisited: using a Dictionary as a generic parameterJoost van Schaikhttp://www.blogger.com/profile/02182444268071162776noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-5295746446529817470.post-72249903144469491342008-07-25T18:43:00.000+02:002008-07-25T18:43:00.000+02:00First of all, I am using a Dictionary, not an IDic...First of all, I am using a Dictionary, not an <B>I</B>Dictionary. Apart form that, you have it <I>exactly</I> right. You can't pass an (I)Dictionary <I>to a web service</I> as a parameter. The SOAP Formatter simply simply won't buy that - <I>but the ASP.NET JSON Formatter will</I>! It works exactly as I described. If you try accessing that web service in the 'normal' way, it will not work. Heck, you can't even get a decent WSDL out of it ;-). But as a JSON service, it works. Don't ask me how, thank the anonymous Microsoft programmerJoost van Schaikhttps://www.blogger.com/profile/02182444268071162776noreply@blogger.comtag:blogger.com,1999:blog-5295746446529817470.post-52853199895775007032008-07-25T18:39:00.000+02:002008-07-25T18:39:00.000+02:00This comment has been removed by the author.Joost van Schaikhttps://www.blogger.com/profile/02182444268071162776noreply@blogger.comtag:blogger.com,1999:blog-5295746446529817470.post-80051900435414835152008-05-21T21:39:00.000+02:002008-05-21T21:39:00.000+02:00You can't pass an IDictionary object to a web serv...You can't pass an IDictionary object to a web service as a parameter. How did you do this with out Serializing it first?Anonymousnoreply@blogger.com