Results 1 to 4 of 4

Thread: Question on SOAP compatibility

  1. #1
    Join Date
    Apr 2006
    Location
    Netherlands
    Posts
    8
    Rep Power
    9

    Default Question on SOAP compatibility

    Currently I'm working on a Python SOAP client for Zimbra (using ZSI as SOAP implementation). ZSI doesn't support SOAP messages containing "inline" tags, such as: <name="test"/>; ZSI always encodes these messages as <name>test</name>. Can the Zimbra SOAP interface handle this, in stead of the specified tags? Or will this cause troubles?

  2. #2
    Join Date
    Nov 2005
    Posts
    55
    Rep Power
    9

    Default 'Inline' tags (attributes)

    I'm not quite sure what you mean by an inline tag. Do you mean attributes? for example:
    Code:
    <node attribute="somevalue" />
    I would be surprised that any SOAP API would convert attributes into content because it would make something like this into nonsense:
    Code:
    <node attribute="somevalue">text content</node>
    Zimbra uses attributes often as key values so you will often see large sets of nodes that look like:
    Code:
    <attr name="key">value</attr>
    Last edited by Coilcore; 09-18-2006 at 11:53 AM.

  3. #3
    Join Date
    Apr 2006
    Location
    Netherlands
    Posts
    8
    Rep Power
    9

    Default

    Well, take the SOAP AuthRequest call for example

    Code:
    <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
    <soap:Header>
    <context xmlns="urn:zimbra">
    <nosession/>
    <format type="js"/>
    </context>
    </soap:Header>
    <soap:Body>
    <AuthRequest xmlns="urn:zimbraAccount">
    <account by="name">
    robin
    </account>
    <password>
    password
    </password>
    </AuthRequest>
    </soap:Body>
    </soap:Envelope>
    With these inline tags, I mean constructs like
    Code:
    <nosession/>
    <format type="js"/>
    Thanks!

  4. #4
    Join Date
    Aug 2005
    Posts
    228
    Rep Power
    10

    Default

    The following two tags will parse the same via the XML parser, so you should be ok:
    Code:
    <nosession/>
    <nosession></nosession>
    Bugzilla - Wiki - Downloads - Before posting... Search!

Similar Threads

  1. Zimbra SOAP Question
    By jonnybravo in forum Developers
    Replies: 8
    Last Post: 07-26-2007, 04:09 PM
  2. SOAP question
    By dbarnett in forum Developers
    Replies: 6
    Last Post: 11-17-2006, 10:48 AM
  3. SOAP / tns / TomCat question
    By Robin Diederen in forum Developers
    Replies: 3
    Last Post: 06-27-2006, 01:43 PM
  4. another SOAP related dumb question...
    By antonio.meireles in forum Administrators
    Replies: 2
    Last Post: 10-17-2005, 11:58 AM
  5. SOAP - dumb question of the day
    By antonio.meireles in forum Developers
    Replies: 1
    Last Post: 10-14-2005, 09:29 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
  •