Thanks!
In the meantime, I'm trying to make things work on my own, and I've got an
error message while connecting to Sogo that is a little wierd.
Here's the code (very basic):
HttpClient httpClient = new HttpClient();
Credentials credentials = new UsernamePasswordCredentials("brian", "XXXXXXXX");
AuthScope as = new AuthScope("rd4-was7", 80);
httpClient.getState().setCredentials(as, credentials);
httpClient.getParams().setAuthenticationPreemptive(true);
HostConfiguration hostConfig = new HostConfiguration();
hostConfig.setHost("XXXXXXX");
GenerateQuery gq = new GenerateQuery();
gq.setComponent("VEVENT : UID, ATTENDEE, DTSTART, DTEND");
CalDAVCollection cdCollection = new CalDAVCollection(
"/SOGo/dav/brian/Calendar/personal",
hostConfig,
new CalDAV4JMethodFactory(),
"E-Deal_Prod"
);
try {
List<Calendar> rtrn = cdCollection.queryCalendars(httpClient,
gq.generate());
// Parse the list....
} catch (Exception e) {
// Blah, blah
}
The program seems to connect to Sogo, as I don't get any IO errors, but I still
get the following error:
<?xml version="1.0" encoding="ISO-8859-1"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<body>
<h3>
An error occurred during object publishing</h3><p>
Could not parse XML of WebDAV REPORT.</p>
</body>
</html>
I'm using CalDAV4J, if that helps at all.....
Bien cordialement,
Brian KREULEN
E-DEAL
-----Message d'origine-----
De : Martin Rabl [mailto:[email protected]]
Envoyé : mardi 17 janvier 2012 21:24
À : [email protected]
Objet : Re: [SOGo] Authentication using MySQL
Hi,
ok, I will make a bundle and put it online ASAP - I wrote on the list, when its
ready, expected end of next week.
Greetings,
Martin
Am 17.01.12 19:54, schrieb Peter Peltonen:
> On Tue, Jan 17, 2012 at 7:54 PM, Brian KREULEN<[email protected]> wrote:
>> Would it be possible to get a copy of this web app? Or maybe some code
>> snippets? I'm having some difficulties accessing the calendar, and there
>> seems to be a lack of examples on the net.... Thanks in advance.....
>
> +1
>
> I'd like to get my hands on this web app as well:
>
>> I wrote an webapplication which retrieves all events of a week from all
>> users (current 30) and displays them in a week-calendar-like table.
>> The events of every user are retrieved by CalDAV - runs quite good!
>>
>> Greetings,
>> Martin Rabl
>
> Best,
> Peter
--
[email protected]
https://inverse.ca/sogo/lists
--
[email protected]
https://inverse.ca/sogo/lists