View Single Post
  #4 (permalink)  
Old 03-20-2006, 07:22 PM
sam sam is offline
Zimbra Employee
 
Posts: 821
Default

yeah, first send

<Envelope xmlns="http://www.w3.org/2003/05/soap-envelope">
<Body>
<AuthRequest xmlns="urn:zimbraAccount">
<account by="name">user1</account>
<password>****</password>
</AuthRequest>
</Body>
</Envelope>

you'll get back

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<soap:Header>...stuff...
</soap:Header>
<soap:Body>
<AuthResponse xmlns="urn:zimbraAccount">
<authToken>...auth_token...</authToken>
<lifetime>172800000</lifetime>
<sessionId id="55">55</sessionId>
</AuthResponse>
</soap:Body>
</soap:Envelope>


You must save the auth_token and sessionId and pass it back to the server in subsequent requests.
__________________
Sam Khavari

:: :: [ Zimbra ] :: :: [ Bugzilla ] :: :: [ Product Portal ] :: :: [ Wiki ] :: :: [ Downloads ] :: :: [ . ] ::
Reply With Quote