Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 1.2.2
-
Fix Version/s: None
-
Component/s: Aegis Module
-
Labels:None
-
Environment:xbean-spring-2.7-20061026.103714-1.jar
Tomcat 5.5.17
Java 1.5
-
Number of attachments :
Description
I have the following two interface signatures:
HashMap<Integer,Source> findMostRecentSources(int[] ids) throws SQLException;
boolean createTask(ArrayList<Task> tasks) throws SQLException;
The ArrayList<Task> is correctly turned into an ArrayOfTask, but for some reason the returned HashMap is turned into anyType2anyTypeMap from the WSDL.
e.g.
<xsd:complexType name="anyType2anyTypeMap">
<xsd:sequence>
<xsd:element maxOccurs="unbounded" minOccurs="0" name="entry">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="0" name="key" type="xsd:anyType"/>
<xsd:element maxOccurs="1" minOccurs="0" name="value" type="xsd:anyType"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
I was able to make it generate the correct int2TaskMap by treating it as a Java 1.4 collection and explicitly specifying the key and component types in the Interface.aegis.xml file.
This is quite a disturbing bug indeed. Could you please post an example of your Interface.aegis.xml file?