Results 1 to 3 of 3

Thread: strange JSON response for AuthRequest.

  1. #1
    parin is offline Active Member
    Join Date
    Feb 2013
    Location
    India
    Posts
    28
    Rep Power
    2

    Default strange JSON response for AuthRequest.

    the response format for AuthRequest should be:

    {
    "Header":{
    "context":{
    "change":{
    "token":4956
    },
    "_jsns":"urn:zimbra"
    }
    },
    "Body":{
    "AuthResponse":{
    "authToken":{
    "_content":""
    },
    "lifetime":172800000,
    "skin":[
    {
    "_content":"serenity"
    }
    ],
    "_jsns":"urn:zimbraAccount"
    }
    },
    "_jsns":"urn:zimbraSoap"
    }

    according to xml structure. but when i receive the response,the authToken element contains value as List item rather than simple value.
    {
    "Header":{
    "context":{
    "change":{
    "token":4956
    },
    "_jsns":"urn:zimbra"
    }
    },
    "Body":{
    "AuthResponse":{
    "authToken":[
    {
    "_content":""
    }
    ]
    ,
    "lifetime":172800000,
    "skin":[
    {
    "_content":"serenity"
    }
    ],
    "_jsns":"urn:zimbraAccount"
    }
    },
    "_jsns":"urn:zimbraSoap"
    }


    the response is included as "authToken":[ { "_content":" ]} instead of "authToken":{ "_content":" "}. is it a bug or something?

  2. #2
    gren is offline Zimbra Employee
    Join Date
    Aug 2010
    Location
    England
    Posts
    11
    Rep Power
    4

    Default

    Thanks for spotting this. It is indeed a bug. I've raised Bug 85110 ? JAXB/Documentation for SOAP AuthResponse is incorrect - authToken is an array, not a singleton to document it.

    regards,
    Gren
    Gren Elliot
    Lead Engineer - Server
    Zimbra | Community & Collaboration

  3. #3
    parin is offline Active Member
    Join Date
    Feb 2013
    Location
    India
    Posts
    28
    Rep Power
    2

    Default

    thank you gren. I saw that on bugzilla. so now they are planning to change the documentation for that request. thanx again.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 05-02-2012, 04:38 AM
  2. Replies: 2
    Last Post: 09-27-2011, 06:41 AM
  3. SOAP AuthRequest/Response Syntax
    By hillman in forum Developers
    Replies: 4
    Last Post: 04-20-2010, 02:54 PM
  4. BAD JSON RESPONSE on SearchDirectoryRequest
    By Srikanth G in forum Administrators
    Replies: 3
    Last Post: 01-11-2010, 06:44 AM
  5. BAD JSON RESPONSE on SearchDirectoryRequest
    By anthony.rasat in forum Administrators
    Replies: 15
    Last Post: 09-08-2009, 12:39 AM

Posting Permissions

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