Changes between Version 4 and Version 5 of ExampleUsingXmlRpcBeans


Ignore:
Timestamp:
10/09/06 14:53:49 (18 years ago)
Author:
lauer
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ExampleUsingXmlRpcBeans

    v4 v5  
    44 
    55Sometimes parameter conversion is a straight-forward task which can be handed over to the XML-RPC runtime system. 
    6 When a java class fulfills certain conditions (roughly, being a java bean with complatible types) it can be turned into a XmlRpcBean 
     6When a java class fulfills certain conditions (roughly, being a java bean with compatible types) it can be turned into a !XmlRpcBean 
    77by annotating it with the @!XmlRpcBean annotation. It then can be used in every XML-RPC call without restriction.[[BR]] 
    88 
    9 A XmlRpcBean must have 
     9A !XmlRpcBean must have 
    1010 
    1111  - a public constructor taking no arguments 
     
    1616    - it is a standard XML-RPC type 
    1717    - it is annotated with a @!XmlRpc annotation and defines proper conversion methods 
    18     - a conversion mapping for that type is put at the XmlRpcBean (which then acts as an API itself) 
    19     - it is an XmlRpcBean (that is, XmlRpcBeans can be nested) 
     18    - a conversion mapping for that type is put at the !XmlRpcBean (which then acts as an API itself) 
     19    - it is an !XmlRpcBean (that is, !XmlRpcBeans can be nested) 
    2020    - it is a Collection or Map containing a type which is XML-RPC compliant and is annotated with the @Contains annotation 
    2121 
     
    6666} 
    6767 
     68---- 
     69 
    6870Api remote_api = XmlRpc.createClient( Api.class, "handlerId", host, port ); 
    6971 
     
    7880 
    7981See also [http://delight.opendfki.de/wiki/ExampleUsingOwnConceteTypes#UsingowntypesinCollectionsandMaps How to use own types in Collections an Maps]. 
     82 
     83Examples in source code: [http://delight.opendfki.de/repos/trunk/XmlRpcDelight/src/examples/de/dfki/util/xmlrpc/examples/xmlrpc_beans/]