You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Derek Foster (JIRA)" <ji...@apache.org> on 2006/07/14 01:37:33 UTC
[jira] Commented: (AXIS2-845) WSDL2Java fails to detect nonexistent
element referenced by wsdl:message
[ http://issues.apache.org/jira/browse/AXIS2-845?page=comments#action_12420968 ]
Derek Foster commented on AXIS2-845:
------------------------------------
See also AXIS2-765 and AXIS2-844.
> 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org