I have one wsdl file which references three xsd files. The eclipse wizard
generates me three java files EvbCallbackHandler.java, EvbStub.java and
Hinweis.java. In the file EvbStub.java are round about 40 classes where 10 give
me warnings.
For Example there is a class 'BriefkastenAbruf':
public static class BriefkastenAbruf implements
org.apache.axis2.databinding.ADBBean{ ...}
who have a subclass:
public static class Factory{}
in this class there is the Method:
public static BriefkastenAbruf parse(javax.xml.stream.XMLStreamReader
reader) throws java.lang.Exception{
BriefkastenAbruf object = new BriefkastenAbruf();
int event;
java.lang.String nillableValue = null;
java.lang.String prefix ="";
java.lang.String namespaceuri ="";
...
}
Eclipse show me the following warnings:
- The local variable event is never read
- The local variable nillableValue is never read
- The local variable prefix is never read
- The local variable namespaceuri is never read
the part in the xsd:
<xs:complexType name="BriefkastenAbruf">
<xs:all>
<xs:element minOccurs="0" name="ListeNachrichtenId"
type="ListeNachrichtenId"/>
</xs:all>
</xs:complexType>
<xs:complexType name="ListeNachrichtenId">
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="NachrichtenId"
type="xs:string"/>
</xs:sequence>
</xs:complexType>
Andreas
-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 18. Januar 2008 10:31
An: [email protected]
Betreff: RE: Eclipse, wsdl2java and huge warnings
This is strange i don't get warnings.
I only use ADB not XMLBeans.
QName is the Qualifiedname , so the full name of the NameSpace including
operation or schema,
In which class do you encounter this warnings?
dirk
-----Original Message-----
From: Weck, Andreas [mailto:[EMAIL PROTECTED]
Sent: vrijdag 18 januari 2008 9:39
To: [email protected]
Subject: AW: Eclipse, wsdl2java and huge warnings
I tried the Axis2_CodeGen_wizard_1.3.0, but if have still the same warnings:
if i use ADB:
- The local variable event is never read
- The local variable handledAttributes is never read
- The local variable namespaceuri is never read
- The local variable nillableValue is never read
- The local variable prefix is never read
- The method writeAttribute(String, String, String, String, XMLStreamWriter)
from the type [TYPE] is never used locally
- The method writeQName(QName, XMLStreamWriter) from the type [TYPE] is never
used locally
BTW: What is QName?
if i use XMLBeans:
- The local variable [VARNAME] is never read
- The serializable class [NAME] does not declare a static final
serialVersionUID field of type long
- The method [NAME] from the type [TYP] is never used locally
Regards,
Andreas
-----Ursprüngliche Nachricht-----
Maybe , you can use the Eclipse plugin
Axis2_CodeGen_wizard_1.3.0
It does the same. I am using it. It works fine.
You can use it ones and then build an ant-script to Regenerate.
This works without warnings.
Regards
Dirk
-----Original Message-----
Hi all,
i just downloaded the JDK 6 Update 4, axis2 1.3 and Eclipse 3.3. After that
i've used the wsdl2java command-line tool to create the client classes.
wsdl2java -uri service.wsdl -u
Than i made a new java project in eclipse, with the options (compiler
compliance level 1.4) and imported all the generated java files into it.
Now it have approximately 500 warnings!!! Mostley like "The local variable
[VARNAME] is never read" (in can see the first 100 only)
Does anyone have any suggestions around suppressing/fixing these warnings?
Regards,
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
================================================
The information transmitted via this e-mail is intended only for the person or
entity to which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or taking
of any action in reliance upon this information by persons or entities other
than the intended recipient is prohibited. If you received this in error,
please contact the sender and delete the material from any computer.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
================================================
The information transmitted via this e-mail is intended only for the person or
entity to which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or taking
of any action in reliance upon this information by persons or entities other
than the intended recipient is prohibited. If you received this in error,
please contact the sender and delete the material from any computer.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]