首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

xfire集合部类处理一(多层嵌套参数)

2012-10-30 
xfire集合类型处理一(多层嵌套参数)There is often a need to either return collections as a result of

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>

热点排行