xfire集合类型处理一(多层嵌套参数)
There is often a need to either return collections as a result of a web service call, or to take in collection parameters. SOAP supports this natively.
The problem with this mechanism however arises from the fact that collections in java are untyped. Thus, to support collections on Java 1.4, a little bit of extra work is required.
Aegis will be automatically name these collections ArrayOfDouble and ArrayOfArrayOfDouble. You may want to change this. To set your own names, supply a "typeName" attribute:
<mappings> <mapping> <method name="getListofListofDoubles"> <return-type componentType="#someDoubles" typeName="LotsOfDoubles"/> </method> <component name="someDoubles" class="java.util.List" typeName="SomeDoubles" componentType="java.lang.Double" /> </mapping></mappings>