Suppose I want to store a username & password (that are needed as parameters in the webservice), what would be a secure way to save these so the user doesn't have to enter them each time Are the gadget settings meant for this
Yeah, you would write them using System.Gadget.Settings.write(); Just remember that these settings are cleared if the Gadget is removed from the desktop/sidebar.
If you want to create persistent settings across all instances of your gadget you could read from/write to the registry.
I quickly read the articles you suggested, but I was wondering whether it is allowed to call a web service on another domain from within the side bar gadget
I don't think writing your ebay.com developer keys into the gadget is such a good idea. Anyone looking through your code would instantly have access to eBay's API using your allocated calls.
using webservices in a gadget
carstensm
OLE72
Jeff Lynch - MVP
Hi,
you can use wbservice bahavior http://msdn.microsoft.com/workshop/author/webservice/using.asp which is old news but it works in simple cases or you can use XMLHttpRequest object or just use some already made soap client library like this one:
http://www.codeplex.com/Wiki/View.aspx ProjectName=JavaScriptSoapClient
Niko
BarataMota
In relation to your post:
Suppose I want to store a username & password (that are needed as parameters in the webservice), what would be a secure way to save these so the user doesn't have to enter them each time Are the gadget settings meant for this
System.Gadget.Settings.write("variableName", variableName);Thanks,Rudgr
RafaDom
Quincunx55555
Yeah, you would write them using System.Gadget.Settings.write(); Just remember that these settings are cleared if the Gadget is removed from the desktop/sidebar.
If you want to create persistent settings across all instances of your gadget you could read from/write to the registry.
Andy
Subhasmita
Thanks again,
Rutger
DINESH CHAUDHARI
I quickly read the articles you suggested, but I was wondering whether it is allowed to call a web service on another domain from within the side bar gadget
Thanks again.
aybe
I don't think writing your ebay.com developer keys into the gadget is such a good idea. Anyone looking through your code would instantly have access to eBay's API using your allocated calls.
Andy