You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "I.Venuti" <i....@caribel.pisa.it> on 2005/04/18 09:14:59 UTC

Axis fails to generate wrrapped style messages from this WSDL

Hi,

I've this WSDL that works well. But if I remove the comments for operation
"confermationOrder" axis fails to generate wrapped style server-side classe.

Is there something wrong with my WSDL?
Thanks

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions
    name="ProductsExampleWS"
    targetNamespace="http://ivenuti.altervista.org/ProductsExampleWS.wsdl"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:tns="http://ivenuti.altervista.org/ProductsExampleWS.wsdl"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsd1="http://ivenuti.altervista.org/ProductsExampleWS.xsd1">
    <wsdl:types>
        <xsd:schema
            targetNamespace="http://ivenuti.altervista.org/ProductsExampleWS
.xsd1"
            xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
            xmlns:xsd="http://www.w3.org/2001/XMLSchema"
            xmlns:xsd1="http://ivenuti.altervista.org/ProductsExampleWS.xsd1
">
            <xsd:complexType name="Product">
                <xsd:annotation>
                    <xsd:documentation>Rappresents each product available
for each order</xsd:documentation>
                </xsd:annotation>
                <xsd:sequence>
                    <xsd:element maxOccurs="1" minOccurs="1" name="id"
type="xsd:string"/>
                    <xsd:element maxOccurs="1" minOccurs="1"
name="description" type="xsd:string"/>
                    <xsd:element maxOccurs="1" minOccurs="1" name="price"
type="xsd:double"/>
                    <xsd:element maxOccurs="1" minOccurs="1" name="currency"
type="xsd:string"/>
                    <xsd:element maxOccurs="1" minOccurs="1"
name="available" type="xsd:boolean"/>
                </xsd:sequence>
            </xsd:complexType>
            <xsd:complexType name="ArrayOfProduct">
                <xsd:sequence>
                    <xsd:element
                        maxOccurs="unbounded"
                        minOccurs="1"
                        name="item"
                        type="xsd1:Product"/>
                </xsd:sequence>
            </xsd:complexType>
            <xsd:complexType name="ArrayOfProductInOrder">
                <xsd:sequence>
                    <xsd:element
                        maxOccurs="unbounded"
                        minOccurs="1"
                        name="item"
                        type="xsd1:ProductInOrder"/>
                </xsd:sequence>
            </xsd:complexType>
            <xsd:element name="productsListResponse"
type="xsd1:ArrayOfProduct">
            </xsd:element>
            <xsd:element name="productsList" type="xsd:date">
            </xsd:element>
            <xsd:element name="confirmationOrder" type="xsd:string">
            </xsd:element>
            <xsd:element
                name="ElementArrayOfProductInOrder"
                type="xsd1:ArrayOfProductInOrder">
            </xsd:element>
            <xsd:element
                name="productsOrder"
                type="xsd1:ArrayOfProductInOrder">
            </xsd:element>
            <xsd:complexType name="OrderWithConfirmation">
                <xsd:sequence>
                    <xsd:element
                        maxOccurs="1"
                        minOccurs="1"
                        name="order"
                        type="xsd1:ArrayOfProductInOrder"/>
                    <xsd:element maxOccurs="1" minOccurs="1" name="magic"
type="xsd:string"/>
                </xsd:sequence>
            </xsd:complexType>
            <xsd:element
                name="productsOrderResponse"
                type="xsd1:OrderWithConfirmation">
            </xsd:element>
            <xsd:element name="ElementMagic" type="xsd:string">
            </xsd:element>
            <xsd:element name="confirmationOrderResponse"
type="xsd:boolean">
            </xsd:element>
            <xsd:complexType name="ProductInOrder">
                <xsd:sequence>
                    <xsd:element maxOccurs="1" minOccurs="1" name="id"
type="xsd:string"/>
                    <xsd:element
                        maxOccurs="1"
                        minOccurs="1"
                        name="quantity"
                        type="xsd:nonNegativeInteger"/>
                </xsd:sequence>
            </xsd:complexType>
        </xsd:schema>
    </wsdl:types>
    <wsdl:message name="productsOrder">
        <wsdl:part element="xsd1:productsOrder" name="productsOrder"/>
    </wsdl:message>
    <wsdl:message name="productsOrderResponse">
        <wsdl:part element="xsd1:productsOrderResponse"
name="productsOrderResponse"/>
    </wsdl:message>
    <wsdl:message name="productsList">
        <wsdl:part element="xsd1:productsList" name="productsList"/>
    </wsdl:message>
    <wsdl:message name="productsListResponse">
        <wsdl:part element="xsd1:productsListResponse"
name="productsListResponse"/>
    </wsdl:message>
    <wsdl:message name="confirmationOrder">
        <wsdl:part element="xsd1:confirmationOrder"
name="confirmationOrder"/>
    </wsdl:message>
    <wsdl:message name="confirmationOrderResponse">
        <wsdl:part element="xsd1:confirmationOrderResponse"
name="confirmationOrderResponse"/>
    </wsdl:message>
    <wsdl:portType name="ProductsExampleWSPortType">
        <wsdl:operation name="productsList">
            <wsdl:input message="tns:productsList" name="productsList"/>
            <wsdl:output message="tns:productsListResponse"
name="productsListResponse"/>
        </wsdl:operation>
        <wsdl:operation name="productsOrder">
            <wsdl:input message="tns:productsOrder" name="productsOrder"/>
            <wsdl:output message="tns:productsOrderResponse"
name="productsOrderResponse"/>
        </wsdl:operation>
        <!--wsdl:operation name="confirmationOrder">
            <wsdl:input message="tns:confirmationOrder"
name="confirmationOrder"/>
            <wsdl:output message="tns:confirmationOrderResponse"
name="confirmationOrderResponse"/>
        </wsdl:operation-->
    </wsdl:portType>
    <wsdl:binding
        name="ProductsExampleWSBinding"
        type="tns:ProductsExampleWSPortType">
        <soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
        <wsdl:operation name="productsList">
            <soap:operation
                soapAction="capeconnect:ProductsExampleWS:ProductsExampleWSP
ortType#productsList"/>
            <wsdl:input>
                <soap:body parts="productsList" use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body parts="productsListResponse" use="literal"/>
            </wsdl:output>
        </wsdl:operation>
        <wsdl:operation name="productsOrder">
            <soap:operation
                soapAction="capeconnect:ProductsExampleWS:ProductsExampleWSP
ortType#productsOrder"/>
            <wsdl:input>
                <soap:body parts="productsOrder" use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body parts="productsOrderResponse" use="literal"/>
            </wsdl:output>
        </wsdl:operation>
        <!--wsdl:operation name="confirmationOrder">
            <soap:operation
                soapAction="capeconnect:ProductsExampleWS:ProductsExampleWSP
ortType#confirmationOrder"/>
            <wsdl:input>
                <soap:body parts="confirmationOrder" use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body parts="confirmationOrderResponse" use="literal"/>
            </wsdl:output>
        </wsdl:operation-->
    </wsdl:binding>
    <wsdl:service name="ProductsExampleWS">
        <wsdl:port binding="tns:ProductsExampleWSBinding"
name="ProductsExampleWSPort">
            <soap:address
location="http://localhost:8080/axis/ProductsExampleWS"/>
        </wsdl:port>
    </wsdl:service>
</wsdl:definitions>

-- Ivan