View Single Post
  #1 (permalink)  
Old 05-04-2008, 06:13 PM
ab5602 ab5602 is offline
Member
 
Join Date: Nov 2007
Location: Detroit, MI
ZCS Version: Release 5.0.5_GA_2201.UBUNTU6 DEBIAN4.0 NETWORK edition
Posts: 24
ab5602 is on a distinguished road
Send a message via Yahoo to ab5602
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());
Reply With Quote