[ 
https://issues.apache.org/jira/browse/AXIS2-3036?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12636050#action_12636050
 ] 

Muhammed Soyer commented on AXIS2-3036:
---------------------------------------

Stefan,
  Could you generate the proxies for the attached zip((AXIS2-JIRA-3036.zip) 
with 1.4? 
I am getting the below errors for that ..
I need to simplify my WSDLs inable to send them here ...Thanks
-----------
D:\oa\AXIS2-JIRA-3036>d:\jdev\axis2-1.4\bin\wsdl2java --noBuildXML -or  -p 
com.opencourse  -d xmlbeans -uri jira3036.wsdl
Using AXIS2_HOME:   D:\jdev\axis2-1.4.1
Using JAVA_HOME:    d:\jdev\10g10134\jdk
Retrieving document at 'jira3036.wsdl'.
Retrieving schema at 'phone.xsd', relative to 
'file:/D:/oa/AXIS2-JIRA-3036/jira3036.wsdl'.
Retrieving schema at 'fax.xsd', relative to 
'file:/D:/oa/AXIS2-JIRA-3036/jira3036.wsdl'.
Retrieving schema at 'phone.xsd', relative to 
'file:/D:/oa/AXIS2-JIRA-3036/fax.xsd'.
[INFO] Resolving schema with publicId 
[http://rep.oio.dk/itst.dk/xml/schemas/2005/01/10/fax] and systemId [fax.xsd]
[INFO] Resolving schema with publicId 
[http://rep.oio.dk/itst.dk/xml/schemas/2005/01/10/phone] and systemId 
[phone.xsd]
[INFO] Resolving schema with publicId 
[http://rep.oio.dk/itst.dk/xml/schemas/2005/01/10/phone] and systemId 
[phone.xsd]
Exception in thread "main" 
org.apache.axis2.wsdl.codegen.CodeGenerationException: 
org.apache.axis2.wsdl.codegen.CodeGenerationException: 
org.apache.axis2.wsdl.databinding.Unmatched
TypeException: No type was mapped to the name TelephoneNumberIdentifier with 
namespace http://rep.oio.dk/itst.dk/xml/schemas/2005/01/10/
        at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:271)
        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
        at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: 
org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was mapped to 
the name TelephoneNumberIdentifier
 with namespace http://rep.oio.dk/itst.dk/xml/schemas/2005/01/10/
        at 
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitStub(AxisServiceBasedMultiLanguageEmitter.java:534)
        at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:260)
        ... 2 more
Caused by: org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No type 
was mapped to the name TelephoneNumberIdentifier with namespace 
http://rep.oio.dk/itst.dk/xml/schemas/2
005/01/10/
        at 
org.apache.axis2.wsdl.databinding.TypeMappingAdapter.getTypeMappingName(TypeMappingAdapter.java:82)
        at 
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getInputParamElement(AxisServiceBasedMultiLanguageEmitter.java:2913)
        at 
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getInputElement(AxisServiceBasedMultiLanguageEmitter.java:2697)
        at 
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.generateMethodElement(AxisServiceBasedMultiLanguageEmitter.java:2261)
        at 
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.loadOperations(AxisServiceBasedMultiLanguageEmitter.java:2151)
        at 
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.createDOMDocumentForCallbackHandler(AxisServiceBasedMultiLanguageEmitter.java:1151)
        at 
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeCallBackHandlers(AxisServiceBasedMultiLanguageEmitter.java:1117)
        at 
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitStub(AxisServiceBasedMultiLanguageEmitter.java:497)
        ... 3 more

> "Duplicate global type" when importing the same xsd from two other xsd's
> ------------------------------------------------------------------------
>
>                 Key: AXIS2-3036
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3036
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>            Reporter: Stefan Lischke
>            Assignee: Amila Chinthaka Suriarachchi
>             Fix For: nightly
>
>         Attachments: AXIS2-JIRA-3036.patch, AXIS2-JIRA-3036.wsdl, 
> AXIS2-JIRA-3036.zip, wsdl.zip
>
>
> When running wsdl2java on the attached wsdl & xsd files i got:
>  [java] Caused by: org.apache.xmlbeans.XmlException: 
> project://local/xmldsig-core-schema.xsd:6:1: error: sch-props-correct.2: 
> Duplicate global type: [EMAIL PROTECTED]://www.w3.org/2000/09/xmldsig# 
> (Original global type found in file: xmldsig-core-schema.xsd)
> xmldsig-core-schema.xsd is imported from xkms.xsd and from xenc-schema.xsd
> seems to be very similar to AXIS2-1885 and AXIS2-1781

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to