Hi, folks.

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 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.

Should I file this as a JIRA bug?

Derek




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

Reply via email to