PDA

View Full Version : How to send an javascript array of object to a .net webservice?



polo
25 Nov 2009, 3:14 AM
I have an array of object and i need to send it to a webservice [WS] (write in .NET)
I can send string, integer and so on to my WS, but i don't know how send this array of object.

I can convert in XML, maybe, and sent it as string, an re-convert in my ws... but i don't know with javascript if it's possibile convert an array of object in XML...

In my WS i try with a param array of same object re-write in .net, but doesn't work...

Thanks

25 Nov 2009, 6:44 AM
you can use Ext.encode to encode the data and shuttle it down via Ext.Ajax.request