Results 1 to 3 of 3

Thread: [SOLVED] java soap problem

  1. #1
    Join Date
    Oct 2008
    Rep Power

    Default [SOLVED] java soap problem

    Dear all,

    I just started to write soap code for zimbra and have immediately problem.
    After sending the following request to https://myserver:7071/service/admin/soap, I saw the following error in mailbox.log

    2008-10-21 17:30:14,572 INFO [btpool0-1485] [ip=x.x.x.x;] SoapEngine - handler exception: authentication failed for, account not found

    The request I sent as below:

    <soap:Envelope xmlns:soap=""><soap:Body><AuthRequest xmlns="urn:zimbraAccount"><account xmlns="" by="id"></account><password xmlns="">123</password></AuthRequest></soap:Body></soap:Envelope>

    And browser show the following exception: Server returned HTTP response code: 500 for URL: https://myserver:7071/service/admin/soap

    BTW: my zimbra server host 2 domains, for exmaple, & I have and email, both can login to zimbra web ui without any problem.

    What can I do to solve this problem?


    Vincent Chen

  2. #2
    Join Date
    Oct 2008
    Rep Power


    I just had the same problem, here are my hints:
    1. Try "name" instead of "id".
    2. if no success: Take Mozilla-FF and download the plugin called POSTER. There you can Post the soap envelops via HTML. So you can find out if there are syntactical errors.
    3. If no syntactical errors and POSTER does deliver successfully and jour java-programm does not, then take wireshark and analyse what is realy sent to the server. So I found out that my programm made some unwanted encoding in the text, so that Zimbra did not understand the soap-package.

    With these steps I could get it run from Codegear C++ Builder/Indy-HTTP Components. The AuthRequest finaly worked fine for me.

    good luck

  3. #3
    Join Date
    Oct 2008
    Rep Power



    You are right, it should be 'name' instead of 'id'. I checked account detail again, id could be account's uuid like string and name is account's email. Now I can receive soap replay and proceed. Thanks you very much for your reply. It helps a lot.

Similar Threads

  1. [SOLVED] Java Memory Consumption Problem
    By LMStone in forum Administrators
    Replies: 2
    Last Post: 12-20-2008, 11:18 AM
  2. SOAP SSL Cert problem
    By 3RiversTechAdmin in forum Developers
    Replies: 1
    Last Post: 11-15-2007, 01:14 PM
  3. SOAP Problem again!
    By bongkot in forum Developers
    Replies: 1
    Last Post: 08-01-2007, 04:16 AM
  4. 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
  5. Replies: 0
    Last Post: 12-04-2006, 08:48 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