tag:blogger.com,1999:blog-1482776199578137808.post1886167207280738810..comments2024-03-12T11:12:59.606+02:00Comments on Yaron Naveh's Web Services 2.0 Blog: Important Wcf performance issue + workaroundYaron Naveh (MVP)http://www.blogger.com/profile/11793800386245798442noreply@blogger.comBlogger13125tag:blogger.com,1999:blog-1482776199578137808.post-45326049024979119992014-04-22T15:20:04.804+03:002014-04-22T15:20:04.804+03:004 Years leater this performance problem is still a...4 Years leater this performance problem is still alive and rocking.<br /><br />Found the reason thanks to your post. The String-Workaround worked well. A 600kb binary data took ~3min. With the workaround <1sekUnknownhttps://www.blogger.com/profile/11469667122626188890noreply@blogger.comtag:blogger.com,1999:blog-1482776199578137808.post-27830569695850791972011-04-26T14:09:10.907+03:002011-04-26T14:09:10.907+03:00Yaron
I generated the proxy with svcutil and I ca...Yaron<br /><br />I generated the proxy with svcutil and I can see all the XmlSerializer Attributes in the generated code. However it still takes multiple minutes to decode just one megabyte of base64 data. I can see in Fiddler that the reply is already sent and I can see in VS that 'System.Runtime.Serialization.resources.dll' is being loaded just in that moment. <br /><br />Anyways, we will stick with MTOM soon, when our server will be capable of doing so.Simnoreply@blogger.comtag:blogger.com,1999:blog-1482776199578137808.post-56050323267977815842011-04-17T01:25:34.072+03:002011-04-17T01:25:34.072+03:00that file is not meant to be hackable so even if i...that file is not meant to be hackable so even if it is related there is another way. In particular some attributes need to be added to the proxy.<br /><br />try to use svcutil with this flag:<br /><br />svcutil "w.wsdl" /serializer:XmlSerializerYaron Naveh (MVP)https://www.blogger.com/profile/11793800386245798442noreply@blogger.comtag:blogger.com,1999:blog-1482776199578137808.post-75061558187809346072011-04-15T09:34:14.241+03:002011-04-15T09:34:14.241+03:00But isn't it exactly what I do by adding "...But isn't it exactly what I do by adding "XmlSerializer as the contents of the Serializer tag in the svcmap file?<br /><br />Reference.svcmap: <br />...<br />XmlSerializer<br />...Simnoreply@blogger.comtag:blogger.com,1999:blog-1482776199578137808.post-19825426968853504882011-04-14T22:23:56.075+03:002011-04-14T22:23:56.075+03:00Sim
When you add the service reference (or use sv...Sim<br /><br />When you add the service reference (or use svcutil) you need to specify that the xml serializer should be used.Yaron Naveh (MVP)https://www.blogger.com/profile/11793800386245798442noreply@blogger.comtag:blogger.com,1999:blog-1482776199578137808.post-14288265329528937442011-04-14T14:20:25.805+03:002011-04-14T14:20:25.805+03:00Has anyone tried the XmlSerializer workaround? For...Has anyone tried the XmlSerializer workaround? For me it didn't work. One megabyte of base64 encoded data takes more than a minute to deserialize anyway.<br />To assure I did things right: I simply add XmlSerializer as the contents of the tag in the svcmap file.Simnoreply@blogger.comtag:blogger.com,1999:blog-1482776199578137808.post-43194465431970412742010-12-09T16:01:39.125+02:002010-12-09T16:01:39.125+02:00Thanks Valéry for the follow up!Thanks Valéry for the follow up!Yaron Naveh (MVP)https://www.blogger.com/profile/11793800386245798442noreply@blogger.comtag:blogger.com,1999:blog-1482776199578137808.post-77796036062525481782010-12-09T14:07:25.252+02:002010-12-09T14:07:25.252+02:00A fix won't be provided by Microsoft before th...A fix won't be provided by Microsoft before the release of .Net 4.5.<br /><br />Here is the answer from a Microsoft's Distributed Services Team: "The current release of 4.0 and 3.5 does not include a fix for this issue, and the dev team is looking into this for a future release which would be either 4.5 or post-4.5 release. I don’t have a date for this though."Valéry Letroyehttps://www.blogger.com/profile/16414072546959091735noreply@blogger.comtag:blogger.com,1999:blog-1482776199578137808.post-78206353265614651972010-11-16T17:35:58.954+02:002010-11-16T17:35:58.954+02:00Thanks Man for the great investigations... !! You ...Thanks Man for the great investigations... !! You Rock !!<br />-Honest IndianAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-1482776199578137808.post-84906434720633211052010-11-03T10:54:51.432+02:002010-11-03T10:54:51.432+02:00Great job debugging this.
I'm surprised that p...Great job debugging this.<br />I'm surprised that problem like that have been surviving for a long time. Especially keeping in mind that their workaround is so obviously hacky.Dmitry Ornatskyhttps://www.blogger.com/profile/12495176946415680985noreply@blogger.comtag:blogger.com,1999:blog-1482776199578137808.post-20754660581741635882010-10-28T12:07:08.936+02:002010-10-28T12:07:08.936+02:00This is really a great analysis!
Thanks a lot fo...This is really a great analysis! <br /><br />Thanks a lot for investigating so far this issue and reporting your findings.<br /><br />You suggest good alternatives to solve the immediate performance issue. But long term, for a company with 100s of developers creating business applications which consume web services, I still hope a fix in WCF to fully benefit the out-of-the-box automatic code generation.Valéry Letroyehttps://www.blogger.com/profile/16414072546959091735noreply@blogger.comtag:blogger.com,1999:blog-1482776199578137808.post-86686621303715507602010-10-28T10:30:03.901+02:002010-10-28T10:30:03.901+02:00Wow, it's a really deep dive!!!
Thank you!!!Wow, it's a really deep dive!!!<br />Thank you!!!Moshehttps://www.blogger.com/profile/10868143144833262475noreply@blogger.comtag:blogger.com,1999:blog-1482776199578137808.post-33537297772325338982010-10-28T07:31:52.177+02:002010-10-28T07:31:52.177+02:00WowWowNenhttps://www.blogger.com/profile/13290841574197750806noreply@blogger.com