soap4r icon indicating copy to clipboard operation
soap4r copied to clipboard

add support for group element

Open marek-veber opened this issue 7 years ago • 0 comments

I don't study any specification, byt my code works for /usr/bin/xsd2ruby.rb --xsd filter.xsd --mapper --mapping_registry --force --classdef pohoda-xsd --module_path 'PohodaXsd'

Old code generate exeption with xsd like:

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ftr="http://www.stormware.cz/schema/version_2/filter.xsd" xmlns="http://www.stormware.cz/schema/version_2/filter.xsd" targetNamespace="http://www.stormware.cz/schema/version_2/filter.xsd" elementFormDefault="qualified"

<xsd:complexType name="requestInvoiceType"> <xsd:group ref="ftr:groupFilter_1"/> </xsd:complexType>

<xsd:group name="groupFilter_1"> xsd:all <xsd:element name="filter" type="ftr:filterDocsType" minOccurs="0"> xsd:annotation xsd:documentationSeznam polí, podle kterých se budou filtrovat doklady.</xsd:documentation> </xsd:annotation> </xsd:element> <xsd:element name="userFilterName" type="xsd:string" minOccurs="0"> xsd:annotation xsd:documentationIdentifikátor uživatelského filtru v požadované agendě, který má být použit pro filtraci záznamů.</xsd:documentation> </xsd:annotation> </xsd:element> </xsd:all> </xsd:group>

</xsd:schema>

marek-veber avatar Mar 06 '18 22:03 marek-veber