Hi all, newbie to this so be gentle.
Im using python and trying to do some simple things with zimbra soap
heres my first post
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<soap:Header>
<context xmlns="urn:zimbra">
<userAgent xmlns="" name="Jimmy code" version="1"></userAgent>
<sessionId xmlns="" id=""></sessionId>
<account xmlns="" by="name">test1@test-zimbra.uk.corpdata</account>
<authToken xmlns="">
</authToken>
</context>
</soap:Header>
<soap:Body>
<AuthRequest xmlns="urn:zimbraAccount">
<account by="name">test1@test-zimbra.uk.corpdata</account>
<password>thepassword</password>
</AuthRequest></soap:Body>
</soap:Envelope>
this seems to work fine and i get the sessionId and authtoken from response to this
then when i post this
soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<soap:Header>
<context xmlns="urn:zimbra">
<userAgent xmlns="" name="Jimmy code" version="1"></userAgent>
<sessionId xmlns="" id="197">197</sessionId>
<account xmlns="" by="name">test1@test-zimbra.uk.corpdata</account>
<authToken xmlns="">
0_8c658488c28dee14e1d488f0b0080b5afabc28d4_69643d3 3363a66303831346133342d356330372d343663642d6263313 52d3731323736323339336135343b6578703d31333a3132363 03030323539353038363b747970653d363a7a696d6272613b
</authToken>
</context>
</soap:Header>
<soap:Body><NoOpRequest></NoOpRequest></soap:Body>
</soap:Envelope>
the mailbox.log says the the xml is formated incorrect or the xml must start and end within the same entity...I use the same function to create the xml
so there shouldnt be any difference...Having played with it, it seems the authToken string seems to break the XML but i cant work out how.
Any ideas folks?
also can i use http to do these requests or does it have to be https?
thanks
Jim


LinkBack URL
About LinkBacks

