suds and Exchange Web Services
by Jon Wynacht
Hi,
I'm using the suds-ews branch to "try" and connect to Exchange Web Services for a client. Couple things I've run into:
1. I need to bring Services.wsdl, messages.xsd and types.xsd local and not on the Exchange server so I could modify Services.wsdl and append the following:
<wsdl:service name="ExchangeServices">
<wsdl:port name="ExchangeServicePort" binding="tns:ExchangeServiceBinding">
<soap:address location="https://exchange.server.com/ews/Exchange.asmx" />
</wsdl:port>
</wsdl:service>
2. Now, I get the client creation in Python just fine but when I go to call a service it wants me to, obviously, authenticate.
I can authenticate to the server upon client creation but I get a bad wsdl which needs the xml snippet from above. I can go local with the wsdl but then I need to authenticate to call a service.
Can the client call a service and pass a transport as well?
Thanks,
Jon
13 years, 7 months
Polter were under a tree on th
by Gollwitzer Zurin
Ls, but Glora stopped him. "No. We are the right size." We were about a
hundred feet back from the opening. The giant's legs disappeared.
But in a moment the round, light hole of the exit was obscured again.
His head and shoulders! He was lying prone. His great
arms came in. He hitched forward. The width of his expanding
shoulders wedged. I think that
he expected to reach us with a single snatch of his tremendous arms. Or
perhaps he was confused, or forgot his
growth. He did not reach us. His shoulders stuck. Then suddenly
he was trying
to back out, but could not!
It was only a moment. We stood in
the radiant gloom of the tunnel, confused and frightened. The giant's
voice roared, reverberating around
us. Anger. A note of fear. Finally stark terror. He heaved, but the
rocks of the opening held solid. Then there was a crack, a gruesome
rattling, splintering--his shoulder bones breaking. His whole gigantic
body gave a last convulsive lunge, and he emitted a deafening shrill
scream of agony. I was aware of the tunnel-mouth breaking upward.
Falling rocks--an avalanche, a cataclysm around us. Then
light overhead. The giant's crushed body lay motionless. A pile of
boulders, rocks and loose metallic
earth was strewn upon
his head and torso, illumined by the outer light through a jagged rent
where the cliff-face had fallen down. We were unhurt, crouching
back from the avalanche.
The giant's mangled body was still expanding; shoving at the litter of
loose rocks. In a moment it would again
be too small for the
broken cliff opening. I found my wits. "Alan, we've got to get out of
here. God--don't you see what's happening?" But
Glora r
13 years, 7 months
The poet, at your service, " said her sister merrily
by Kimbra Cuzick
this?' said Duncan, serious for the first time. He was always more
grave than I, and used often to curb my high spirits--who would think
it now? "'Fiddle-faddle! Regret a pot of money, or a Queen's commission
as Field-marshal?' I asked flippantly. "'Yet the pot of money might not
make us really better off, and the Queen's commission might take
me away from you,' he said, and stooped to kiss me. "I don't know what
came over me, then. A sudden fear seemed to contract my heart. I caught
him about the neck, declaring we could not be happier than we were.
"'Throw the letter into the fire, Duncan!' I cried.
'It may separate us, and I'd rather have you than all the world
besides!' He held me close a minute, then laughed
a little. "What geese we are! How could
anything separate us, if we don't let it?
You know very well any advantage would cease to be one the minute it
came between us. We will send the letter, but we will use our own
judgment
about whatever it brings us.' "So it was sent, and--what
is that? Tegeloo, what is it? are we to take to the boats, after all?
Why are they shouting so?" She rose, and the girls after her. Tegeloo,
seemingly deprived of speech, was motio
13 years, 7 months
Sharepoint and SUDS, partial success and a question on UpdateListItems problems
by Michael Conry
Hi,
I've been trying to get to grips with SUDS as an interface to
Sharepoint/SOAP, and have been very pleased.
The resources I've worked from are principally
https://fedorahosted.org/suds/wiki/SharepointArticle
and
http://stackoverflow.com/questions/2629918/how-to-update-documents-metad
ata-in-sharepoint-linux-webservices-sharepo
(the second, I think, draws on the first)
Things are working OK for me except for the very last example in the
SharepointArticle guide.
I can setup my clients (After a bit of messing around with
http-proxies), I can create lists/libraries, folders and so on. Where I
hit a problem is with the UpdateListItems method, which takes XML as its
argument.
Following the guide, diligently, I first leave out the nsX: bit and
<updates>, and get the error as described. Then I try the equivalent of
c_lists.service.UpdateListItems('Support Schedule',str(batch))
and get the error described ("Data at the root level is invalid. Line 1,
position 1.")
Finally, I do the recommended approach
updates = Element('ns0:updates')
updates.append(batch)
(Except in my case I think ns1 is the correct ns, see below.)
However, I still have an error "Value does not fall within the expected
range."
My debug output is:
DEBUG:suds.client:sending to
(http://esbmoss/sc/esbiengfm/ams/test_mc/_vti_bin/lists.asmx)
message:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:ns0="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns1="http://schemas.microsoft.com/sharepoint/soap/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<ns0:Body>
<ns1:UpdateListItems>
<ns1:listName>TestCreateList</ns1:listName>
<ns1:updates>
<Batch OnError="Continue" ListVersion="1">
<Method ID="1" Cmd="New">
<Field Name="ID">New</Field>
</Method>
</Batch>
</ns1:updates>
</ns1:UpdateListItems>
</ns0:Body>
</SOAP-ENV:Envelope>
DEBUG:suds.client:headers = {'SOAPAction':
u'"http://schemas.microsoft.com/sharepoint/soap/UpdateListItems"',
'Content-Type': 'text/xml; charset=utf-8'}
DEBUG:suds.client:http succeeded:
<?xml version="1.0" encoding="utf-8"?><soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><soap:Fault><fau
ltcode>soap:Server</faultcode><faultstring>Exception of type
'Microsoft.SharePoint.SoapServer.SoapServerException' was
thrown.</faultstring><detail><errorstring
xmlns="http://schemas.microsoft.com/sharepoint/soap/">Value does not
fall within the expected
range.</errorstring></detail></soap:Fault></soap:Body></soap:Envelope>
I've tried this in very, very, many ways, created different types of
lists, etc., and have kept hitting the same problem. Using the U2U Caml
utility, I did manage to create things over SOAP, so server must be ok.
For what it's worth, my SUDS/Python code is as follows (for a minimal
example).
Can anyone offer any pointers?
from suds import client
from suds.transport.https import WindowsHttpAuthenticated
d = dict(http='127.0.0.1:5865',https='127.0.0.1:5865')
from suds.sax.element import Element
from suds.sax.element import Attribute
SITE = "http://esbmoss/sc/esbiengfm/ams/test_mc"
USER = "Domain\\Username" # AD user name
PASS = "Password"
import logging
logging.basicConfig(level=logging.INFO)
logging.getLogger('suds.client').setLevel(logging.DEBUG)
wss_lists = client.Client("%s/_vti_bin/lists.asmx?WSDL" %
SITE,transport=WindowsHttpAuthenticated(username=USER, password=PASS,
proxy=d))
batch = Element("Batch")
batch.append(Attribute("OnError","Continue"))
batch.append(Attribute('ListVersion','1'))
method= Element("Method")
method.append(Attribute("ID","1")).append(Attribute("Cmd","New"))
method.append(Element("Field").append(Attribute('Name','ID')).setText('N
ew'))
batch.append(method)
updates=Element('ns1:updates')
updates.append(batch)
print "--------------------------"
print updates
print "--------------------------"
#wss_lists.service.UpdateListItems('TestCreateList',str(batch))
wss_lists.service.UpdateListItems('TestCreateList',updates)
An timpeallacht? - Smaoinigh air sula bpriontáileann tú an r-phost seo.
Please consider the Environment before printing this email.
* ** *** ** * ** *** ** * ** *** ** *
Tá an t-eolas sa ríomhphost seo agus in aon chomhad a ghabhann leis rúnda agus ceaptha le haghaidh úsáide an té nó an aonáin ar seoladh chuige iad agus na húsáide sin amháin.
Is tuairimí nó dearcthaí an údair amháin aon tuairimí nó dearcthaí ann, agus ní gá gurb ionann iad agus tuairimí nó dearcthaí ESB.
Má bhfuair tú an ríomhphost seo trí earráid, ar mhiste leat é sin a chur in iúl don seoltóir.
Scanann ESB ríomhphoist agus ceangaltáin le haghaidh víreas, ach ní ráthaíonn sé go bhfuil ceachtar díobh saor ó víreas agus ní glacann dliteanas ar bith as aon damáiste de dhroim víreas.
Cláraithe an Chomhlachta: http://www.esb.ie/companies
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed.
Any views or opinions presented are solely those of the author, and do not necessarily represent those of ESB.
If you have received this email in error please notify the sender.
Although ESB scans e-mail and attachments for viruses, it does not guarantee that either is virus-free or accepts no liability for any damage sustained as a result of viruses.
Company Registration Information: http://www.esb.ie/companies
* ** *** ** * ** *** ** * ** *** ** *
13 years, 7 months
Bject despair, so that he required
by Stachowicz Meo
First place, the harvest was late that year. We
find in the Scottish newspapers
of the time, that, in the middle of October, a great deal of grain was
still _out_
even in the favoured district around Falkirk; while a letter from
Sanquhar (Burns's neighbourhood), dated the 21st, states that "while
much was cut, _very little was
yet got in_, owing to the bad weather." It appears that harvest was
commenced by the 8th of
September in some districts, but was interrupted by
rains, and was not concluded till near the end of the ensuing month.
Consequently,
the incident _might_ take place in the latter part of October, and
_still be connected with
harvest operations_. The second
portion of our evidence on the
subject is from one of the exact sciences, and appears to us at once
to settle the time of the day--the month--and almost the day of the
month. 'It fully
appears that the planet Venus is the one referred to by the poet, for
the description applies only to it. Now Venus was in conjunction with
the sun, May 30, 1789, and after that became visible as the
_evening-star_ towards the end of the summer, reaching its greatest
brilliancy in winter. It is therefore certain that the star
which "loves to greet the early morn" did not at this time "usher in
the day," and consequently, so far as the time of day alluded to in
the poem is concerned, a poetical liberty was taken with truth. On the
21st of September the sun set at six o'clock, and Venus forty-four
minutes thereafter.
The planet was consequently not to be seen at that time except faintly
in the twilight. But on the 21st of October the sun set in the
latitude of Ellisland at 4h 53m, and Venus 1h 3m afterwards.
Consequently, Venus would then
13 years, 7 months
is a non-significant sound mark
by Leblane Alamia
Rst few pages of the _Poetics_ has an exact English equivalent. Every
proposition has to be reduced to its lowest terms of thought and then
re-built.
This is a difficulty which no translation can quite deal with; it must
be left to a teacher who knows Greek. And there is a kindred difficulty
which flows from it. Where words can be translated into equivalent
words, the style of an original can be closely followed; but no
translation which aims at being written in
normal English can reproduce
the style of Aristotle. I have sometimes played with the idea that a
ruthlessly literal
translation, helped out by bold punctuation, might be the best. For
instance, premising that the words
_poesis_, _poetes_ me
13 years, 7 months
Issue with nested includes
by Katz, Aryeh (AKATZ)
I posted ticket 354 to Trac which discusses XSD files that fail to parse due
to circular dependencies. Part of the issue seems to be that include files
are included recursively from lower level files, before all the includes of
the topmost file have been included.
I was wondering if there was any way to get this ticket looked at. I marked
it as a duplicate of 239, but I'm not sure that the fix is the same. I think
my XSD would work if all the files in the topmost file were included first,
and only later descending into the lower level files.
I'd very much appreciate if someone could unzip the files, and let me know
if this in fact a duplicate issue, or whether this can be worked on
independently of ticket 239.
Thanks
Aryeh Katz
ARINC
Principal Analyst
4102664294
---------------------
This e-mail (including any attachments) is intended only for the use of the
individual or entity named above and may contain privileged, proprietary, or
confidential information. The information may also contain technical data
subject to export control laws.
---------------------
13 years, 7 months
Error: suds.TypeNotFound: Type not found: '(schema, http://www.w3.org/2001/XMLSchema, )'
by Rob D
Hey guys, I've been trying to get suds working but am currently getting
this error:
from suds.client import Client
url='http://ws.tramtracker.com.au/pidsservice/pids.asmx?WSDL'
client = Client(url)
robzy@cookiemonster:/mnt/storage/YarraTrams$ python test.py
Traceback (most recent call last):
File "test.py", line 22, in <module>
client = Client(url)
File "build/bdist.linux-i686/egg/suds/client.py", line 112, in
__init__
File "build/bdist.linux-i686/egg/suds/reader.py", line 152, in open
File "build/bdist.linux-i686/egg/suds/wsdl.py", line 159, in __init__
File "build/bdist.linux-i686/egg/suds/wsdl.py", line 220, in
build_schema
File "build/bdist.linux-i686/egg/suds/xsd/schema.py", line 95, in load
File "build/bdist.linux-i686/egg/suds/xsd/schema.py", line 323, in
dereference
File "build/bdist.linux-i686/egg/suds/xsd/sxbasic.py", line 422,
in dependencies
suds.TypeNotFound: Type not found: '(schema,
http://www.w3.org/2001/XMLSchema, )'
robzy@cookiemonster:/mnt/storage/YarraTrams$
Unfortunately I don't really know enough about XML to properly diagnose
the problem, but my Googling suggests that the Doctor(?) object would be
the way to fix it. Unfortunately, I have failed in finding documentation
that is sufficient given my small amount of understanding. Would anyone
have any suggestions?
For reference, the WSDL can be seen at http://pastebin.com/K0PVD0DK
Thanks,
Rob.
13 years, 7 months
0.4 build (GA R698-20100910) re-released in to pypi
by Jeff Ortel
All,
Found some critical bugs in 0.4.
* The ImportDoctor should have subclassed DocumentPlugin and reference
context.document instead of context.root.
* Definitions (wsdl) needed to call DocumentPlugins.parsed() for schema
defined as part of the wsdl.
So, I fixed and re-released 0.4 build: GA R698-20100910. I know, I know ... I should
have incremented the version. But, I just released 0.4 and didn't want to :/ If there is
an outcry, I'll release as 0.4.1.
Also, 0.4 being pushed in to Fedora and EPEL. I'll send a follow up email when I get
notification that it is available.
Regards,
Jeff
13 years, 7 months