Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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
  • SOAP/XML/XHR

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

Jquery $.ajax SOAP webservices

share|improve this question
    
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 :) –  Muhammad Raja May 22 '12 at 6:20
    
I'd replace easily with theoretical –  Per Jakobsen May 22 '12 at 9:02
    
dunno what does that means, Per Jakobsen lol –  Muhammad Raja May 22 '12 at 9:08

2 Answers 2

up vote 2 down vote accepted

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#.

share|improve this answer
    
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 :) –  Muhammad Raja 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.

share|improve this answer
    
this list is doing exactly what i want, but they dont do it for SSL/HTTP :) datapolis.com/products/sharepointlistgadget.aspx I think I need to use a dll, and a COM object :) –  Muhammad Raja May 22 '12 at 6:22

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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