Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Developers

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-18-2006, 03:46 AM
Junior Member
 
Posts: 8
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?
Reply With Quote
  #2 (permalink)  
Old 09-18-2006, 11:49 AM
Senior Member
 
Posts: 58
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..
Reply With Quote
  #3 (permalink)  
Old 09-19-2006, 01:09 AM
Junior Member
 
Posts: 8
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!
Reply With Quote
  #4 (permalink)  
Old 09-19-2006, 01:26 AM
Zimbra Employee
 
Posts: 228
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!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.