1 message in com.googlegroups.google-gadgets-apiCan It Be Done?| From | Sent On | Attachments |
|---|---|---|
| KAH | 28 Mar 2007 15:07 |
| Subject: | Can It Be Done?![]() |
|---|---|
| From: | KAH (hend...@gmail.com) |
| Date: | 03/28/2007 03:07:26 PM |
| List: | com.googlegroups.google-gadgets-api |
I am very new to google gadgets... here is my goal.
I have a vb.net webservice that I want to interact with.. there are a couple of concerns that I have. 1. A few of the webservice methods take as parameters an array of a class exposed by the webservice. In the vb.net world this is no problem but since I know of no tool to help me with this in javascript I am not sure it is possible. Think of it this way.. I have a method QueryMe(Attributes() as MyAttributes) where attributes is defined in the webservice as
Public Class MyAttributes ( AttributeType as integer AttributeValue as string )
This way I can pass any number of attributes to the method and get results. How to do this in javascript. I am not necessarily concerned with how to actually establish the get request but rather how I would send these values to the webserver. If the parameters were a fixed number then it isnt hard... but they arent.. can this be done? My thought right now is to write another method that will take a delimited string and parse it out for key value pairs but that is actually a step in the wrong direction I think.
2. The second issue is that I will return from my webmethod some information about the query matches.. and in some cases a file will be passed back as a byte array. I need to know if it is possible to accept this byte array in jscript and then actually write the byte array back out as a file... again this is no problem in vb.net but in jscript I am not sure how to do this... or if it can even be done. I have looked through the api docs and there is a filesystem object.. but not much more about it...
Do you have any thoughts on this? Thank you




