对于collection你需要配置一个xml文件,因为无法识别的原因
The file's name must be <className>.aegis.xml, where className is the unqualified class name of your service.The format of this file is best illustrated through examples. The service we would like to expose has the following interface:public interface MyService1
{
String getFoo();
Collection getCollection();
void setList(int id, java.util.List);
}
Since the collections in the source code are not typed, we are required to create an xml file to specify the required types. The file's location must be the same package as MyService1.class, and it must be called MyService1.aegis.xmlA minimal mapping file for this interface would be:<mappings>
<mapping>
<method name="getCollection">
<return-type componentType="java.lang.String"/>
</method>
<method name="setList">
<parameter index="1" componentType="java.lang.String"/>
</method>
</mapping>
</mappings>
你找找xfire-1.1.2\manual\Mapping collections.html
The file's name must be <className>.aegis.xml, where className is the unqualified class name of your service.The format of this file is best illustrated through examples. The service we would like to expose has the following interface:public interface MyService1
{
String getFoo();
Collection getCollection();
void setList(int id, java.util.List);
}
Since the collections in the source code are not typed, we are required to create an xml file to specify the required types. The file's location must be the same package as MyService1.class, and it must be called MyService1.aegis.xmlA minimal mapping file for this interface would be:<mappings>
<mapping>
<method name="getCollection">
<return-type componentType="java.lang.String"/>
</method>
<method name="setList">
<parameter index="1" componentType="java.lang.String"/>
</method>
</mapping>
</mappings>
你找找xfire-1.1.2\manual\Mapping collections.html
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货