Results 1 to 3 of 3

Thread: Changes to SOAP in 4.5?

  1. #1
    Join Date
    Nov 2006
    Posts
    8
    Rep Power
    9

    Default Changes to SOAP in 4.5?

    The following SOAP request works in 4.0:

    Code:
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:zimbraAdmin" xmlns:ns2="urn:zimbra" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    <SOAP-ENV:Header>
    <ns2:context>
    <authToken>(valid token)</authToken>
    <nosession/>
    </ns2:context>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
    <ns1:GetAccountInfoRequest>
    <account by="name">account@domain.com</account>
    </ns1:GetAccountInfoRequest>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    In 4.5 it returns:

    "permission denied: need admin token"

    Has something significant changed in the SOAP interface in 4.5 that is causing this?

  2. #2
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    12

    Default admin:AuthRequest

    I believe that some of the permissions issues were tightened up. In this case, you must do an <admin:AuthRequest> to get a valid admin auth token to execute the <GetAccountInfo> command. A regular <acct:AuthRequest> gives you a non-admin token for the authenticated account, and that non-admin token does not carry with it any rights beyond access to the auth'ed account's mailbox.
    Bugzilla - Wiki - Downloads - Before posting... Search!

  3. #3
    Join Date
    Nov 2006
    Posts
    8
    Rep Power
    9

    Default

    Thats got it, thanks.

Similar Threads

  1. XSD/WSDL Files for the SOAP Server?
    By photoadrian in forum Developers
    Replies: 5
    Last Post: 12-23-2012, 02:32 AM
  2. Jar For Soap Client
    By wcameron in forum Developers
    Replies: 19
    Last Post: 06-03-2009, 03:04 PM
  3. Replies: 2
    Last Post: 02-26-2007, 11:37 AM
  4. ZCS 4.5 eval ?? + 64/32 ?
    By dlochart in forum Installation
    Replies: 7
    Last Post: 02-06-2007, 09:08 AM
  5. Replies: 1
    Last Post: 12-19-2006, 02:58 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •