I have a script service in asp.net and I need to consume this WS from javascript using JSONP (Script tag injection; since it is cross domain, no $.ajax() call).
In this case, where the input to the web method is a complex structure, I have to create the input structure at the client. How does matching of the client-side structure to the Server side parameter happen?
To make the question a bit more clearer for the unapt answers given :-
Assume that I have somehow created the complex input and passed it to the Script Method. Now, how does the matching/vaidation of my input structure to the input parameter of the Script method happen (or in other words, what is the basis of the matching?)