I want to access sharepoint webservices behind a windows based authentication/ ISA server so that I can getallitems of a list.

I been looking for a tutorial to do this or come up with my own logic but no success. However I found this tutorial which does what I want, but for forms authentication:

Form Based authentication tutorial

I actually want to build a Windows 7 gadget, so all I can use is:

  • HTML
  • Script

Here's a blog post that does the same thing, but with no authentication at all:

Jquery $.ajax SOAP webservices

  • Man you really are having problems with this Windows 7 gadget... :P
    – Kit Menke
    May 22 '12 at 1:50
  • LOL and you know it :D, i really wanna do it, everyone saying i can't do it, its impoossible, but i beleive if you can do something with User Interface then you can easily do that thing with Coding :) May 22 '12 at 6:20
  • I'd replace easily with theoretical May 22 '12 at 9:02
  • dunno what does that means, Per Jakobsen lol May 22 '12 at 9:08

if you can do something with User Interface then you can easily do that thing with Coding

But building a Gadget the way you are trying is not really coding.

Here is a tutorial on how to build a gadget using C#. Once you have that down you would then need to learn how to use the SharePoint web services.

Then you would generate a proxy class from the list web service (http:///_vti_bin/Lists.asmx.).

Then you would need to learn to call the web service and parse the returned data. You could do this all with authentication because you are using C#.

  • Nice this seems like a better way to go since you can use C#. I was assuming only HTML/JS/CSS could be used.
    – Kit Menke
    May 22 '12 at 15:55
  • I will give it a go soon :) May 25 '12 at 10:29

The problem is.. you can't really authenticate the user using JavaScript. At least, not like in C# where you can just provide credentials or use the user's DefaultNetworkCredentials.

The only thing I can think of to get this to work is by loading a page from the SharePoint server. Hopefully, since it is Windows auth, the page will load automatically with the current user's credentials.

Maybe try creating a HTML page that is calling the SharePoint webservices on the SharePoint server (in a document library for example) and then load that page in an IFRAME in your gadget.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.