Hi,
I hava a problem while generating source codes from
a wsdl. The wsdl uses a sequence tag in types definition
clause. If I replace this sequence tag with choice tag,
I can generate source codes without troubles.
Also this problem don't occur on axis1.2rc3, that says
I can generate from the wsdl with sequence tags.

I'll attached the wsdl bellow.
Any suggestions will be appreciated.


<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://www.xxx.co.jp";
xmlns="http://schemas.xmlsoap.org/wsdl/";
xmlns:apachesoap="http://xml.apache.org/xml-soap";
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xxx="http://www.xxx.co.jp";>
        <wsdl:types>
                <schema xmlns="http://www.w3.org/2001/XMLSchema";
xmlns:xxx="http://www.xxx.co.jp";
targetNamespace="http://www.xxx.co.jp";>
                        <!-- Start Object (Manifest, SignatureProperty) -->
                        <element name="Message" type="xxx:MessageType"/>
                        <complexType name="MessageType">
                                <sequence>
                                        <element ref="xxx:Parameter" 
maxOccurs="unbounded"/>
                                </sequence>
                        </complexType>
                        <element name="Parameter" type="xxx:ParameterType"/>
                        <complexType name="ParameterType" mixed="true">
                                <choice maxOccurs="unbounded">
                                        <any namespace="##other" 
processContents="lax"/>
                                </choice>
                        </complexType>
                </schema>
        </wsdl:types>
        <!-- message definition -->
        <wsdl:message name="AplMessage">
                <wsdl:part element="xxx:Message" name="request"/>
        </wsdl:message>
        <!-- Service definition -->
        <wsdl:portType name="AplService">
                <wsdl:operation name="execute">
                        <wsdl:input message="xxx:AplMessage" name="request"/>
                        <wsdl:output message="xxx:AplMessage" name="response"/>
                </wsdl:operation>
        </wsdl:portType>
        <!-- Binding definition -->
        <wsdl:binding name="AplSoapBinding"
type="xxx:AplService">
                <wsdlsoap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
                <wsdl:operation name="execute">
                        <wsdlsoap:operation soapAction=""/>
                        <wsdl:input name="request">
                                <wsdlsoap:body use="literal"/>
                        </wsdl:input>
                        <wsdl:output name="response">
                                <wsdlsoap:body use="literal"/>
                        </wsdl:output>
                </wsdl:operation>
        </wsdl:binding>
        <!-- My Service -->
        <wsdl:service name="MyService">
                <wsdl:port binding="xxx:AplSoapBinding"
name="MyService">
                        <wsdlsoap:address
location="http://127.0.0.1:8080/xxx/services/xxx"/>
                </wsdl:port>
        </wsdl:service>
</wsdl:definitions>


__________________________________
Save the earth
http://pr.mail.yahoo.co.jp/ondanka/

Reply via email to