Hi,

I am using gSOAP 2.7.17 to try to parse the WITSML 1.3.1.1 schema and have
discovered
that wsdl2h seems to skip some <xsd:sequence> elements that are inside
another <xsd:sequence>
in some cases in this schema.

I have managed to boil the problem down to an example schema, shown below.

(I don't understand why an embedded sequence was used in this case.)

With the attached schema, I just run with this command line:
   wsdl2h -o example.h example.xsd

Am I missing something here?  I am pretty new to gSoap and hope it's
something simple!

Thanks for any help,

carl

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema
elementFormDefault="qualified"
attributeFormDefault="unqualified"
targetNamespace="http://www.witsml.org/schemas/131";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>

  <xsd:complexType name="alphabets">
    <xsd:sequence>
      <xsd:element name="a" />
      <xsd:element name="b" />

    <xsd:group name="group">
      <xsd:sequence>
<xsd:element name="alpha" />
<xsd:element name="beta" />
 <!-- This sequence doesn't survive wsdl2h... -->
<xsd:sequence>
  <xsd:element name="gamma" />
  <xsd:element name="delta" />
</xsd:sequence>
 <xsd:element name="epsilon" />
<xsd:element name="zeta" />
      </xsd:sequence>
    </xsd:group>

    <xsd:element name="c"  />
    <xsd:element name="d"  />
    </xsd:sequence>
  </xsd:complexType>

</xsd:schema>

Reply via email to