axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Armbrust" <>
Subject Re: AXIS2 - Sad State of code generation tools?
Date Sun, 13 Apr 2008 22:07:05 GMT
The spec I am working from is CTS:

So that is where all of these data types that I reference originates from.

I'm not actually getting any errors at the moment - the main problem I
have is that the generated interfaces are just way off from the IDL
spec - and I didn't have this issue with Axis1.

In Wsdl - I see this:

            <xs:element name="UnexpectedError">
                        <xs:element minOccurs="0"
name="UnexpectedError" nillable="true" type="ns0:UnexpectedError"/>


            <xs:complexType name="UnexpectedError">
                    <xs:extension base="ns0:Exception">
                            <xs:element minOccurs="0"
name="possible_cause" nillable="true" type="xs:string"/>

 <wsdl:message name="UnexpectedError">
        <wsdl:part name="parameters" element="ns0:UnexpectedError"/>


        <wsdl:operation name="getSupportedMatchAlgorithms">
            <wsdl:fault message="ns0:UnexpectedError"

But then in the generated java, (wsdl -> java) I get something more like this:

    public boolean isConceptIdValid(org.hl7.CTSVAPI.ConceptId concept_id4,
        boolean activeConceptsOnly)
        throws UnknownCodeSystemException3, UnexpectedErrorException4;

(also note the weird number on the variable which should be named "concept_id"

And I have classes like this:

public class UnexpectedErrorException4 extends java.lang.Exception {
    private org.hl7.CTSVAPI.UnexpectedError7 faultMessage;


public class UnexpectedError7 implements org.apache.axis2.databinding.ADBBean {
    public static final javax.xml.namespace.QName MY_QNAME = new
            "UnexpectedError", "ns1");


public class UnexpectedError extends org.hl7.CTSVAPI.Exception
implements org.apache.axis2.databinding.ADBBean {

The CTS code is all open, from that website, so I can give you info on
how to get the Java code (that comes out of the IDL conversion) if you
want to test things yourself.



On Sun, Apr 13, 2008 at 4:43 PM, Martin Gainty <> wrote:
> I have'nt heard of UnexpectedError5 in fact the closest datatype definitions
>  I have is from enterprise.wsdl e.g.
>  <!-- assume this namespace -->
>  <definitions xmlns:fns="">
>  <!-- I see this definition of UnexpectedError -->
>  <complexType name="UnexpectedErrorFault">
>                 <complexContent>
>                     <extension base="fns:ApiFault"/>
>                 </complexContent>
>             </complexType>
>  Can you display any information on where you see this UnexpectedError5
>  (logs/StackTrace with the UnexpectedError5) ?
>  Martin

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message