I am having a problem with the generated code from wsdl2java
if I have a complexType with one element and several attributes. Here is my
complexType
<complexType name="SomeData">
<sequence>
<element name="data" type="string" maxOccurs="unbounded"/>
</sequence>
<attribute name="attr1" type="boolean" default="false"/>
<attribute name="attr2" type="boolean" default="true"/>
<attribute name="attr3" type="boolean" default="true"/>
</complexType>
What happens is no code is generated for
the SomeData class and if I include the element of type SomeData in another type,
the generated code shows up as String[] data, so I only get the element. If I
add a 2nd element to the sequence (see below) then I get a SomeData
class generated and this has the elements and attributes in it. I am using Axis
1.3 (I believe RC2, I downloaded it a while ago).
<complexType name="SomeData">
<sequence>
<element name="data" type="string" maxOccurs="unbounded"/>
<element name="elem2" type="string"/>
</sequence>
<attribute name="attr1" type="boolean" default="false"/>
<attribute name="attr2" type="boolean" default="true"/>
<attribute name="attr3" type="boolean" default="true"/>
</complexType> Let me know if this is a known problem that may have been fixed in a
later release or if I am doing something wrong. Thanks, Brendan Flood, |
- problem with wsdl2java Flood, Brendan \(Brendan\) ** CTR **
- Re: problem with wsdl2java Martin Gainty