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 tu...@gmx.de on 2009/08/12 16:44:10 UTC

WSDL2code : Compilation Failure

Hi folks,
I am generating from a wsdl Client Server Java code, by using the axis2-wsdl2code-maven-plugin.The wsdl file contains the following element:
<xs:complexType name="ErrorReportType"><xs:sequence>...<xs:element name="Class" form="unqualified" type="xs:string"/> ... </xs:sequence></xs:complexType>

While compilation phase a class named  “ErrorReporType” containing a field named Class,  and the getter and setter methods are tried to be generated, without success. The compilation of the stub failures with the message ...myPackage.MyStub.ErrorReportType cannot override getClass()

The problem is the wsdl element "Class" as shown above and the final declared method getClass()on java side. Is there any chance to solve this problem?


I would appreciate any help...

Thanks
Ike

Re: WSDL2code : Compilation Failure

Posted by Andreas Veithen <an...@gmail.com>.
Martin,

I guess the business reason in this case is simply that "Class" is a
business concept...

Andreas

On Wed, Aug 12, 2009 at 17:50, Martin Gainty<mg...@hotmail.com> wrote:
> a valid business reason to use a java reserved word from this list of java
> reserved words
> http://java.sun.com/docs/books/tutorial/java/nutsandbolts/_keywords.html
> ?
> Martin Gainty
> ______________________________________________
> Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
>
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
> Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte
> Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht
> dient lediglich dem Austausch von Informationen und entfaltet keine
> rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
> E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
>
> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le
> destinataire prévu, nous te demandons avec bonté que pour satisfaire
> informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie
> de ceci est interdite. Ce message sert à l'information seulement et n'aura
> pas n'importe quel effet légalement obligatoire. Étant donné que les email
> peuvent facilement être sujets à la manipulation, nous ne pouvons accepter
> aucune responsabilité pour le contenu fourni.
>
>
>
>
>> Date: Wed, 12 Aug 2009 16:44:10 +0200
>> From: turboking@gmx.de
>> Subject: WSDL2code : Compilation Failure
>> To: axis-user@ws.apache.org
>>
>> Hi folks,
>> I am generating from a wsdl Client Server Java code, by using the
>> axis2-wsdl2code-maven-plugin.The wsdl file contains the following element:
>> <xs:complexType name="ErrorReportType"><xs:sequence>...<xs:element
>> name="Class" form="unqualified" type="xs:string"/> ...
>> </xs:sequence></xs:complexType>
>>
>> While compilation phase a class named “ErrorReporType” containing a field
>> named Class, and the getter and setter methods are tried to be generated,
>> without success. The compilation of the stub failures with the message
>> ...myPackage.MyStub.ErrorReportType cannot override getClass()
>>
>> The problem is the wsdl element "Class" as shown above and the final
>> declared method getClass()on java side. Is there any chance to solve this
>> problem?
>>
>>
>> I would appreciate any help...
>>
>> Thanks
>> Ike
>
> ________________________________
> Get your vacation photos on your phone! Click here.

Re: WSDL2code : Compilation Failure

Posted by Demetris <de...@ece.neu.edu>.
Hi all,

does anyone know to help out with this?
Can Axis 1.x generate document/literal or only rpc/encoded WSDLs? I am 
wondering if setting
the OPERATION_STYLE_PROPERTY to document would do the trick.

Thanks


RE: WSDL2code : Compilation Failure

Posted by Martin Gainty <mg...@hotmail.com>.
a valid business reason to use a java reserved word from this list of java reserved words
http://java.sun.com/docs/books/tutorial/java/nutsandbolts/_keywords.html
?
Martin Gainty 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.




> Date: Wed, 12 Aug 2009 16:44:10 +0200
> From: turboking@gmx.de
> Subject: WSDL2code : Compilation Failure
> To: axis-user@ws.apache.org
> 
> Hi folks,
> I am generating from a wsdl Client Server Java code, by using the axis2-wsdl2code-maven-plugin.The wsdl file contains the following element:
> <xs:complexType name="ErrorReportType"><xs:sequence>...<xs:element name="Class" form="unqualified" type="xs:string"/> ... </xs:sequence></xs:complexType>
> 
> While compilation phase a class named  “ErrorReporType” containing a field named Class,  and the getter and setter methods are tried to be generated, without success. The compilation of the stub failures with the message ...myPackage.MyStub.ErrorReportType cannot override getClass()
> 
> The problem is the wsdl element "Class" as shown above and the final declared method getClass()on java side. Is there any chance to solve this problem?
> 
> 
> I would appreciate any help...
> 
> Thanks
> Ike

_________________________________________________________________
Get your vacation photos on your phone!
http://windowsliveformobile.com/en-us/photos/default.aspx?&OCID=0809TL-HM