Uploaded image for project: 'Axis2-C'
  1. Axis2-C
  2. AXIS2C-1333

Wrong include file / type generated for axutil_array_list_t types

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.5.0
    • None
    • wsdl2c tool
    • None
    • Scientific Linux 4

    Description

      The generated code out of the WSDL copied at the end of the report generates wrong C code. The code contains definitely wrong lines like

      #include "adb_axutil_array_list_t*.h"

      and wants to use the "adb_axutil_array_list_t*" name as part of function names, etc. Suspicion is that the code wants to refer to the "axutil_array_list_t" type, and include the "axutil_array_list.h" file form the Axis/C header file set.

      The command used for code generation:

      WSDL2C.sh -uri fts-channel-management.wsdl -ss -u -o src

      The WSDL:

      ----------------- START ----------------
      <?xml version="1.0" encoding="UTF-8"?>
      <wsdl:definitions name="transfer-cli"
      targetNamespace="http://glite.org/wsdl/services/org.glite.data.transfer.channel"
      xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
      xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      xmlns:tns="http://glite.org/wsdl/services/org.glite.data.transfer.channel">

      <wsdl:types>

      <xsd:schema targetNamespace="http://glite.org/wsdl/services/org.glite.data.transfer.channel"
      xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">

      <xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/"
      schemaLocation="http://schemas.xmlsoap.org/soap/encoding/" />

      <xsd:complexType name="ArrayOfString">
      <xsd:complexContent mixed="false">
      <xsd:restriction base="soapenc:Array">
      <xsd:attribute ref="soapenc:arrayType" wsdl:arrayType="soapenc:string[]" />
      </xsd:restriction>
      </xsd:complexContent>
      </xsd:complexType>

      <xsd:element name="listChannelsResponseElement">
      <xsd:complexType>
      <xsd:sequence>
      <xsd:element name="out" type="tns:ArrayOfString" />
      </xsd:sequence>
      </xsd:complexType>
      </xsd:element>

      <xsd:complexType name="TransferExceptionType">
      <xsd:sequence>
      <xsd:element name="message" nillable="true" type="soapenc:string" />
      </xsd:sequence>
      </xsd:complexType>

      <xsd:element name="InternalExceptionElement">
      <xsd:complexType>
      <xsd:complexContent>
      <xsd:extension base="tns:TransferExceptionType">
      <xsd:sequence />
      </xsd:extension>
      </xsd:complexContent>
      </xsd:complexType>
      </xsd:element>

      <xsd:element name="AuthorizationExceptionElement">
      <xsd:complexType>
      <xsd:complexContent>
      <xsd:extension base="tns:TransferExceptionType">
      <xsd:sequence />
      </xsd:extension>
      </xsd:complexContent>
      </xsd:complexType>
      </xsd:element>

      </xsd:schema>
      </wsdl:types>

      <wsdl:message name="listChannelsRequest" />

      <wsdl:message name="listChannelsResponse">
      <wsdl:part name="listChannelsReturn" element="tns:listChannelsResponseElement" />
      </wsdl:message>

      <wsdl:message name="AuthorizationException">
      <wsdl:part name="fault" element="tns:AuthorizationExceptionElement" />
      </wsdl:message>

      <wsdl:message name="InternalException">
      <wsdl:part name="fault" element="tns:InternalExceptionElement" />
      </wsdl:message>

      <wsdl:portType name="ChannelManagement">
      <wsdl:operation name="listChannels">
      <wsdl:input message="tns:listChannelsRequest" name="listChannelsRequest" />
      <wsdl:output message="tns:listChannelsResponse" name="listChannelsResponse" />
      <wsdl:fault message="tns:InternalException" name="InternalException" />
      <wsdl:fault message="tns:AuthorizationException" name="AuthorizationException" />
      </wsdl:operation>
      </wsdl:portType>

      <wsdl:binding name="ChannelManagementSoapBinding" type="tns:ChannelManagement">
      <wsdlsoap:binding style="document"
      transport="http://schemas.xmlsoap.org/soap/http" />

      <wsdl:operation name="listChannels">
      <wsdlsoap:operation soapAction="" />

      <wsdl:input name="listChannelsRequest">
      <wsdlsoap:body
      namespace="http://glite.org/wsdl/services/org.glite.data.transfer.channel"
      use="literal" />
      </wsdl:input>

      <wsdl:output name="listChannelsResponse">
      <wsdlsoap:body
      namespace="http://glite.org/wsdl/services/org.glite.data.transfer.channel"
      use="literal" />
      </wsdl:output>

      <wsdl:fault name="InternalException">
      <wsdlsoap:fault name="InternalException" use="literal" />
      </wsdl:fault>

      <wsdl:fault name="AuthorizationException">
      <wsdlsoap:fault name="AuthorizationException" use="literal" />
      </wsdl:fault>
      </wsdl:operation>
      </wsdl:binding>

      <wsdl:service name="ChannelManagementService">
      <wsdl:port binding="tns:ChannelManagementSoapBinding" name="ChannelManagement">
      <wsdlsoap:address
      location="https://localhost:8443/glite-data-transfer-interface/ChannelManagement" />
      </wsdl:port>
      </wsdl:service>
      </wsdl:definitions>
      ----------------- END ----------------

      Attachments

        Activity

          People

            Unassigned Unassigned
            molnarzs Zsolt Molnar
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: