RE: Beagle XML/Unix API & Java
<[email protected]> Mon, 1 Mar 2010 12:10:20 +0100
| Newsgroups | gmane.comp.gnome.dashboard.devel |
|---|---|
| Message-ID | <12047_1267441863_4B8BA0C7_12047_57_5_2CAE5634D52E194BA393187E0568E1AC046B54D7@ftrdmel1> |
Hi All, I have captured the XML message when using the Beagle Web. From this XML, I= tried to write an XML Schema. The XSD file is attached, what do you think = about this schema ? Is it well written ? Then, I used Jaxb to generate the Java Binding Classes (ResponseWrapper.jav= a). In SearchManager.java, it's a sample to use the API with Java. St=E9phane -----Message d'origine----- De : Joe Shaw [mailto:[email protected]] = Envoy=E9 : lundi 22 f=E9vrier 2010 15:27 =C0 : zze-BLB JEANJEAN S ext RD-BIZZ-SOP Cc : [email protected] Objet : Re: Beagle XML/Unix API Hi, On Mon, Feb 22, 2010 at 8:57 AM, <[email protected]> wrote: > Is there any documentation about the Beagle XML/Unix API, please ? I = > think it's used by the web user interface. There's no documentation for it, sadly. Generally apps should use either t= he C# classes or one of the C-based language bindings. If you're looking t= o implement a client library yourself, building it on top of the C one is t= he easiest as it is an easily-bindable GObject-based API. If you can't go one of these routes for whatever reason, your best bet is t= o look at the C code itself. It's fairly simply broken into request and re= sponse classes, and I think the XML generation in it is pretty clean: http://git.gnome.org/browse/beagle/tree/libbeagle/beagle The socat tool might also be helpful to you, as you can wedge yourself in a= s a man-in-the-middle and watch the traffic going by. Joe ********************************* This message and any attachments (the "message") are confidential and inten= ded solely for the addressees. = Any unauthorised use or dissemination is prohibited. Messages are susceptible to alteration. = France Telecom Group shall not be liable for the message if altered, change= d or falsified. If you are not the intended addressee of this message, please cancel it imm= ediately and inform the sender. ********************************