axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Angelo Immediata" <angelo...@libero.it>
Subject [wsdl2java] java.io.IOException: Element is referenced but not defined.
Date Wed, 13 Jul 2005 22:01:29 GMT
Hi all; i have this wsdl file:

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions
    name="webServ"
    targetNamespace="http://eng.it"
    xmlns:impl="http://eng.it"
    xmlns:intf="http://eng.it"
    xmlns:request="http://webServ/request"
    xmlns:response="http://webServ/reponse"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <wsdl:types>
        <xsd:schema targetNamespace="request">
            <xsd:include schemaLocation="file:///D:/project/Sample/schema/input.xsd"/>
        </xsd:schema>
        <xsd:schema targetNamespace="response">
            <xsd:include schemaLocation="file:///D:/project/Sample/schema/output.xsd"/>
        </xsd:schema>
    </wsdl:types>
    <wsdl:message name="request">
        <wsdl:part element="request:request" name="request"/>
    </wsdl:message>
    <wsdl:message name="response">
        <wsdl:part element="response:response" name="response"/>
    </wsdl:message>
    <wsdl:portType name="Sample">
        <wsdl:operation name="handleDocument">
            <wsdl:input message="impl:request" name="request"/>
            <wsdl:output message="impl:response" name="response"/>
        </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="SampleSoapBinding" type="impl:Sample">
        <wsdlsoap:binding
            style="document"
            transport="http://schemas.xmlsoap.org/soap/http"/>
        <wsdl:operation name="handleDocument">
            <wsdlsoap:operation soapAction=""/>
            <wsdl:input name="request">
                <wsdlsoap:body parts="" use="literal"/>
            </wsdl:input>
            <wsdl:output name="response">
                <wsdlsoap:body parts="" use="literal"/>
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="SampleService">
        <wsdl:port binding="impl:SampleSoapBinding" name="Sample">
            <wsdlsoap:address location="http://localhost:8080/sample/services/Sample"/>
        </wsdl:port>
    </wsdl:service>
</wsdl:definitions>

I want to create java classes form this fiel by using wsdl2Java; when when i try this i have
several error; one of them is:

[wsdl2java] java.io.IOException: Element {http://webServ/reponse}response is referenced but
not defined.

Can anybody help me?
The xsd files are:
input.xsd:

<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:complexType name="sum">
        <xsd:sequence>
            <xsd:element name="primoOperando" type="xsd:long"/>
            <xsd:element name="secondoOperando" type="xsd:long"/>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="operations">
        <xsd:sequence>
            <xsd:element name="sum" type="sum"/>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="root">
        <xsd:complexType>
            <xsd:sequence>
                <xsd:element name="operations" type="operations" maxOccurs="unbounded"/>
            </xsd:sequence>
        </xsd:complexType>
    </xsd:element>
</xsd:schema>

output.xsd:

<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:complexType name="operationResult">
        <xsd:sequence>
            <xsd:element name="result" maxOccurs="1" type="xsd:long"/>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="results">
        <xsd:sequence>
            <xsd:element name="operationResult" type="operationResult" maxOccurs="1"/>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="root" type="results"/>
</xsd:schema>

I'm using Axis 1.2.1 version; IDE JBuilder 2005; O.S: Windows XP home ed. 

Thanls to all.



____________________________________________________________
6X velocizzare la tua navigazione a 56k? 6X Web Accelerator di Libero!
Scaricalo su INTERNET GRATIS 6X http://www.libero.it



Mime
View raw message