Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-5462

Apache Axis cannot generate stub classes from jiraservice-v1.wsdl

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 3.1
    • 3.0.3
    • None
    • None
    • Java 1.4.2 on FC2 Linux, Axis 1.2 RC2 against RPC on Jira 3.0.3 Enterprise.

      Axis fails to generate SOAP stubs with the following error:

      [esm@insight wsdl]$ java org.apache.axis.wsdl.WSDL2Java http://issues.mse.jhu.edu/jira/rpc/soap/jiraservice-v1.wsdl
      java.io.IOException: Type

      {http://www.themindelectric.com/exceptions/}

      exception is referenced but not defined.
      at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:653)
      at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:533)
      at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:506)
      at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:483)
      at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:356)
      at java.lang.Thread.run(Thread.java:534)

      The same error is returned when WSDL2Java is run against Atlassian's wsdl: http://jira.atlassian.com/rpc/soap/jiraservice-v1.wsdl. The error is pretty clear: a type definition is missing in the <wsdl:types /> element. I have tried both Axis 1.1 and Axis 1.2 RC2 and they return the same error. This has been previously reported as CONF-643.

      I can successfully generate the Axis stubs by saving a copy of the WSDL locally, and adding the missing type definition:

      <xsd:schema targetNamespace="http://www.themindelectric.com/exceptions/">
      <xsd:complexType name="throwable">
      <xsd:all>
      <xsd:element name="name" type="xsd:string"/>
      <xsd:element name="object" type="xsd:string"/>
      </xsd:all>
      </xsd:complexType>
      <xsd:complexType name="exception">
      <xsd:complexContent>
      <xsd:extension base="n13:throwable"/>
      </xsd:complexContent>
      </xsd:complexType>
      </xsd:schema>

      It seems that Glue doesn't auto-generate this datatype.

              mark@atlassian.com MarkC
              f17c49c9bf6b Elliot Metsger
              Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: