Uploaded image for project: 'Axis'
  1. Axis
  2. AXIS-2902

WSDL2Java generated code does not compile

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.4
    • None
    • WSDL processing
    • None

    Description

      I have a WSDL document that generates a code that does not compile
      Im attaching a sample WSDL to reproduce the bug
      Using SoapUI to generate the code. It passes the following parameters to axis:
      command: [java, -cp, <jars>, org.apache.axis.wsdl.WSDL2Java, -v, -T, 1.2, -o, <outdir>, <wsdldir>]
      Errors found in .java files:

      HRBindingStub.java: ';' expected
      > Method throwing an array at line 257:

      public url.com.Acc_RefsRootType fnd_Acc(url.com.Acc_FndType body) throws java.rmi.RemoteException, url.com.Prt_FaultType, url.com.Val_ErrorType[] {

      Acc_RefsRootType.java:

      public class Acc_RefsRootType implements java.io.Serializable {
      private java.lang.String version; // attribute

      private url.com.Acc_Ref_WWSType[] acc_RefsType; // attribute

      public Acc_RefsRootType() {
      }

      public Acc_RefsRootType(
      java.util.Date As_Of_Date,
      url.com.Acc_Ref_WWSType[] param1,
      java.lang.String version) {
      super(
      As_Of_Date);
      this.param1 = param1;
      this.version = version;
      }

      > call to super(As_Of_Date) when there is no super class (just implements Serializable)
      > this.param1 = param1; assignation in constructor when variable has been defined as acc_RefsType

      Attachments

        1. sample.wsdl
          7 kB
          Jacobo Sánchez López

        Activity

          People

            Unassigned Unassigned
            jacobo Jacobo Sánchez López
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: