[ https://issues.apache.org/jira/browse/AXIS2C-1333?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Zsolt Molnar updated AXIS2C-1333: --------------------------------- 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 ---------------- was: 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 > Wrong include file / type generated for axutil_array_list_t types > ----------------------------------------------------------------- > > Key: AXIS2C-1333 > URL: https://issues.apache.org/jira/browse/AXIS2C-1333 > Project: Axis2-C > Issue Type: Bug > Components: wsdl2c tool > Affects Versions: 1.5.0 > Environment: Scientific Linux 4 > Reporter: Zsolt Molnar > Fix For: 1.5.0 > > > 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 ---------------- -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.