Hi.

I have a problem concerning xsd:simpleRestrictionModel.

WSDL2Java CVS (1.1 and 1.2alpha seem to work) raises this exception:

java.io.IOException: Type {http://www.w3.org/2001/XMLSchema}simpleRestrictionModel is referenced but not defined.
at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:631)
at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:511)
at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:485)
at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:462)
at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:335)
at java.lang.Thread.run(Thread.java:536)


This is a small testcases that creates the problem. It could be reduced in size, probably, but as I am new to this topic I didn't want to produce wrong code and generated most of it automatically.

<?xml version="1.0" encoding="UTF-8"?>
<definitions
name="Untitled"
targetNamespace="http://www.your-company.com/Untitled.wsdl";
xmlns="http://schemas.xmlsoap.org/wsdl/";
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:tns="http://www.your-company.com/Untitled.wsdl";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsd1="http://www.your-company.com/Untitled.xsd1";>
<types>
<xsd:schema
targetNamespace="http://www.your-company.com/Untitled.xsd1";
xmlns="http://schemas.xmlsoap.org/wsdl/";
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsd1="http://www.your-company.com/Untitled.xsd1";>
<xsd:complexType name="foobartype">
<xsd:sequence>
<xsd:group ref="xsd:simpleRestrictionModel" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
</types>
<message name="NewMessageResponse"> </message>
<message name="NewMessageRequest">
<part name="arg1" type="xsd1:foobartype"/>
</message>
<portType name="UntitledPortType">
<operation name="NewOperation">
<input message="tns:NewMessageRequest"/>
<output message="tns:NewMessageResponse"/>
</operation>
</portType>
<binding name="UntitledBinding" type="tns:UntitledPortType">
<soap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="NewOperation">
<soap:operation soapAction="capeconnect:Untitled:UntitledPortType#NewOperation"/>
<input> <soap:body use="literal"/> </input>
<output> <soap:body use="literal"/> </output>
</operation>
</binding>
<service name="Untitled">
<port binding="tns:UntitledBinding" name="UntitledPort">
<soap:address location="http://localhost:8000/ccx/Untitled"/>
</port>
</service>
</definitions>


I call WSDL2Java with these options:
java org.apache.axis.wsdl.WSDL2Java --server-side --skeletonDeploy true test.wsdl


Any idea of how to fix it? I tried to import the schema with xsd:import - without success... - Shall I file a bug report?

Maybe you can give it a try. I am not sure whether my builds are ok. "ant functional-tests" passes many testcases but stops with this message after 2 minutes of testing.
[java] [foreach] java.io.FileNotFoundException: /home/domi/uni/bachelor/downloads/ws-axis/java/test/wsdl/selectivefilegen/selectivefilegen.wsdl (No such file or directory)



thanks in advance,


Dominic

Reply via email to