[ http://issues.apache.org/jira/browse/AXIS2-845?page=all ]

Deepal Jayasinghe reassigned AXIS2-845:
---------------------------------------

    Assign To: Ajith Harshana Ranabahu

> WSDL2Java fails to detect nonexistent element referenced by wsdl:message
> ------------------------------------------------------------------------
>
>          Key: AXIS2-845
>          URL: http://issues.apache.org/jira/browse/AXIS2-845
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug

>     Reporter: Derek Foster
>     Assignee: Ajith Harshana Ranabahu

>
> I recently noticed that the Axis2 WSDL2Java program, when generating 
> XmlBeans, seems to accept WSDL which contains references to nonexistent 
> elements. For instance:
>    <types>
>       <xs:schema>
>          <xs:import namespace="http://www.dummy-im-address";
> schemaLocation="im.xsd"/>
>       </xs:schema>
>    </types>
>    <message name="IEEE1512Event">
>       <part name="iMWrapper" element="im:thisDoesNotExist"/>
>    </message>
> The element "thisDoesNotExist" is not defined anywhere in the im.xsd schema 
> file, yet WSDL2Java reports no warnings or errors when asked to generate code 
> for a service using this WSDL file. The server skeleton that is generated 
> takes a parameter of type XmlObject where the thisDoesNotExist element would 
> be passed. Considering that this can easily happen due to a simple typo in an 
> element name, this seems like a very difficult problem to track down.
> It seems to me that an error, or at least a warning, should be reported for 
> cases like this.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to