You must import schemas into a schema. Therefore you should define it this way:
<wsdl:types> <xsd:schema targetNamespace="your-wsdl-targetNamespace"> <!-- Import the business datatypes schema file --> <xsd:import schemaLocation="business.xsd" namespace="http://www.innovations.de/2005/v1/XMLBusinessSchema"/> <xsd:import schemaLocation="xmldsig-core-schema.xsd" namespace="http://www.w3.org/2000/09/xmldsig#"/> </xsd:schema> </wsdl:types> Anne On 6/2/05, Mike Haller <[EMAIL PROTECTED]> wrote: > Sorry I forgot: > > i'm importing the schemas like this: > <wsdl:types> > <!-- Import the business datatypes schema file --> > <xsd:import schemaLocation="business.xsd" > namespace="http://www.innovations.de/2005/v1/XMLBusinessSchema"/> > <xsd:import schemaLocation="xmldsig-core-schema.xsd" > namespace="http://www.w3.org/2000/09/xmldsig#"/> > </wsdl:types> > > > > Mike Haller schrieb: > > Hey people, > > > > I've got: > > - manually creates business.xsd with datatypes > > - manually created business.wsdl > > - using XML Security > > - using Castor generated Java Classes > > > > Because the Axis Ant tasks suck, i tried to use wsdl2java directly. > > However, i get the following error. It states that "Reference" (from XML > > Security) has not been defined, although a few lines earlier, it tells > > me that i tried to import it twice... > > > > business.xsd imports xmlsecurity.xsd, business.wsdl imports > > xmlsecurity.xsd. both declare the namespaces and prefixes. > > > > Another problem is that Axis generated deploy.wsdd has some ">" chars in > > places where they are not supposed to be... > > > > Perhaps someone has any thoughts on my mistakes and can direct me into > > another direction. > > > > kind regards > > Mike > > > > Parsing XML file: file:src/business.wsdl > > {http://www.w3.org/2000/09/xmldsig#}CryptoBinary already exists > > {http://www.w3.org/2000/09/xmldsig#}Signature already exists > > ... > > {http://www.w3.org/2000/09/xmldsig#}Reference already exists > > {http://www.w3.org/2000/09/xmldsig#}ReferenceType already exists > > > > Exception in thread "main" java.io.IOException: Type > > {http://www.w3.org/2000/09/xmldsig#}Reference is referenced but not > > defined. > > at > > org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:663) > > > > at > > org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:543) > > at > > org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:516) > > at > > org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:493) > > at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:360) > > at java.lang.Thread.run(Thread.java:595) > >