ASMX + Silverlight asynchronous-call issue after code is generated

Mar 22, 2009 at 12:24 AM
Edited Mar 22, 2009 at 8:12 AM
There are 2 problems against code-generation so I have to manually modified the source code (WCF + Silverlight asynchronous-call works well).

Issue #1: ASMX back-end service contracts/implementations need to support asynchronous method pair like "BeginXXX" and "EndXXX", o/w the client-side (Silverlight) would not get the data as expected;

Issue #2
: Client-side (Silverlight) service references need to add 2 attributes in "BeginXXX" to deserialize the return type as the following:
[System.ServiceModel.XmlSerializerFormatAttribute()]
[System.ServiceModel.ServiceKnownTypeAttribute(typeof(EntityBase))]


Thanks for any feedback !
Mar 22, 2009 at 12:23 PM
Update:
Issue #1 could be omitted. Issue #2 was the real cause !
Coordinator
Mar 23, 2009 at 11:31 AM
Answered here:
http://sculpture.codeplex.com/WorkItem/View.aspx?WorkItemId=3430