Uploaded image for project: 'Axis-C++'
  1. Axis-C++
  2. AXISCPP-849

Stub compilation problems when WSDL contains complexTypes and elements of the same name

    XMLWordPrintableJSON

Details

    Description

      When a WSDL contains a CompexType name and an element name that are the same, the generated code does not compile. For example, if a WSDL/XSD contains the following code...

      <xsd:complexType name="aName">
      <xsd:sequence>
      <xsd:element name="aName" type="xsd:string"/>
      </xsd:sequence>
      </xsd:complexType>

      This gets turned into the following stub code...

      class STORAGE_CLASS_INFO aName
      {
      public:
      xsd__string aName;

      And when this is compiled, the following error (and others) results:-

      "type(s) preceeding 'aName' (constructor with return type, or illegal redefinition of current class name?)"

      Attachments

        Activity

          People

            nadiramra Nadir K. Amra
            prestonf Fred Preston
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: