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 "Alexey Zavizionov (JIRA)" <ax...@ws.apache.org> on 2008/01/25 13:07:34 UTC
[jira] Commented: (AXIS-2552) Java classes generated by wsdl2java
don't compile
[ https://issues.apache.org/jira/browse/AXIS-2552?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12562461#action_12562461 ]
Alexey Zavizionov commented on AXIS-2552:
-----------------------------------------
WSDL2Java generates uncompilable code.
Classes that inherite from some parent classes have the constructor parameters in the wrong order.
Example:
I have the exeption
/home/alexey/java/eXoProjects/portlet-container/trunk/component/plugins/wsrp2/target/generated/org/exoplatform/services/wsrp2/type/MarkupContext.java:[31,8] cannot find symbol
symbol : constructor MimeResponse(java.lang.String,java.lang.Boolean)
location: class org.exoplatform.services.wsrp2.type.MimeResponse
Parent:
<complexType name="MimeResponse">
<sequence>
<element name="useCachedItem" type="xsd:boolean" default="false" minOccurs="0"/>
</sequence>
<attribute name="ccppProfileWarning" type="xsd:string" use="optional"/>
</complexType>
<element name="MimeResponse" type="types:MimeResponse"/>
public class MimeResponse implements java.io.Serializable {
public MimeResponse(
java.lang.Boolean useCachedItem,
java.lang.String ccppProfileWarning) {
this.useCachedItem = useCachedItem;
this.ccppProfileWarning = ccppProfileWarning;
}
Child:
<complexType name="MarkupContext">
<complexContent>
<extension base="types:MimeResponse">
<sequence>
<element name="preferredTitle" type="xsd:string" minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>
<element name="MarkupContext" type="types:MarkupContext"/>
public class MarkupContext extends org.exoplatform.services.wsrp2.type.MimeResponse implements java.io.Serializable {
public MarkupContext(
java.lang.String ccppProfileWarning,
java.lang.Boolean useCachedItem,
java.lang.String preferredTitle) {
super(
ccppProfileWarning,
useCachedItem);
this.preferredTitle = preferredTitle;
}
> Java classes generated by wsdl2java don't compile
> -------------------------------------------------
>
> Key: AXIS-2552
> URL: https://issues.apache.org/jira/browse/AXIS-2552
> Project: Axis
> Issue Type: Bug
> Components: WSDL processing
> Affects Versions: 1.4
> Environment: Linux OpenSuse 10.1
> Java JDK 1.5.0_06-b05
> Apache Axis 1.4
> Reporter: Jose Manuel Valladares Pernas
> Attachments: files.ZIP
>
>
> I have an wsdl that imports several xsd schemas and I
> used an ant task with WSDL2Java to produce the
> corresponding java clases.
> 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.
> The schema files should be correct as they come from the OTA specification.
> I am attaching the files I am using in a zip file.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org