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 "Banck, Arent-Jan" <aj...@informatica.com> on 2004/06/15 22:48:12 UTC

RE: cvs commit: ws-axis/java/src/org/apache/axis/wsdl/toJava JavaBeanWriter.java

Created  case AXIS-1396. It has only the complex-type snippet, let me
know if you need a complete wsdl.

Thanks
Arent-Jan

-----Original Message-----
From: Davanum Srinivas [mailto:davanum@gmail.com] 
Sent: Tuesday, June 15, 2004 6:25 PM
To: axis-dev@ws.apache.org
Subject: Re: cvs commit: ws-axis/java/src/org/apache/axis/wsdl/toJava
JavaBeanWriter.java


Can you please open a new bug? with a small wsdl?

thanks,
dims

On Tue, 15 Jun 2004 17:52:27 +0200, Banck, Arent-Jan
<aj...@informatica.com> wrote:
> 
> Is there a Jira case for this where I can add comments?
> Build of classes generated with wsdl2java stoppped working for me with

> latest code from CVS, I assume related to this checkin. Seems the 
> parameters of the constructor have incorrect types.
> 
> WSDL:
> <complexType name="IASNumericFormat">
> <sequence>
>   <element name="currencySymbol" nillable="true" type="xsd:string" />
>   <element name="decimalSymbol" nillable="true" type="xsd:string" />
>   <element name="decimals" nillable="true" type="xsd:int" />
>   <element name="groupingSymbol" nillable="true" type="xsd:string" />
>   <element name="negativeFormat" nillable="true" 
> type="tns13:IASNegativeFormat" />
>   <element name="prefixCurrencySymbol" nillable="true" 
> type="xsd:boolean" />
>   <element name="scale" nillable="true" type="tns13:IASNumericScale"
/>
>   <element name="type" nillable="true" 
> type="tns13:IASNumericFormatType" /> </sequence>
> </complexType>
> 
> public class IASNumericFormat  implements java.io.Serializable {
>     private java.lang.String currencySymbol;
>     private java.lang.String decimalSymbol;
>     private java.lang.Integer decimals;
>     private java.lang.String groupingSymbol;
>     private 
> com.informatica.ias.api4.services.common.soapclient.IASNegativeFormat
> negativeFormat;
>     private java.lang.Boolean prefixCurrencySymbol;
>     private 
> com.informatica.ias.api4.services.common.soapclient.IASNumericScale
> scale;
>     private 
> com.informatica.ias.api4.services.common.soapclient.IASNumericFormatTy
> pe
> type;
> 
>     public IASNumericFormat() {
>     }
> 
>     public IASNumericFormat(
>            java.lang.String currencySymbol,
>            java.lang.String decimalSymbol,
>            int decimals,
>            java.lang.String groupingSymbol,
> 
> com.informatica.ias.api4.services.common.soapclient.IASNegativeFormat
> negativeFormat,
>            boolean prefixCurrencySymbol,
> 
> com.informatica.ias.api4.services.common.soapclient.IASNumericScale
> scale,
> 
> com.informatica.ias.api4.services.common.soapclient.IASNumericFormatTy
> pe
> type) {
> 
> Build error:
> 
>     [javac] 
> C:\build\autobahn_nl-stripped\sdk\api4\tmp\wsdl2Java\com\informatica\i
> as
> \api4\services\common\soapclient\IAS
> NumericFormat.java:34: incompatible types
>     [javac] found   : int
>     [javac] required: java.lang.Integer
>     [javac]         this.decimals = decimals;
>     [javac]                         ^
>     [javac]
>
C:\build\autobahn_nl-stripped\sdk\api4\tmp\wsdl2Java\com\informatica\ias
> \api4\services\common\soapclient\IAS
> NumericFormat.java:37: incompatible types
>     [javac] found   : boolean
>     [javac] required: java.lang.Boolean
>     [javac]         this.prefixCurrencySymbol = prefixCurrencySymbol;
>     [javac]                                     ^
> 
> -----Original Message-----
> From: Tom Jordahl [mailto:tomj@macromedia.com]
> Sent: Tuesday, June 15, 2004 3:33 PM
> To: 'axis-dev@ws.apache.org'
> Subject: RE: cvs commit: ws-axis/java/src/org/apache/axis/wsdl/toJava
> JavaBeanWriter.java
> 
> This seems pretty scary....
> 
> Has the full constructor code been thoroughly tested?
> 
> --
> Tom Jordahl
> Macromedia Server Development
> 
> -----Original Message-----
> From: dims@apache.org [mailto:dims@apache.org]
> Sent: Tuesday, June 15, 2004 5:51 AM
> To: ws-axis-cvs@apache.org
> Subject: cvs commit: ws-axis/java/src/org/apache/axis/wsdl/toJava
> JavaBeanWriter.java
> 
> dims        2004/06/15 02:51:14
> 
>   Modified:    java/src/org/apache/axis/wsdl/toJava
JavaBeanWriter.java
>   Log:
>   Possible Fix for TCK failure - Generate for example
> NonNullString(String) constructor in addition to the empty constructor
> 
>   Revision  Changes    Path
>   1.62      +1 -1
> ws-axis/java/src/org/apache/axis/wsdl/toJava/JavaBeanWriter.java
> 
>   Index: JavaBeanWriter.java
>   ===================================================================
>   RCS file: 
> /home/cvs/ws-axis/java/src/org/apache/axis/wsdl/toJava/JavaBeanWriter.
> ja
> va,v
>   retrieving revision 1.61
>   retrieving revision 1.62
>   diff -u -r1.61 -r1.62
>   --- JavaBeanWriter.java       30 Mar 2004 11:36:02 -0000      1.61
>   +++ JavaBeanWriter.java       15 Jun 2004 09:51:14 -0000      1.62
>   @@ -73,7 +73,7 @@
>        protected boolean enableDefaultConstructor = true;
> 
>        /** Field enableFullConstructor */
>   -    protected boolean enableFullConstructor = false;
>   +    protected boolean enableFullConstructor = true;
> 
>        /** Field enableSimpleConstructors */
>        protected boolean enableSimpleConstructors = false;
> 
> 


-- 
Davanum Srinivas - http://webservices.apache.org/~dims/