Results 1 to 2 of 2

Thread: [SOLVED] Zimlet with Soap Calls

  1. #1
    Join Date
    Nov 2007
    Location
    Detroit, MI
    Posts
    67
    Rep Power
    7

    Default [SOLVED] Zimlet with Soap Calls

    I'm a bit stuck trying to use the local Zimbra soap service via a Zimlet .jsp.. I got as far as authenticating and constructing a soap call (CreateCalendarResourceRequest), but the response is always:

    Code:
    HTTP ERROR: 500
    
    unknown document: CreateCalendarResourceRequest


    If anyone has any ideas about what's going, it would be very appreciated!

    Code:
           SoapProvisioning sp = new SoapProvisioning();
           sp.soapSetURI("https://127.0.0.1:7071/service/admin/soap/");
           sp.soapAdminAuthenticate("resourceadmin", "********");       
           SoapHttpTransport soapHttpTransport = new SoapHttpTransport(sp.soapGetURI());
           soapHttpTransport.setAuthToken(sp.getAuthToken());
           
           XMLElement req = new XMLElement("CreateCalendarResourceRequest");
           Element name = req.addElement("name");
           Element pass = req.addElement("password");
                  
           out.println(req.toString());
           Element tagsResponse = soapHttpTransport.invoke(req);
           out.println(tagsResponse.prettyPrint());

  2. #2
    Join Date
    Nov 2007
    Location
    Detroit, MI
    Posts
    67
    Rep Power
    7

    Arrow

    Found the answer hidden away on another thread in the forums, had to add the urn:zimbraAdmin attribute to the tag :

    Code:
              XMLElement req = new XMLElement("CreateCalendarResourceRequest");
              req.addAttribute("xmlns", "urn:zimbraAdmin");

Similar Threads

  1. Replies: 21
    Last Post: 02-04-2010, 10:06 AM
  2. Outlook 2007 Beta error
    By bersrker in forum Zimbra Connector for Outlook
    Replies: 13
    Last Post: 07-17-2008, 08:38 AM
  3. Replies: 5
    Last Post: 01-11-2008, 05:34 AM
  4. Replies: 13
    Last Post: 07-20-2007, 04:21 AM
  5. Post instsallation problems
    By Assaf in forum Installation
    Replies: 14
    Last Post: 01-29-2007, 11:38 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
  •