Hi Neil,
 
we had the same problem, there is a workaround. Copy all referenced schema into the 
same folder where the wsdl file is located. The remove all paths from the schemas 
(import / includes )and from the wsdl
<import namespace="http://importer/test <http://importer/test> "
        schemaLocation="test.xsd <file:///home/nblue/test.xsd> "/>

 

This should work.

 

Regards

Oliver

____________________________________________________________________ 

Oliver Adler, Senior Consultant
SYRACOM Systems AG - "The IT-Architects" 

Otto-von-Guericke-Ring 15 
D-65205 Wiesbaden 

Tel +49 6122-9176-0 
Fax +49 6122-9176-11 
Mobil +49 175-1853998 

E-Mail: [EMAIL PROTECTED] 
<www.SYRACOM.de> 

Ein Unternehmen der SYRACOM Gruppe - "The Business- & IT-Architects" 

____________________________________________________________________


        -----Urspr�ngliche Nachricht----- 
        Von: Neil Blue [mailto:[EMAIL PROTECTED] 
        Gesendet: Mi 05.03.2003 18.39 Uhr 
        An: '[EMAIL PROTECTED]' 
        Cc: 
        Betreff: Importing a schema into a WSDL
        
        

        Hello,
        
        I have been building up a WSDL file, and now I need to import schemas from
        other locations on our web site.
        
        But I keep getting an error about the type not being defined. Here is a
        sample of my problem:
        
        java.io.IOException: Type {http://importer/test}testType is referenced but
        not defined
        
        I have tried to use an import statment like:
        
         <wsdl:types>
          <schema xmlns="http://www.w3.org/2001/XMLSchema";>
                <import namespace="http://importer/test";
                schemaLocation="file:///home/nblue/test.xsd"/>
          </schema>
         </wsdl:types>
        
        then I refer to it with:
        
         <wsdl:message name="methodRequest">
              <wsdl:part name="request" type="imp:testType"/>
        </wsdl:message>
        
        where the schema is simple:
        
        <?xml version="1.0" encoding="UTF-8"?>
        <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema";
                xmlns="http://importer/test";
                targetNamespace="http://importer/test";>       
        <xs:complexType name="testType">
                <xs:sequence>
                        <xs:element name="test" type="xsd:string"/>
                </xs:sequence>
        </xs:complexType>
        </xs:schema>
        
        the imp namespace is defined in the definitions as:
        
        xmlns:imp="http://importer/test";
        
        
        Could anyone explain how to do this please :)
        
        Neil
        

<<winmail.dat>>

Reply via email to