[
https://issues.apache.org/jira/browse/AXIS2-2603?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Deepal Jayasinghe resolved AXIS2-2603.
--------------------------------------
Resolution: Fixed
fixed in the current svn and I got the following WSDL
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:axis2="http://ws.apache.org/axis2"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:ns0="http://ws.apache.org/axis2/xsd"
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:ns1="http://org.apache.axis2/xsd"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
targetNamespace="http://ws.apache.org/axis2">
<wsdl:types>
<xs:schema xmlns:ns="http://ws.apache.org/axis2/xsd"
attributeFormDefault="qualified" elementFormDefault="qualified"
targetNamespace="http://ws.apache.org/axis2/xsd">
<xs:element name="validateAdmin">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="param0" nillable="true"
type="ns:Administrator"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="User" type="ns:User"/>
<xs:complexType name="User">
<xs:sequence>
<xs:element minOccurs="0" name="login" nillable="true"
type="xs:string"/>
<xs:element minOccurs="0" name="name" nillable="true"
type="xs:string"/>
<xs:element minOccurs="0" name="password" nillable="true"
type="xs:string"/>
<xs:element minOccurs="0" name="userID" type="xs:int"/>
</xs:sequence>
</xs:complexType>
<xs:element name="Administrator" type="ns:Administrator"/>
<xs:complexType name="Administrator">
<xs:complexContent>
<xs:extension base="ns:User">
<xs:sequence>
<xs:element minOccurs="0" name="login"
nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="name"
nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="password"
nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="userID"
type="xs:int"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:element name="validateAdminResponse">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="return" nillable="true"
type="xs:boolean"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
</wsdl:types>
<wsdl:message name="validateAdminRequest">
<wsdl:part name="parameters" element="ns0:validateAdmin"/>
</wsdl:message>
<wsdl:message name="validateAdminResponse">
<wsdl:part name="parameters" element="ns0:validateAdminResponse"/>
</wsdl:message>
<wsdl:portType name="APIPortType">
<wsdl:operation name="validateAdmin">
<wsdl:input xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
message="axis2:validateAdminRequest" wsaw:Action="urn:validateAdmin"/>
<wsdl:output message="axis2:validateAdminResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="APISOAP11Binding" type="axis2:APIPortType">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"
style="document"/>
<wsdl:operation name="validateAdmin">
<soap:operation soapAction="urn:validateAdmin" style="document"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:binding name="APISOAP12Binding" type="axis2:APIPortType">
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http"
style="document"/>
<wsdl:operation name="validateAdmin">
<soap12:operation soapAction="urn:validateAdmin" style="document"/>
<wsdl:input>
<soap12:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap12:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:binding name="APIHttpBinding" type="axis2:APIPortType">
<http:binding verb="POST"/>
<wsdl:operation name="validateAdmin">
<http:operation location="validateAdmin"/>
<wsdl:input>
<mime:content type="text/xml" part="validateAdmin"/>
</wsdl:input>
<wsdl:output>
<mime:content type="text/xml" part="validateAdmin"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="API">
<wsdl:port name="APISOAP11port_http" binding="axis2:APISOAP11Binding">
<soap:address location="http://localhost:8080/axis2/services/API"/>
</wsdl:port>
<wsdl:port name="APISOAP12port_http" binding="axis2:APISOAP12Binding">
<soap12:address
location="http://localhost:8080/axis2/services/API"/>
</wsdl:port>
<wsdl:port name="APIHttpport" binding="axis2:APIHttpBinding">
<http:address location="http://localhost:8080/axis2/services/API"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
> Java2WSDL does not generate hierarchy if father class is not present in any
> service operation
> ---------------------------------------------------------------------------------------------
>
> Key: AXIS2-2603
> URL: https://issues.apache.org/jira/browse/AXIS2-2603
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: codegen
> Affects Versions: 1.2
> Environment: Windows XP SP2, Java 1.5.0-11, Eclipse plugin generator
> of Axis2 1.2
> Reporter: Jorge Fernández
> Assignee: Deepal Jayasinghe
> Priority: Blocker
> Fix For: 1.3
>
> Attachments: Administrator.java, API.java, API.wsdl, User.java
>
>
> When I have a hierarchy, JAVA2WSDL generates children correctly (as
> extension) but it doesn't generate the father if the father is not present as
> a parameter or return in the API from which I generate the WSDL.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]