Thanks for testing. I use axis2-1.1.1 . So this must be a bug and already fixed. I will try to switch to the RC.
Thanks Amila Suriarachchi wrote: > What is the axis2 version you use? I tried with the axis2-1.2-RC2 and it > looks good. > > On 4/25/07, Stefan Neumann <[EMAIL PROTECTED]> wrote: >> >> Hi all, >> >> when I run wsdl2java, it throws an UnmatchedTypeException so no java >> sources are generated. >> >> Can somebody help me what the problem is? You can find below the command >> call, the exception, the wsdl and the xsd definition. >> >> Thanks in advance >> >> Stefan >> >> >> This is the output from ant with the following exception: >> >> [java] 'org.apache.axis2.wsdl.WSDL2Java' >> [java] '-d' >> [java] 'xmlbeans' >> [java] '-uri' >> [java] >> '/home/stefan/projects/ark_ibe/etc/webservice/UserService.wsdl' >> [java] '-o' >> [java] '/home/stefan/projects/ark_ibe/gen-src/userWebservice' >> [java] '-p' >> [java] >> 'com.freiheit.ark.user.integration.webservice.server.generated >> ' >> [java] '-ns2p' >> [java] >> ' >> http://freiheit.com/userTypes=com.freiheit.ark.user.integration.webservice.server.generated.model,http://freiheit.com/user=com.freiheit.ark.user.integration.webservice.server.generated.model,http://freiheit.com/user/wsdl=com.freiheit.ark.user.integration.webservice.server.generated >> >> ' >> [java] '-ssi' >> [java] '-sd' >> [java] '-ss' >> [java] Retrieving schema at 'UserTypes.xsd', relative to >> 'file:/home/stefan/projects/ark_ibe/etc/webservice/'. >> [java] log4j:WARN No appenders could be found for logger >> (org.apache.axis2.addressing.wsdl.WSDL11ActionHelper). >> [java] log4j:WARN Please initialize the log4j system properly. >> [java] Exception in thread "main" >> org.apache.axis2.wsdl.codegen.CodeGenerationException: >> org.apache.axis2.wsdl.codegen.CodeGenerationException: >> org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was >> mapped to the name createUserRequest with namespace >> http://freiheit.com/user/types/ >> [java] at >> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate( >> CodeGenerationEngine.java:224) >> [java] at >> org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) >> [java] at >> org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21) >> [java] Caused by: >> org.apache.axis2.wsdl.codegen.CodeGenerationException: >> org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was >> mapped to the name createUserRequest with namespace >> http://freiheit.com/user/types/ >> [java] at >> >> org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton >> >> (AxisServiceBasedMultiLanguageEmitter.java:961) >> [java] at >> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate( >> CodeGenerationEngine.java:206) >> [java] ... 2 more >> [java] Caused by: >> org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was >> mapped to the name createUserRequest with namespace >> http://freiheit.com/user/types/ >> [java] at >> org.apache.axis2.wsdl.databinding.TypeMappingAdapter.getTypeMappingName( >> TypeMappingAdapter.java:73) >> [java] at >> >> org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getInputParamElement >> >> (AxisServiceBasedMultiLanguageEmitter.java:2099) >> [java] at >> >> org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getInputElement >> >> (AxisServiceBasedMultiLanguageEmitter.java:1935) >> [java] at >> >> org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.generateMethodElement >> >> (AxisServiceBasedMultiLanguageEmitter.java:1701) >> [java] at >> >> org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.loadOperations >> >> (AxisServiceBasedMultiLanguageEmitter.java:1623) >> [java] at >> >> org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.createDOMDocumentForSkeletonInterface >> >> (AxisServiceBasedMultiLanguageEmitter.java:1586) >> [java] at >> >> org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeSkeletonInterface >> >> (AxisServiceBasedMultiLanguageEmitter.java:1515) >> [java] at >> >> org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton >> >> (AxisServiceBasedMultiLanguageEmitter.java:922) >> [java] ... 3 more >> [java] Java Result: 1 >> >> >> >> WSDL: >> >> >> >> <definitions xmlns:ut="http://freiheit.com/user/types/" >> targetNamespace="http://freiheit.com/user/service/" >> xmlns:tns="http://freiheit.com/user/service/" >> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" >> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" >> xmlns="http://schemas.xmlsoap.org/wsdl/" >> xmlns:xsd="http://www.w3.org/2001/XMLSchema"> >> <types> >> <xsd:schema> >> <xsd:import schemaLocation="UserTypes.xsd" >> >> namespace="http://freiheit.com/user/types/" >> /> >> </xsd:schema> >> </types> >> >> <message name="CreateUserRequest"> >> <part name="CreateUserRequest" >> element="ut:createUserRequest" /> >> </message> >> >> <message name="CreateUserResponse"> >> <part name="CreateUserResponse" >> element="ut:createUserResponse" /> >> </message> >> >> <portType name="UserServiceInterface"> >> <operation name="CreateUser"> >> <input message="tns:CreateUserRequest" /> >> <output message="tns:CreateUserResponse" /> >> </operation> >> </portType> >> >> <binding name="UserBinding" type="tns:UserServiceInterface"> >> <soap:binding style="document" >> transport="http://schemas.xmlsoap.org/soap/http" >> /> >> <operation name="CreateUser"> >> <soap:operation style="document" >> soapAction="CreateUser" /> >> <input> >> <soap:body use="literal" >> parts="CreateUserRequest" /> >> </input> >> <output> >> <soap:body use="literal" >> parts="CreateUserResponse" /> >> </output> >> </operation> >> </binding> >> >> <service name="UserService"> >> <port name="UserSoapPort" binding="tns:UserBinding"> >> <soap:address >> location=" >> http://localhost:8080/axis2/services/UserService" /> >> </port> >> </service> >> >> </definitions> >> >> >> >> XSD: >> >> >> >> <?xml version="1.0" encoding="UTF-8"?> >> <schema xmlns="http://www.w3.org/2001/XMLSchema" >> targetNamespace="http://freiheit.com/user/types/" >> xmlns:tns="http://freiheit.com/user/types/"> >> <!-- Methods signatures --> >> <element name="createUserRequest"> >> <complexType> >> <sequence> >> <element name="req" type="string" /> >> </sequence> >> </complexType> >> </element> >> >> <element name="createUserResponse"> >> <complexType> >> <sequence> >> <element name="result" type="string" /> >> </sequence> >> </complexType> >> </element> >> </schema> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > -- Stefan Neumann Dipl.-Ing. (FH) freiheit.com technologies gmbh Straßenbahnring 22 / 20251 Hamburg, Germany fon +49 (0)40 / 890584-0 fax +49 (0)40 / 890584-20 HRB Hamburg 70814 1CB2 BA3C 168F 0C2B 6005 FC5E 3EBA BCE2 1BF0 21D3 Geschäftsführer: Claudia Dietze, Stefan Richter, Jörg Kirchhof --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
