You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Jose Manuel Valladares Pernas <ma...@yahoo.es> on 2006/08/25 18:14:36 UTC

Java classes generated by wsdl2java don't compile

Hello,
I have an wsdl that imports several xsd schemas and I
used an ant task with WSDL2Java to produce the
corresponding java clases.

I am working with axis 1.4 and java jsdk 1.5.0_06.

WSDL2Java produces the classes and no errors. But some
of the generated classes don't compile.

One of the classes has 2 constructor methods that are
the same. Other classes that inherite from some parent
classes have the constructor parameters in the wrong
order.

If you want I can send you the wsdl and the xsd files.
They seem to be correct as they come from the OTA 
pecification.

Have you seen this happening before?
Any hint?

If you need more information, please, let me know.

Thank you very much for your help,
                   Manuel Valladares

---------------------------------------------
- Jose Manuel Valladares Pernas
- mavallad@yahoo.es
- mavalla@wanadoo.es
---------------------------------------------

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


RE: Java classes generated by wsdl2java don't compile

Posted by Derek <de...@crc-corp.com>.
Oops. Thanks for catching that!

Derek

> -----Original Message-----
> From: Anne Thomas Manes [mailto:atmanes@gmail.com] 
> Sent: Friday, August 25, 2006 11:53 AM
> To: axis-user@ws.apache.org; derek-axis@crc-corp.com
> Subject: Re: Java classes generated by wsdl2java don't compile
> 
> 
> Because this is an Axis 1.x issue, please file the bug in the 
> Axis 1 system: https://issues.apache.org/jira/browse/axis
> 
> Anne
> 
> On 8/25/06, Derek <de...@crc-corp.com> wrote:
> >
> > WSDL2Java should either detect errors in the files, or it should 
> > produce valid code. Clearly in this case it is doing 
> neither. Please 
> > file a JIRA at http://issues.apache.org/jira/browse/AXIS2, 
> and include 
> > your WSDL and XSDs, as well as the command line that you 
> are using to 
> > invoke WSDL2Java.
> >
> > Thanks.
> >
> > Derek
> >
> > > -----Original Message-----
> > > From: Jose Manuel Valladares Pernas [mailto:mavallad@yahoo.es]
> > > Sent: Friday, August 25, 2006 9:15 AM
> > > To: axis-user@ws.apache.org
> > > Subject: Java classes generated by wsdl2java don't compile
> > >
> > >
> > > Hello,
> > > I have an wsdl that imports several xsd schemas and I
> > > used an ant task with WSDL2Java to produce the corresponding java 
> > > clases.
> > >
> > > I am working with axis 1.4 and java jsdk 1.5.0_06.
> > >
> > > WSDL2Java produces the classes and no errors. But some
> > > of the generated classes don't compile.
> > >
> > > One of the classes has 2 constructor methods that are
> > > the same. Other classes that inherite from some parent 
> classes have 
> > > the constructor parameters in the wrong order.
> > >
> > > If you want I can send you the wsdl and the xsd files.
> > > They seem to be correct as they come from the OTA pecification.
> > >
> > > Have you seen this happening before?
> > > Any hint?
> > >
> > > If you need more information, please, let me know.
> > >
> > > Thank you very much for your help,
> > >                    Manuel Valladares
> > >
> > > ---------------------------------------------
> > > - Jose Manuel Valladares Pernas
> > > - mavallad@yahoo.es
> > > - mavalla@wanadoo.es
> > > ---------------------------------------------
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Tired of spam?  Yahoo! Mail has the best spam protection around 
> > > http://mail.yahoo.com
> > >
> > > 
> --------------------------------------------------------------------
> > > -
> > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > >
> > >
> >
> >
> >
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Java classes generated by wsdl2java don't compile

Posted by Anne Thomas Manes <at...@gmail.com>.
Because this is an Axis 1.x issue, please file the bug in the Axis 1 system:
https://issues.apache.org/jira/browse/axis

Anne

On 8/25/06, Derek <de...@crc-corp.com> wrote:
>
> WSDL2Java should either detect errors in the files, or it should produce
> valid code. Clearly in this case it is doing neither.
> Please file a JIRA at http://issues.apache.org/jira/browse/AXIS2, and
> include your WSDL and XSDs, as well as the command line that you are using
> to invoke WSDL2Java.
>
> Thanks.
>
> Derek
>
> > -----Original Message-----
> > From: Jose Manuel Valladares Pernas [mailto:mavallad@yahoo.es]
> > Sent: Friday, August 25, 2006 9:15 AM
> > To: axis-user@ws.apache.org
> > Subject: Java classes generated by wsdl2java don't compile
> >
> >
> > Hello,
> > I have an wsdl that imports several xsd schemas and I
> > used an ant task with WSDL2Java to produce the
> > corresponding java clases.
> >
> > I am working with axis 1.4 and java jsdk 1.5.0_06.
> >
> > WSDL2Java produces the classes and no errors. But some
> > of the generated classes don't compile.
> >
> > One of the classes has 2 constructor methods that are
> > the same. Other classes that inherite from some parent
> > classes have the constructor parameters in the wrong
> > order.
> >
> > If you want I can send you the wsdl and the xsd files.
> > They seem to be correct as they come from the OTA
> > pecification.
> >
> > Have you seen this happening before?
> > Any hint?
> >
> > If you need more information, please, let me know.
> >
> > Thank you very much for your help,
> >                    Manuel Valladares
> >
> > ---------------------------------------------
> > - Jose Manuel Valladares Pernas
> > - mavallad@yahoo.es
> > - mavalla@wanadoo.es
> > ---------------------------------------------
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


RE: Java classes generated by wsdl2java don't compile

Posted by Derek <de...@crc-corp.com>.
WSDL2Java should either detect errors in the files, or it should produce
valid code. Clearly in this case it is doing neither.
Please file a JIRA at http://issues.apache.org/jira/browse/AXIS2, and
include your WSDL and XSDs, as well as the command line that you are using
to invoke WSDL2Java.

Thanks.

Derek

> -----Original Message-----
> From: Jose Manuel Valladares Pernas [mailto:mavallad@yahoo.es] 
> Sent: Friday, August 25, 2006 9:15 AM
> To: axis-user@ws.apache.org
> Subject: Java classes generated by wsdl2java don't compile
> 
> 
> Hello,
> I have an wsdl that imports several xsd schemas and I
> used an ant task with WSDL2Java to produce the
> corresponding java clases.
> 
> I am working with axis 1.4 and java jsdk 1.5.0_06.
> 
> WSDL2Java produces the classes and no errors. But some
> of the generated classes don't compile.
> 
> One of the classes has 2 constructor methods that are
> the same. Other classes that inherite from some parent
> classes have the constructor parameters in the wrong
> order.
> 
> If you want I can send you the wsdl and the xsd files.
> They seem to be correct as they come from the OTA 
> pecification.
> 
> Have you seen this happening before?
> Any hint?
> 
> If you need more information, please, let me know.
> 
> Thank you very much for your help,
>                    Manuel Valladares
> 
> ---------------------------------------------
> - Jose Manuel Valladares Pernas
> - mavallad@yahoo.es
> - mavalla@wanadoo.es
> ---------------------------------------------
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org