Hi We are using xFire to generate clients for web services. The versions we are using: xFire 1.2.2 and Java 1.4.
I have a Java class named ResultListVO which has following members. java.util.List results; int count; I use this as the return type of my search methods. So depending on the search method, the class type includes in 'results' List in returned ResultListVO will be different. For ex: within one method I need to return AbcVO and in another method I need to return PrqVO within the List object. Lets say my client interface, service.java has the following method. public ResultListVO mySearch(String type); I used following mapping file Service.aegis.xml; but it doesnt work. <mappings> <mapping> <method name="mySearch"> <return-type componentType="com.ResultListVO"> <property name="results" componentType="java.lang.Integer"/> </return-type> </method> </mapping> </mappings> If I use a separate aegis file for ResultListVO, it works fine only for one method. However with another method when the content of 'result' List is different then we cant use that solution. Could you please provide me with a suggestion to come to a better solution to write an aegis mapping, in the case where we need to use different types of objects in one collection. Regards RDA