I can't help you with the tool you're using to generate the WSDL. Obviously it has some problems -- not sure if it's user error or bugs -- but the fact that it generates namespace attributes in the <soap:body> definitions in a document style WSDL leads me to believe that it's not all user error.

In any case, I've attached a revised and corrected WSDL.

Anne

On 6/9/06, Jim Bender <[EMAIL PROTECTED] > wrote:
I suspect that I need to regenerate the WSDL file for my toy example
and debug the WSDL2Java to find out what the issue is that I had
been seeing. I had deleted an element that may need to be there for
the WSDL2Java to work.

Regards,

Jim

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions
    targetNamespace="http://PointsCalculator.ve.recursionsw.com";
    xmlns:http="http://schemas.xmlsoap.org/wsdl/http/";
    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/";
    xmlns:ns="http://PointsCalculator.ve.recursionsw.com";
    xmlns:ns1="http://PointsCalculator.ve.recursionsw.com/types";
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
    xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/";
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>
    <wsdl:types>
        <xs:schema
            attributeFormDefault="unqualified"
            elementFormDefault="qualified"
            targetNamespace="http://PointsCalculator.ve.recursionsw.com/types";
            xmlns:types="http://PointsCalculator.ve.recursionsw.com/types";
            xmlns:xs="http://www.w3.org/2001/XMLSchema";>
            <xs:element name="FoodDescription" type="types:FoodDescription"/>
            <xs:complexType name="FoodDescription">
                <xs:sequence>
                    <xs:element name="calories" type="xs:int"/>
                    <xs:element name="fatGrams" type="xs:int"/>
                    <xs:element name="fiberGrams" type="xs:int"/>
                    <xs:element name="points" type="xs:int"/>
                </xs:sequence>
            </xs:complexType>
            <xs:element name="calculatePoints">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element ref="types:FoodDescription"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element name="calculatePointsResponse">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element name="return" type="xs:int"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
        </xs:schema>
    </wsdl:types>
    <wsdl:message name="calculatePointsResponseMessage">
        <wsdl:part element="ns1:calculatePointsResponse" name="parameters"/>
    </wsdl:message>
    <wsdl:message name="calculatePointsMessage">
        <wsdl:part element="ns1:calculatePoints" name="parameters"/>
    </wsdl:message>
    <wsdl:portType name="PointsCalculatorPortType">
        <wsdl:operation name="calculatePoints">
            <wsdl:input message="ns:calculatePointsMessage"/>
            <wsdl:output message="ns:calculatePointsResponseMessage"/>
        </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding
        name="PointsCalculatorSOAP11Binding"
        type="ns:PointsCalculatorPortType">
        <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
        <wsdl:operation name="calculatePoints">
            <soap:operation soapAction="urn:calculatePoints" 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="PointsCalculatorSOAP12Binding"
        type="ns:PointsCalculatorPortType">
        <soap12:binding
            style="document"
            transport="http://schemas.xmlsoap.org/soap/http"/>
        <wsdl:operation name="calculatePoints">
            <soap12:operation soapAction="urn:calculatePoints" style="document"/>
            <wsdl:input>
                <soap12:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap12:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="PointsCalculator">
        <wsdl:port
            binding="ns:PointsCalculatorSOAP11Binding"
            name="PointsCalculatorSOAP11port">
            <soap:address
                location="c:/Java/projects2/axis2-std-1.0testbed\build\wsdlPointsCalculator"/>
        </wsdl:port>
        <wsdl:port
            binding="ns:PointsCalculatorSOAP12Binding"
            name="PointsCalculatorSOAP12port">
            <soap12:address
                location="c:/Java/projects2/axis2-std-1.0testbed\build\wsdlPointsCalculator"/>
        </wsdl:port>
    </wsdl:service>
</wsdl:definitions>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to