Previously posted, but unanswered:

In my WSDL I have types that are derived from anyType. By changing the derivation from 
anyType from by extension to by restriction, my Java code generated by WSDL2Java has 
no getters/setters, resulting in compilation errors in my client code.

Apparently DevStudio.NET won't take the WSDLs if derivation from anyType is by 
extension.
 
Axis won't generate correct code if the WSDLs if derivation from anyType by 
restriction is used.


In my mind, deriving from anyType by restriction doesn't make sense anyway. 
Regardless, is Axis' behavior correct in this case? I will email my WSDL upon request.

e.g.

  <complexType name="AltLink">
   <complexContent>
    <extension base="xsd:anyType">
     <sequence>
      <element name="prev" type="ts:stringData" minOccurs="0" maxOccurs="1"/>
      <element name="next" type="ts:stringData" minOccurs="0" maxOccurs="1"/>
     </sequence>
    </extension>
   </complexContent>
  </complexType>

FYI, this schema is generated by gSOAP using <restriction> instead of <extension>.

cheers,
        Simon

Reply via email to