axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brodie Thiesfield <brofie...@jellycan.com>
Subject "Element is referenced but not defined", except that it is defined...
Date Wed, 18 Apr 2007 10:22:46 GMT
Hi,

I'm getting an IOException from WSDL2Java from the checkForUndefined
method. It is complaining that it is undefined, however the definition
is definitely there. The WSDL is successfully parsed by the VC2003/5
wsdl.exe tool (for what it's worth).

A minimalized testcase of the WSDL is included, along with the error
that this testcase produces. I'm using Axis 1.4. The original WSDL
(from which this testcase was extracted) was generated by gsoap2 2.7.9d.

Would someone please show me where the WSDL is incorrect?

Regards,
Brodie

=== ERROR ===

>java org.apache.axis.wsdl.WSDL2Java problem.wsdl
2007/04/12 17:22:26 org.apache.axis.utils.JavaUtils
isAttachmentSupported (warning removed...)
java.io.IOException: (japanese removed...) / [en]-(Element
{http://example.com/foo/schema}FooException is re
ferenced but not defined.)
at
org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(Symbol
Table.java:670)
at
org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:545
)
at
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
a:518)
at
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
a:495)
at
org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
at java.lang.Thread.run(Thread.java:595)

=== WSDL ===

<?xml version="1.0" encoding="UTF-8"?>
<definitions name="foo"
targetNamespace="http://example.com/foo"
xmlns:tns="http://example.com/foo"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:cl="http://example.com/foo/schema"
xmlns:SOAP="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:MIME="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:DIME="http://schemas.xmlsoap.org/ws/2002/04/dime/wsdl/"
xmlns:WSDL="http://schemas.xmlsoap.org/wsdl/"
xmlns="http://schemas.xmlsoap.org/wsdl/">

<types>

<schema targetNamespace="http://example.com/foo/schema"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:cl="http://example.com/foo/schema"
xmlns="http://www.w3.org/2001/XMLSchema"
elementFormDefault="unqualified"
attributeFormDefault="unqualified">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<!-- fault element type -->
<complexType name="FooException">
<sequence>
<element name="err" type="xsd:string" minOccurs="1" maxOccurs="1"
nillable="false"/>
<element name="msg" type="xsd:string" minOccurs="1" maxOccurs="1"
nillable="false"/>
</sequence>
</complexType>
<!-- operation request element -->
<element name="DoSomething">
<complexType>
<sequence>
<element name="in" type="xsd:string" minOccurs="0" maxOccurs="1"
nillable="true"/>
</sequence>
</complexType>
</element>
<!-- operation response element -->
<element name="DoSomethingResponse">
<complexType>
<sequence>
<element name="out" type="xsd:long" minOccurs="1" maxOccurs="1"/>
</sequence>
</complexType>
</element>
</schema>

</types>

<message name="DoSomething">
<part name="parameters" element="cl:DoSomething"/>
</message>

<message name="DoSomethingResponse">
<part name="parameters" element="cl:DoSomethingResponse"/>
</message>

<message name="FooExceptionFault">
<part name="fault" element="cl:FooException"/>
</message>

<portType name="fooPortType">
<operation name="DoSomething">
<input message="tns:DoSomething"/>
<output message="tns:DoSomethingResponse"/>
<fault name="FooException" message="tns:FooExceptionFault"/>
</operation>
</portType>

<binding name="foo" type="tns:fooPortType">
<SOAP:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="DoSomething">
<SOAP:operation soapAction=""/>
<input>
<SOAP:body parts="parameters" use="literal"/>
</input>
<output>
<SOAP:body parts="parameters" use="literal"/>
</output>
<fault name="FooException">
<SOAP:fault name="FooException" use="literal"/>
</fault>
</operation>
</binding>

<service name="foo">
<port name="foo" binding="tns:foo">
<SOAP:address location="http://localhost:12000/foo/foo.cgi"/>
</port>
</service>

</definitions>


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message