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 Display Modes
  #1 (permalink)  
Old 11-05-2005, 02:44 PM
Senior Member
 
Posts: 51
Default Whitespaces in SOAP response

I am having problems with the response of a SOAP request. The returned XML document from AjxRpc.invoke contains whitespaces. One of the problems of this is that the _check method of the AjxSoapDoc doesn't work anymore. The results of the xmlToJs is also incorrect because it generates object properties without labels. This is really a big problem if I want to receive XML instead of JSON.

Can there something be done about it?

Last edited by smies : 11-05-2005 at 03:07 PM.
Reply With Quote
  #2 (permalink)  
Old 11-05-2005, 03:23 PM
Zimbra Employee
 
Posts: 4,784
Default

Is this the SOAP from our server? In general we use JSON since it's so much faster to parse and work with in Javascript. If you need our help you might want to post the XML request/response so it's easier to help.
Reply With Quote
  #3 (permalink)  
Old 11-05-2005, 03:33 PM
Senior Member
 
Posts: 51
Default

No, I use my own server. I am planning to use JSON but I need to rewrite parts of the current SOAP service that I use (Ruby On Rails). Till then I wanted to use xml as response. But the whitespaces in the response wreak havoc in my test code.

This is a response:
Code:
<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <env:Body>
    <n1:FindAllProductsResponse xmlns:n1="urn:ActionWebService" env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
      <return n2:arrayType="xsd:int[4]" xmlns:n2="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="n2:Array">
        <item>
          1
        </item>
        <item>
          2
        </item>
        <item>
          3
        </item>
        <item>
          4
        </item>
      </return>
    </n1:FindAllProductsResponse>
  </env:Body>
</env:Envelope>
Reply With Quote
Reply


Thread Tools
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.

Zimbrablog.com




 

Search Engine Optimization by vBSEO 3.1.0