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());