Welcome to the "trac"-ing site of soap4r!
[soap4r] [httpclient] [openpgp4u] [pkcs1] [logger] [csv] [vtr]

Ticket #478 (new defect)

Opened 3 months ago

anyType Extension

Reported by: user Assigned to: nahi
Priority: highest Milestone: undefined
Component: wsdl4r Version: 1.5
Keywords: anyType Extension Cc:

Description

The following is not working, because anyType is not found in the list of ComplexTypes?.

<xsd:complexType>
  <xsd:complexContent mixed="true">
    <xsd:extension base="xsd:anyType">
      <xsd:attribute name="dialect" type="xsd:anyURI" use="required"/>
    </xsd:extension>
  </xsd:complexContent>
</xsd:complexType>

Temporal (?) Solution (wsdl/xmlSchema/complexExtension.rb):

def basetype
  @basetype ||= root.collect_complextypes[@base]
  @basetype ||= ComplexType.new
end

Change the basetype function so that a plain local ComplexType? is created whenever basetype is empty.