You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Angelo Immediata <an...@libero.it> on 2005/07/15 09:38:29 UTC

Re:R: [wsdl2java] java.io.IOException: Element is referenced but no t defined.

Thaks for your tips... i have downloaded XMLSpy and i have fixed the problem.
Thanks.

---------- Initial Header -----------

>From      : "Corvino Fabio" Fabio.Corvino@atosorigin.com
To          : "axis-user@ws.apache.org" axis-user@ws.apache.org
Cc          : 
Date      : Thu, 14 Jul 2005 09:41:39 +0200
Subject : R: [wsdl2java] java.io.IOException: Element  is referenced but no t defined.







> Hi Angelo, 
> 
> test your wsdl with ALTOVA http://www.altova.com/
> <http://www.altova.com/> , I had the same problem but I have resolved it
> 
>   
> 
> 
> Fabio Corvino 
> Software Engineer 
> 
> Atos Origin 
> via Antiniana, 2A - 80078 Pozzuoli (NA) - 
> Italy 
> 
> Tel:  +39.081.6103511 
> E-mail: Fabio.Corvino@atosorigin.com 
> Web site: www.atosorigin.it 
> 
> 
> -----Messaggio originale----- 
> Da: Angelo Immediata [ mailto:angeloimm@libero.it
> <ma...@libero.it> ] 
> Inviato: giovedì 14 luglio 2005 0.01 
> A: Axis Axis 
> Oggetto: [wsdl2java] java.io.IOException: Element is referenced but not 
> defined. 
> 
> 
> Hi all; i have this wsdl file: 
> 
> <?xml version="1.0" encoding="UTF-8"?> 
> <wsdl:definitions 
>     name="webServ" 
>     targetNamespace=" http://eng.it <http://eng.it> " 
>     xmlns:impl=" http://eng.it <http://eng.it> " 
>     xmlns:intf=" http://eng.it <http://eng.it> " 
>     xmlns:request=" http://webServ/request <http://webServ/request> " 
>     xmlns:response=" http://webServ/reponse <http://webServ/reponse> " 
>     xmlns:wsdl=" http://schemas.xmlsoap.org/wsdl/
> <http://schemas.xmlsoap.org/wsdl/> " 
>     xmlns:wsdlsoap=" http://schemas.xmlsoap.org/wsdl/soap/
> <http://schemas.xmlsoap.org/wsdl/soap/> " 
>     xmlns:xsd=" http://www.w3.org/2001/XMLSchema
> <http://www.w3.org/2001/XMLSchema> "> 
>     <wsdl:types> 
>         <xsd:schema targetNamespace="request"> 
>             <xsd:include schemaLocation="
> file:///D:/project/Sample/schema/input.xsd
> <file:///D:/project/Sample/schema/input.xsd> "/> 
>         </xsd:schema> 
>         <xsd:schema targetNamespace="response"> 
>             <xsd:include schemaLocation="
> file:///D:/project/Sample/schema/output.xsd
> <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
> <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
> <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
> <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
> <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
> <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
> <http://www.libero.it>  
> 
> 



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