I try to import a schema in the WSDL.

With the types in the WSDL (WSDL1), Axis-WSDL2Java
works good.
With an import (WSDL2), i have an error
"java.io.IOException: Type {urn:example}Request is
referenced but not defined".
I use the same namespace for the schema and WSDL.
Why doesn't it work?

WSDL1:
...
<wsdl:definitions targetNamespace="urn:example"
xmlns="http://schemas.xmlsoap.org/wsdl/";
xmlns:example="urn:example"
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  elementFormDefault="qualified">
...
<wsdl:message name="messageRequest">
<part name="R1" type="example:Request"/>
</wsdl:message>



WSDL2:
...
<wsdl:definitions targetNamespace="urn:example"
xmlns="http://schemas.xmlsoap.org/wsdl/";
xmlns:example="urn:example"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
<import namespace="urn:example"
location="schema.xsd"/>

and schema.xsd:
<xsd:schema targetNamespace="urn:example"
xmlns:example="urn:example"
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
elementFormDefault="qualified">
<xsd:complexType name="Request">
...


Thanks.




        

        
                
Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout ! 
Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/

Dialoguez en direct avec vos amis grâce à Yahoo! Messenger !Téléchargez Yahoo! 
Messenger sur http://fr.messenger.yahoo.com

Reply via email to