axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kakoli Sen" <>
Subject Attribute 'type' of 'element' of XML schema can refer to only primitive data types?
Date Tue, 05 Aug 2008 07:17:02 GMT
Hello all,
    I am new to WSDL. Can someone tell me the difference between attributes
'type' and 'ref' of <xsd:element>. Below is a snippet from my wsdl file :

        <xsd:element name="Employee">
                <xsd:element name="name" type="xsd:string"/>
                <xsd:element name="id" type="xsd:int"/>
                <xsd:element name="join_date" type="xsd:string"/>
        <xsd:element name="EmployeeArray">
                <xsd:element type="Employee" minOccurs="1"

This gives error : Type
{}Employee is referenced but not defined.
But when I replace type="Employee" by ref="tns:Employee", the error goes

The attribute 'type' can refer to only primitive data types? But the
documentation on XML schema says otherwise.

Thanks & Regards,

This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

View raw message