Perhaps part of my issue with being able to generate a parsable WSDL file
from Java2WSDL is the parameters I am using. I have attached the generated file,
and these are the parameters that I am using in the generator.
I also attached (again) the FoodDescription class for this toy example, as
well as he interface that I supplied to the generator.
(I am trying to generate a document/literal style web service they
way I can with Axis2 0.93)

This is how I invoked the Java2WSDL generation:

Java2WSDLBuilder java2WsdlBuilder =
             new Java2WSDLBuilder(outputStream, javaInterfaceName,
classLoader);
String style = Java2WSDLConstants.DOCUMNT;
String use = Java2WSDLConstants.LITERAL;
java2WsdlBuilder.setLocationUri(project.getWsdlDir());
                
java2WsdlBuilder.setSchemaTargetNamespace("http://PointsCalculator.ve.gonzosystems.com/types";);
java2WsdlBuilder.setSchemaTargetNamespacePrefix("types");
java2WsdlBuilder.setServiceName(project.getServiceName());
java2WsdlBuilder.setStyle(style);
                
java2WsdlBuilder.setTargetNamespace("http://PointsCalculator.ve.gonzosystems.com/types";);
java2WsdlBuilder.setTargetNamespacePrefix("ns");
java2WsdlBuilder.setUse(use);
java2WsdlBuilder.setWsdlPrefix("ve");
java2WsdlBuilder.setServiceName(project.getServiceName());
                
java2WsdlBuilder.generateWSDL();

(I followed the namespace style in the userguide, although I don't understand
what it is trying to do)

Does anyone see what the problem is?
--
Jim

Attachment: FoodDescription.java
Description: Binary data

Attachment: IWWPointsCalculator.java
Description: Binary data

<wsdl:definitions 
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; 
    xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"; 
    xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"; 
    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"; 
    xmlns:ns1="http://PointsCalculator.ve.gonzosystems.com/types"; 
    xmlns:ns="http://PointsCalculator.ve.gonzosystems.com/types"; 
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; 
    targetNamespace="http://PointsCalculator.ve.gonzosystems.com/types";>
    <wsdl:types>
        <xs:schema 
            xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
            xmlns:stn_2="http://testexamples/xsd"; 
            xmlns:types="http://PointsCalculator.ve.gonzosystems.com/types"; 
            targetNamespace="http://PointsCalculator.ve.gonzosystems.com/types"; 
            elementFormDefault="unqualified" 
            attributeFormDefault="unqualified">
            <xs:import namespace="http://testexamples/xsd"; />
            <xs:element type="types:FoodDescription" name="FoodDescription" />
                <xs:complexType name="FoodDescription">
                    <xs:sequence>
                        <xs:element type="xs:int" name="calories" />
                        <xs:element type="xs:int" name="fatGrams" />
                        <xs:element type="xs:int" name="fiberGrams" />
                        <xs:element type="xs:int" name="points" />
	            </xs:sequence>
                </xs:complexType>
                <xs:element name="calculatePoints">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element type="stn_2:FoodDescription" name="param0" />
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element name="calculatePointsResponse">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element type="xs:int" name="return" />
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
        </xs:schema>
    </wsdl:types>
    <wsdl:message name="calculatePointsMessage">
        <wsdl:part element="ns1:calculatePoints" name="part1" />
    </wsdl:message>
    <wsdl:message name="calculatePointsResponseMessage">
        <wsdl:part element="ns1:calculatePointsResponse" name="part1" />
    </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 
        type="ns:PointsCalculatorPortType" 
        name="PointsCalculatorSOAP11Binding">
        <soap:binding 
            style="document" 
            transport="http://schemas.xmlsoap.org/soap/http"; />
        <wsdl:operation name="calculatePoints">
            <soap:operation 
                style="document" 
                soapAction="urn:calculatePoints" />
            <wsdl:input>
                <soap:body 
                    namespace="http://PointsCalculator.ve.gonzosystems.com/types"; 
                    use="literal" />
            </wsdl:input>
            <wsdl:output>
                <soap:body 
                    namespace="http://PointsCalculator.ve.gonzosystems.com/types"; 
                    use="literal" />
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:binding 
        type="ns:PointsCalculatorPortType" 
        name="PointsCalculatorSOAP12Binding">
        <soap12:binding 
            style="document" 
            transport="http://schemas.xmlsoap.org/soap/http"; />
        <wsdl:operation name="calculatePoints">
            <soap12:operation 
                style="document" soapAction="
                urn:calculatePoints" />
            <wsdl:input>
                <soap12:body 
                    namespace="http://PointsCalculator.ve.gonzosystems.com/types"; 
                    use="literal" />
            </wsdl:input>
            <wsdl:output>
                <soap12:body 
                    namespace="http://PointsCalculator.ve.gonzosystems.com/types"; 
                    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