-
Bug
-
Resolution: Fixed
-
Medium
-
3.0.3
-
None
-
None
-
Java 1.4.2 on FC2 Linux, Axis 1.2 RC2 against RPC on Jira 3.0.3 Enterprise.
-
3
-
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
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.
- relates to
-
CONFSERVER-643 soap wsdl is broken ( and you need to add a remote api component )
- Closed