Thanks for replying. There seems to be a fair amount of interest out there in automating
SharePoint tasks via Python - except that most people can't seem to get it to work.
There's a list of public SharePoint examples at
. The WSDL files can be accessed as described in the
article in my earlier message, e.g.
From: Jeff Ortel <jortel(a)redhat.com>
Subject: Re: [Fedora-suds-list] Re: Suds and Sharepoint
To: "Kevin" <kehander(a)yahoo.com>
Cc: fedora-suds-list(a)redhat.com
Received: Thursday, March 5, 2009, 6:54 AM
Hey Kevin,
Thanks for you interest in suds.
I've been pretty slammed this week but should be able to
look in to this today. Any chance you can include the
wsdl? Can I get access to this server? I can
resolve questions much quicker if I can run through them on
the workbench.
-jeff
Kevin wrote:
> I think I got somewhere in regards to fixing this
problem. (Sending messages to mailing lists tends to
do that, no?)
>
> I replaced line 361 of Resolver.py with this:
>
>
try:
>
result, ancestry = self.getchild(name,
parent)
>
except ValueError:
>
result = None
>
> The problematic methods then started returning
recognizable objects that I could do something with.
(I would file a bug if I had the slightest idea what was
going on - it's not just a matter of poorly-chosen syntax,
is it?)
>
> I'm still wondering about those "XmlNodes", though.
>
> -K
>
>
>
> --- On Wed, 3/4/09, kehander(a)yahoo.com
<kehander(a)yahoo.com>
wrote:
>
>> From: kehander(a)yahoo.com
<kehander(a)yahoo.com>
>> Subject: Suds and Sharepoint
>> To: fedora-suds-list(a)redhat.com
>> Received: Wednesday, March 4, 2009, 3:37 PM
>> After much anguish, I finally hit
>> upon the combination of Suds and python-ntlm that
would let
>> me access the WSDL on a SharePoint server.
This seems like
>> my best bet for automating some SharePoint tasks.
>>
>> Alas, I'm a bit unclear as to where to go
next. So far
>> I've been able to get meaningful information with
the
>> SiteData.GetList method, but something like, say,
>> Lists.GetListItems remains elusive.
>>
>> The method is described at
http://msdn.microsoft.com/en-us/library/lists.lists.getlistitems.aspx
>> and shows up in the suds client as
>> GetListItems(xs:string listName, xs:string
viewName, query
>> query, viewFields viewFields, xs:string rowLimit,
>> queryOptions queryOptions, xs:string webID, )
>>
>> Running client.service.GetListItems('somelist')
results in
>> a lengthy backtrace that finishes with
>> File
"/usr/lib/python2.5/site-packages/suds/resolver.py",
>> line 361, in findattr
>> result, ancestry =
self.getchild(name,
>> parent)
>> ValueError: need more than 0 values to unpack
>>
>> whereas
client.service.GetListItems('somelist','whatever')
>> ends with
>> File
>>
"/usr/lib/python2.5/site-packages/suds/bindings/binding.py",
>> line 178, in reply_composite
>> raise Exception('tag (%s),
not-found' % tag)
>> Exception: tag (faultcode), not-found
>>
>> I've already been reading
http://www.csharphelp.com/archives4/archive602.html
and
>>
http://www.developer.com/tech/article.php/3104621 ,
but
>> I can't quite understand how to apply it
here. In
>> particular, how do I supply what is referred to in
the SDK
>> as a "System.Xml.XmlNode" ? Is that
something more
>> than just a raw string containing XML code?
>>
>>
>> Thanks, K.
>>
>>
>>
__________________________________________________________________
>> Yahoo! Canada Toolbar: Search from anywhere on the
web, and
>> bookmark your favourite sites. Download it now at
>>
http://ca.toolbar.yahoo.com.
>>
>
>
>
__________________________________________________________________
> Get a sneak peak at messages with a handy reading pane
with All new Yahoo! Mail:
http://ca.promos.yahoo.com/newmail/overview2/
>
>
> _______________________________________________
> fedora-suds-list mailing list
> fedora-suds-list(a)redhat.com
>
https://www.redhat.com/mailman/listinfo/fedora-suds-list
__________________________________________________________________
Instant Messaging, free SMS, sharing photos and more... Try the new Yahoo! Canada
Messenger at