|
|
Choosing A Webhost: |
Re: OGOJOGI: job.getHistory(): msg#00027cms.opengroupware.xmlrpc.devel
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Christoph Guse wrote: | I tried to use job.getHistory() in the job class. I extended XmlRpcJob | so the remote method jobs.getHistory() is called. I get values from the | OGo-Server: How did you do this? I mean, how does your call look like? | Unfortunately I'm not able to put the methodResponse in an object like | History, because I don't fully understand how OGOJOGI put the XML result | in an object. Well... if you do something like caller.invoke(....) ~ (where "caller" is an object of type XmlRpcCaller) you'll get back a Map (or a Hashtable), holding the result from OG.o (the XmlRpc Struct type is put into a Map/Hashtable). JOGI uses a XmlRpcBaseDocument (or something like that) as an aid for this, ie. classes like Person, ... (which map to an OG.o document, which are returned as XmlRpc structs) are derived from XmlRpcBasedocument. Depends on what you want to do, you could simply have your Job getHistory() return a List of ... I don't know, Maps that hold the Job information. This is a solution if the History information is read only, and you don't want to allow the users to modify the contents. A cleaner way would be to create a History object that hides the internals and provided methods to access the information. murphee - -- Werner Schuster (murphee) Student of SoftwareEngineering and KnowledgeManagement Maintainer of the OGO-JOGI Project @ http://ogo-jogi.sourceforge.net/ Blog @ http://jroller.com/page/murphee -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCX+FOgLjXNIXpN6MRAsW7AKCBHsgmqRXQs0eKeJH6WfP2Gz2qLACdGJSt RYf6riTFKFLzRrHCnDPlOCI= =R2r/ -----END PGP SIGNATURE----- -- OpenGroupware.org XML-RPC xmlrpc@xxxxxxxxxxxxxxxxx http://mail.opengroupware.org/mailman/listinfo/xmlrpc
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | OGOJOGI: job.getHistory(), Christoph Guse |
|---|---|
| Next by Date: | Re: OGOJOGI: job.getHistory(), Christoph Guse |
| Previous by Thread: | OGOJOGI: job.getHistory(), Christoph Guse |
| Next by Thread: | Re: OGOJOGI: job.getHistory(), Christoph Guse |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |