scriptservice

Webservice complex types and class inheritance

Using the following Webservice definition using aClientArgs as a complex type: [System.Web.Script.Services.ScriptService] public class Controller : System.Web.Services.WebService { [WebMethod] public void save_client(aClientArgs client) { // Save client data } } Then defining aClientArgs as a sub-class: pub...

Usehttpget for script methods in config of asp.net web services

Is there a way to put the usehttpget true/false option for scriptmethods in web.config? I see that even the scriptmethod annotations are placed inline with the code. Is there a way to move this to config as well? Ive seen usehttpget/post option in web.config for webservices but I need the same thing applicable for scriptservices. ...

ASP.NET ScriptService JavaScript alias

Hi, This is more a cosmetic issue, rather than an actual "problem". I've got a solution in which I am converting a lot of PageMethods into WebService calls instead. Some of the PageMethods created a page overhead of several hundred kilobytes, so I thought I'd extract them into their own WebServices, thus reducing the page overhead and e...

ASP.NET ScriptService deserialization problem with derived types

I have a ScriptService web method (.NET 3.5) which takes a single parameter of an abstract base type: [WebMethod(EnableSession=true)] [ScriptMethod()] public bool Test(Item item) { ... } And: namespace Namespace { public abstract class Item { public int id; } public class Group : Item { public Item[] items; } public class I...