Issue Details (XML | Word | Printable)

Key: AXIS2-696
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Ajith Harshana Ranabahu
Reporter: Simon Fell
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Axis 2.0 (Axis2)

ADB doesn't appear to support wildcard elements in the schema

Created: 09/May/06 11:13 AM   Updated: 13/May/06 02:15 AM
Return to search
Component/s: databinding
Affects Version/s: 1.0
Fix Version/s: None

Time Tracking:
Not Specified

Environment: WinXP, JDK 1.5.06

Resolution Date: 13/May/06 02:15 AM


 Description  « Hide
using the WSDL from AXIS2-694

ran WSDL2Java -s -u -uri partner.wsdl

the WSDL includes an xsd:any on the definition of SObject, which doesn't appear to have made it into the SObject class, this may be related, the QueryResult complexType ends up with the records array being declared as an OMElement array, not an SObject array. (Axis2-694 stops me from seeing if this array contains anything useful), from the schema
            <complexType name="sObject">
                <sequence>
                    <element name="type" type="xsd:string"/>
                    <element name="fieldsToNull" type="xsd:string" nillable="true" minOccurs="0" maxOccurs="unbounded"/>
                    <element name="Id" type="tns:ID" nillable="true" />
                    <any namespace="##targetNamespace" minOccurs="0" maxOccurs="unbounded" processContents="lax"/>
                </sequence>
            </complexType>

            <complexType name="QueryResult">
                <sequence>
                    <element name="done" type="xsd:boolean"/>
                    <element name="queryLocator" type="tns:QueryLocator" nillable="true"/>
                    <element name="records" type="ens:sObject" nillable="true" minOccurs="0" maxOccurs="unbounded"/>
                    <element name="size" type="xsd:int"/>
                </sequence>
            </complexType>

If ADB doesn't support these schema constructs, it should fail with a useful error message during WSDL2Java.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Ajith Harshana Ranabahu added a comment - 11/May/06 04:07 PM
Fixed. The issue was in handling imported types in the schema compiler. Will resolve the issue once the SVN is up and the change committed

Davanum Srinivas added a comment - 13/May/06 02:15 AM
Fix in latest SVN.

thanks,
dims