Results 1 to 3 of 3

Thread: SOAP API changes from 5 to 6?

  1. #1
    Join Date
    Dec 2006
    Rep Power

    Default SOAP API changes from 5 to 6?

    Since I'm getting nowhere with support after 2 weeks, I figure I post here and hope someone else can help...

    We use SOAP API routines to manage our add/deletes. But after upgrading our dev environment to 6, it's not working properly. The scripts making the calls get error 500s where as there is no error being reported in the log files at the server.

    Here's an example code:

    <ns0:Envelope xmlns:ns0="">
    <ns0:Header><ns1:context xmlns:ns1="urn:zimbra"><authToken>nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn</authToken>
    <ns0:Body><ns2:CreateAccountRequest xmlns:ns2="urn:zimbraAdmin">
    <an="displayName">John N. Doe</a>

    We get back:

    SOAP request failed: code=500, error=Server closed connection without
    sending any data back

    But looking at the logs, the account is created and there are no errors...
    Last edited by su_A_ve; 07-26-2011 at 07:53 AM.

  2. #2
    Join Date
    Oct 2005
    USA, Canada and India
    Rep Power


    what Dev tools/programming language are you using and this output is from where ?
    the <ns0 and <ns2 tags you have are little weird.

    By the way: please dont post the Auth tokens on public fourms its not secure.

    i have used the API since 4.0 to 7.0, works across thing i must say Zimbra API is highly stable and backward compatible.

    i2k2 Networks
    Dedicated & Shared Zimbra Hosting Provider

  3. #3
    Join Date
    Dec 2006
    Rep Power


    We are using perl (Zimbra::SOAP). I'm working with our programmer - he passed me the sample code he is using.

    Looking it in action, we had increased the logging level and clearly see the response back from the server, however 'somewhere' is being either misinterpreted or not understood and hence an error 500 is returned by libwwwperl.

    Here's the snippet of code that checks for that response:
       my $res = $ua->request($req);
        if (!defined($res)) {
            print STDERR "No response from server\n";
            return undef;
        my $xml = undef;
        eval {
            $xml = Zimbra::SOAP::XmlElement::parse($res->content);
        if (!defined($xml)) {
            # Check for network/HTTP error after trying XML parse because
            # a SOAP fault comes back with HTTP 500 status.
            if ($res->is_error()) {
                print STDERR
                    "SOAP request failed: code=" . $res->code() .
                    ", error=" . $res->message() . "\n";
            } else {
                # We have legitimate XML parse error.
                print STDERR
                    "Unable to parse SOAP response: " . $res->content() . "\n";
            return undef;

Similar Threads

  1. zmzimletctl deploy - ERROR -
    By todd_dsm in forum Administrators
    Replies: 0
    Last Post: 04-02-2009, 01:41 PM
  2. SOAP API differences in v5.0.0
    By notify in forum Developers
    Replies: 3
    Last Post: 01-09-2008, 10:57 AM
  3. PolicyD through a SOAP API
    By rafrio in forum Administrators
    Replies: 0
    Last Post: 10-08-2007, 12:11 PM
  4. Replies: 1
    Last Post: 10-05-2007, 07:13 AM
  5. How to consume zimbra SOAP API in my java application
    By Hemant Shrivastava in forum Developers
    Replies: 34
    Last Post: 12-24-2006, 12:24 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