axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Zavizionov (JIRA)" <>
Subject [jira] Commented: (AXIS-2552) Java classes generated by wsdl2java don't compile
Date Fri, 25 Jan 2008 12:07:34 GMT


Alexey Zavizionov commented on AXIS-2552:

WSDL2Java generates uncompilable code.

Classes that inherite from some parent classes have the constructor parameters in the wrong


I have the exeption
cannot find symbol
symbol  : constructor MimeResponse(java.lang.String,java.lang.Boolean)
location: class

   <complexType name="MimeResponse">
      <element name="useCachedItem"      type="xsd:boolean"        default="false" minOccurs="0"/>
    <attribute name="ccppProfileWarning" type="xsd:string"         use="optional"/>
  <element name="MimeResponse" type="types:MimeResponse"/>

public class MimeResponse  implements {

    public MimeResponse(
           java.lang.Boolean useCachedItem,
           java.lang.String ccppProfileWarning) {
           this.useCachedItem = useCachedItem;
           this.ccppProfileWarning = ccppProfileWarning;


  <complexType name="MarkupContext">
      <extension base="types:MimeResponse">
          <element name="preferredTitle"      type="xsd:string"         minOccurs="0"/>
  <element name="MarkupContext" type="types:MarkupContext"/>
public class MarkupContext  extends  implements {

    public MarkupContext(
           java.lang.String ccppProfileWarning,
           java.lang.Boolean useCachedItem,
           java.lang.String preferredTitle) {
        this.preferredTitle = preferredTitle;

> Java classes generated by wsdl2java don't compile
> -------------------------------------------------
>                 Key: AXIS-2552
>                 URL:
>             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:
For additional commands, e-mail:

View raw message