using webservices in a gadget

Hi,

Has anyone have an example of using a web service in a gadget

Thanks in advance,

rudgr


Answer this question

using webservices in a gadget

  • carstensm

    Are you looking for one that utilizes SOAP, REST, or JSON Or any of the above
  • OLE72

    If you are asking me if I can call for example web service on ebay.com, then the answer is yes!
  • 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

    Hi Andy,

    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

    great, thanks!

  • 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 for the reply, I'm looking for a SOAP example.

    Thanks again,

    Rutger

  • DINESH CHAUDHARI

    Thank you niko.

    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



  • using webservices in a gadget