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 "Deepal Jayasinghe (JIRA)" <ji...@apache.org> on 2008/07/07 13:45:31 UTC

[jira] Resolved: (AXIS2-3467) java2wsdl for complex java objects (using inheritance)

     [ https://issues.apache.org/jira/browse/AXIS2-3467?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Deepal Jayasinghe resolved AXIS2-3467.
--------------------------------------

    Resolution: Fixed

I just  checked with the trunk and it generated the following WSDL , I think which is correct 

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:ax21="http://test.com/xsd" xmlns:ns="http://service.com" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" targetNamespace="http://service.com">
    <wsdl:types>
        <xs:schema xmlns:ax22="http://test.com/xsd" attributeFormDefault="qualified" elementFormDefault="unqualified" targetNamespace="http://service.com">
            <xs:import namespace="http://test.com/xsd"/>
            <xs:element name="getFoo2Response">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element minOccurs="0" name="return" nillable="true" type="ax22:Foo2"/>
                    </xs:sequence>

                </xs:complexType>
            </xs:element>
        </xs:schema>
        <xs:schema attributeFormDefault="qualified" elementFormDefault="unqualified" targetNamespace="http://test.com/xsd">
            <xs:complexType name="Foo">
                <xs:sequence>
                    <xs:element minOccurs="0" name="str1" nillable="true" type="xs:string"/>
                    <xs:element minOccurs="0" name="str2" nillable="true" type="xs:string"/>
                    <xs:element minOccurs="0" name="str3" nillable="true" type="xs:string"/>

                </xs:sequence>
            </xs:complexType>
            <xs:complexType name="Foo1">
                <xs:complexContent>
                    <xs:extension base="ax21:Foo">
                        <xs:sequence/>
                    </xs:extension>
                </xs:complexContent>
            </xs:complexType>

            <xs:complexType name="Foo2">
                <xs:complexContent>
                    <xs:extension base="ax21:Foo1">
                        <xs:sequence/>
                    </xs:extension>
                </xs:complexContent>
            </xs:complexType>
        </xs:schema>
    </wsdl:types>

    <wsdl:message name="getFoo2Request"/>
    <wsdl:message name="getFoo2Response">
        <wsdl:part name="parameters" element="ns:getFoo2Response"/>
    </wsdl:message>
    <wsdl:portType name="TestServicePortType">
        <wsdl:operation name="getFoo2">
            <wsdl:input message="ns:getFoo2Request" wsaw:Action="urn:getFoo2"/>
            <wsdl:output message="ns:getFoo2Response" wsaw:Action="urn:getFoo2Response"/>
        </wsdl:operation>

    </wsdl:portType>
    <wsdl:binding name="TestServiceSoap11Binding" type="ns:TestServicePortType">
        <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
        <wsdl:operation name="getFoo2">
            <soap:operation soapAction="urn:getFoo2" 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="TestServiceSoap12Binding" type="ns:TestServicePortType">
        <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
        <wsdl:operation name="getFoo2">
            <soap12:operation soapAction="urn:getFoo2" 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="TestServiceHttpBinding" type="ns:TestServicePortType">
        <http:binding verb="POST"/>

        <wsdl:operation name="getFoo2">
            <http:operation location="TestService/getFoo2"/>
            <wsdl:input>
                <mime:content type="text/xml" part="getFoo2"/>
            </wsdl:input>
            <wsdl:output>
                <mime:content type="text/xml" part="getFoo2"/>
            </wsdl:output>
        </wsdl:operation>

    </wsdl:binding>
    <wsdl:service name="TestService">
        <wsdl:port name="TestServiceHttpSoap11Endpoint" binding="ns:TestServiceSoap11Binding">
            <soap:address location="http://10.100.1.132:8082/axis2/services/TestService.TestServiceHttpSoap11Endpoint"/>
        </wsdl:port>
        <wsdl:port name="TestServiceHttpSoap12Endpoint" binding="ns:TestServiceSoap12Binding">
            <soap12:address location="http://10.100.1.132:8082/axis2/services/TestService.TestServiceHttpSoap12Endpoint"/>
        </wsdl:port>
        <wsdl:port name="TestServiceHttpEndpoint" binding="ns:TestServiceHttpBinding">

            <http:address location="http://10.100.1.132:8082/axis2/services/TestService.TestServiceHttpEndpoint"/>
        </wsdl:port>
    </wsdl:service>
</wsdl:definitions>


>  java2wsdl for complex java objects (using inheritance)
> -------------------------------------------------------
>
>                 Key: AXIS2-3467
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3467
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.3
>         Environment: Windows, java 1.5, axis2 1.3
>            Reporter: Smitha Raghuveer
>         Attachments: BugAnalysis.zip, TestService.wsdl
>
>
> The wsdl generated by the java2wsdl for a complex  java object  (using Axis2 1.3 version) does not look right.
> The java classes uses inheritance and the data types in the complex types keep repeats for each of the subclass.
> I cannot attach the original files. I have tried to cimulate the same example based on my project needs. 

-- 
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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org