Is there an example of a complex webservice with the beta version of ms ajax? I can't get it to work like the previous version did. I returned a class A in a webservice, where class A has a public class B field. In the generated javascript proxy, there's no reference to class B whatsoever. Am I missing something? Are there some examples I'm missing?
The generated javascript proxy just include top-level classes, i.e., does not recurse into the types.
If you need to include class B in the generated javascript proxy, you need to apply the Microsoft.Web.Script.Services.GenerateScriptTypeAttribute on your web service definition or web method definition.
I hope that helps.
Maíra
No comments:
Post a Comment