axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shelli D. Orton" <shelli.or...@wmode.com>
Subject Element is referenced but not defined
Date Mon, 09 Jan 2006 21:23:45 GMT
Hi,

I'm trying to write wsdl in a document/literal wrapped style (yes, this is
related to my earlier post for those who viewed it).  I have a pared down
version of the wsdl with only the one request that was giving me grief in
rpc/encoded style.  When I run wsdl2java, I get the following error:

java.io.IOException: Element
{http://clearmode.com:80/ws/ConsumerProvision}addResponse is referenced but
not defined.
        at
org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.j
ava:670)
        at
org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:545)
        at
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:518)
        at
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:495)
        at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
        at java.lang.Thread.run(Unknown Source)

I have defined an element "addResponse" in my types section, so I'm not sure
what is causing the error.  The wsdl was based on another wsdl that
wsdl2java successfully creates classes for.  Could someone tell me what I've
done wrong?

Thanks,
Shelli

Here's the wsdl:

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions
    targetNamespace="http://clearmode.com:80/ws/ConsumerProvision"
    xmlns:impl="http://clearmode.com:80/ws/ConsumerProvision"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:apachesoap="http://xml.apache.org/xml-soap"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    >

    <wsdl:types>

        <xsd:schema
targetNamespace="http://clearmode.com:80/ws/ConsumerProvision"
                    xmlns:xsd="http://www.w3.org/2001/XMLSchema">

            <xsd:simpleType name="SOC">
                <xsd:restriction base="xsd:string"/>
            </xsd:simpleType>

            <xsd:complexType name="SOCArray">
                <xsd:sequence>
                    <xsd:element name="SOC" type="impl:SOC" minOccurs="0"
maxOccurs="unbounded"/>
                </xsd:sequence>
            </xsd:complexType>

            <element name="add">
                <complexType>
                    <sequence>
                        <element name="username" type="xsd:string"/>
                        <element name="password" type="xsd:string"/>
                        <element name="gender" type="xsd:string"/>
                        <element name="state" type="xsd:string"/>
                        <element name="timeZone" type="xsd:string"/>
                        <element name="SOCs" type="impl:SOCArray"/>
                    </sequence>
                </complexType>
            </element>

            <element name="addResponse" type="xsd:string"/>

        </xsd:schema>

    </wsdl:types>

    <wsdl:message name="addRequest">
        <wsdl:part name="addPart" element="impl:add"/>
    </wsdl:message>

    <wsdl:message name="addResponse">
        <wsdl:part name="addResponsePart" element="impl:addResponse"/>
    </wsdl:message>

    <wsdl:portType name="ConsumerProvision">

        <wsdl:operation name="add" parameterOrder="add">
            <wsdl:input name="addRequest" message="impl:addRequest"/>
            <wsdl:output name="addResponse" message="impl:addResponse"/>
        </wsdl:operation>

    </wsdl:portType>

    <wsdl:binding name="ConsumerProvisionSoapBinding"
type="impl:ConsumerProvision">

        <wsdlsoap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>

        <wsdl:operation name="add">
            <wsdlsoap:operation soapAction=""/>
            <wsdl:input name="addRequest">
                <wsdlsoap:body use="literal"/>
            </wsdl:input>
            <wsdl:output name="addResponse">
                <wsdlsoap:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>

    </wsdl:binding>

    <wsdl:service name="ConsumerProvision">
        <wsdl:port name="ConsumerProvision"
binding="impl:ConsumerProvisionSoapBinding">
            <wsdlsoap:address
location="http://clearmode.com/ProvisioningEngine/services/ConsumerProvision
"/>
        </wsdl:port>
    </wsdl:service>

</wsdl:definitions>

Mime
View raw message