Results 1 to 3 of 3

Thread: Whitespaces in SOAP response

  1. #1
    Join Date
    Oct 2005
    Location
    Urmond, Netherlands
    Posts
    51
    Rep Power
    10

    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.

  2. #2
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    19

    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.

  3. #3
    Join Date
    Oct 2005
    Location
    Urmond, Netherlands
    Posts
    51
    Rep Power
    10

    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>

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. How to handle SOAP body response in PHP
    By ferdinant in forum Developers
    Replies: 1
    Last Post: 07-03-2007, 02:21 PM
  4. Replies: 3
    Last Post: 05-25-2006, 02:16 PM
  5. Is it started or not
    By kwelipatton in forum Installation
    Replies: 10
    Last Post: 03-28-2006, 11:11 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
  •