You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org> on 2005/08/21 04:46:58 UTC

[jira] Resolved: (AXIS-2164) classes generated by wsdl2java don't compile

     [ http://issues.apache.org/jira/browse/AXIS-2164?page=all ]
     
Davanum Srinivas resolved AXIS-2164:
------------------------------------

    Resolution: Fixed

Yves, fixed your problem. David, yours seems to be a different problem unrelated to Yves' problem. Please open one more bug report.

thanks,
dims

> classes generated by wsdl2java don't compile
> --------------------------------------------
>
>          Key: AXIS-2164
>          URL: http://issues.apache.org/jira/browse/AXIS-2164
>      Project: Apache Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: current (nightly)
>     Reporter: Yves Langisch
>     Priority: Blocker
>  Attachments: AgencyIntegrationServices-V1.0.wsdl
>
> Running wsdl2java with the wsdl below generates classes which don't compile. The problem is that CountryCodeType is newly inherited (1.2.1 didn't do that) from CountryCoded which doesn't define a non-argument default constructor but CountryCodeType defines one.
> My wsdl:
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions xmlns:tns="http://helloworld.ch/schema/service" xmlns:types="http://helloworld.ch/schema/types" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://helloworld.ch/schema/service" name="SalaryDeclarationService">
>     <wsdl:types>
>         <xs:schema xmlns:tns="http://helloworld.ch/schema/service" targetNamespace="http://helloworld.ch/schema/service"
>             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>             xmlns:un.ece.unedocs.cl.iso3166="http://www.unece.org/etrades/unedocs/repository/codelists/xml/CountryCode.xsd">
>             <xs:import namespace="http://www.unece.org/etrades/unedocs/repository/codelists/xml/CountryCode.xsd" schemaLocation="CountryCode.xsd"/>
>             <xs:element name="AbTst" type="un.ece.unedocs.cl.iso3166:CountryCodeType"/>
>         </xs:schema>
>     </wsdl:types>
>     <wsdl:message name="HelloWorldRequest">
>         <wsdl:part name="body" element="tns:AbTst"/>
>     </wsdl:message>
>     <wsdl:message name="HelloWorldResponse">
>         <wsdl:part name="body" element="tns:AbTst"/>
>     </wsdl:message>
>     <wsdl:portType name="MyPort">
>         <wsdl:operation name="HelloWorld">
>             <wsdl:input message="tns:HelloWorldRequest"/>
>             <wsdl:output message="tns:HelloWorldResponse"/>
>         </wsdl:operation>
>     </wsdl:portType>
>     <wsdl:binding name="MySOAPBinding" type="tns:MyPort">
>         <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
>         <wsdl:operation name="HelloWorld">
>             <soap:operation style="document"/>
>             <wsdl:input>
>                 <soap:body use="literal"/>
>             </wsdl:input>
>             <wsdl:output>
>                 <soap:body use="literal"/>
>             </wsdl:output>
>         </wsdl:operation>
>     </wsdl:binding>
>     <wsdl:service name="MyService">
>         <wsdl:port name="HelloWorld" binding="tns:MySOAPBinding">
>             <soap:address location="http://localhost:9000/axis/services/HelloWorld"/>
>         </wsdl:port>
>     </wsdl:service>
> </wsdl:definitions>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira