You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by bu...@apache.org on 2003/05/02 10:22:18 UTC
DO NOT REPLY [Bug 19544] New: -
WSDL2Java generates uncompilable code for simpleTypes redefining a complexType
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19544>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19544
WSDL2Java generates uncompilable code for simpleTypes redefining a complexType
Summary: WSDL2Java generates uncompilable code for simpleTypes
redefining a complexType
Product: Axis
Version: current (nightly)
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: Other
Component: WSDL processing
AssignedTo: axis-dev@ws.apache.org
ReportedBy: gauwin@atl.dtrd.de
I don't know if it's the case for all complexTypes, but at least for this one :
<simpleType name="strSeq">
<restriction base="tns:sequence_5_string"/>
</simpleType>
<complexType name="sequence_5_string">
<sequence>
<element name="item" minOccurs="0" maxOccurs="5" type="xsd:string"/>
</sequence>
</complexType>
The problem is that WSDL2Java generates this method in StrSeq.java :
// Simple Types must have a String constructor
public StrSeq(java.lang.String value) {
this.value = new myNS.Sequence_5_string(value);
}
whereas Sequence_5_string has not such a constructor.
This is generated by JavaBeanWriter.java:457