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 Davanum Srinivas <da...@gmail.com> on 2004/10/04 22:06:18 UTC
Re: Fixed the bug with WSDL2Java in the Axis-1.2RC2
Can you please open a bug report in JIRA and add the bug description
and patch there? don't want to lose this information.
thanks,
dims
----- Original Message -----
From: Sami Lakka <sa...@tut.fi>
Date: Thu, 23 Sep 2004 10:04:25 +0300
Subject: Fixed the bug with WSDL2Java in the Axis-1.2RC2
To: axis-dev@ws.apache.org
Hi,
I fixed the bug that I reported earlier (WSDL2Java didn't take
nillable attributes to account).
The following lines have to be added into JavaBeanWriter (method
preprocess, line 318):
if (attr.getOptional() || attr.getNillable())
typeName = Utils.getWrapperType(typeName);
The following line have to be added to SchemaUtils (method
addAttributeToVector, line 1579):
attr.setNillable(JavaUtils.isTrueExplicitly(Utils.getAttribute(child,
"nillable")));
Following methods have to be added to ContainedAttribute (or more
likely refactored to the
ContainedEntry). The boolean attribute nillable has also to be added
to ContainedAttribute
public void setNillable(boolean nillable) {
this.nillable = nillable;
}
public boolean getNillable() {
return nillable;
}
--
Davanum Srinivas - http://webservices.apache.org/~dims/