Changes between Version 5 and Version 6 of ExampleUsingThirdPartyTypes
- Timestamp:
- 05/22/07 12:20:51 (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ExampleUsingThirdPartyTypes
v5 v6 2 2 3 3 Eventually, you want to use third party types in your remote calls. Unfortunately the nice annotation features we saw in [wiki:ExampleUsingOwnConceteTypes] and [wiki:ExampleUsingOwnInterfaceTypes] are not applicable here because you are neither allowed to modify the classes nor makes it sense to add an additional dependency to that type.[[BR]] 4 The Delight XML-RPC framework offers a solution to this problem by offering conversion mappings to be declared with the API (of course you can add as many mapping you want):4 The Delight XML-RPC framework offers a solution to this problem by offering conversion mappings to be declared with the API (of course you can add as many mappings as you want): 5 5 6 6 {{{ … … 18 18 Therefor, the converter has to implemente the interface ''!ParameterConverter'' to define three methods: 19 19 20 - getXmlRpcRepresentationType(): states what XML-RPC type will be use ed as transport representation20 - getXmlRpcRepresentationType(): states what XML-RPC type will be used as transport representation 21 21 22 22 - createFrom(): takes a XML-RPC representation and creates a corresponding instance of type ''URL''.