JiBX code generation broken for header elements
-----------------------------------------------

                 Key: AXIS2-1855
                 URL: http://issues.apache.org/jira/browse/AXIS2-1855
             Project: Apache Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: codegen
    Affects Versions: 1.1
         Environment: n/a
            Reporter: Dennis Sosnoski
         Assigned To: Dennis Sosnoski
            Priority: Critical


The JiBX code generation included in Axis 1.1 thows an exception when the WSDL 
operation definition includes a header message:

[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 authHeaders with namespace 
http://services.bamnetworks.com/identity/types/1.0     [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 authHeaders with namespace 
http://services.bamnetworks.com/identity/types/1.0     [java] at 
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:863)
     [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 authHeaders with namespace 
http://services.bamnetworks.com/identity/types/1.0     [java] at 
org.apache.axis2.wsdl.databinding.TypeMappingAdapter.getTypeMappingName(TypeMappingAdapter.java:73)
     [java] at 
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getParameterElementList(AxisServiceBasedMultiLanguageEmitter.java:2214)
     [java] at 
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getInputElement(AxisServiceBasedMultiLanguageEmitter.java:1838)
     [java] at 
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.generateMethodElement(AxisServiceBasedMultiLanguageEmitter.java:1598)
     [java] at 
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.loadOperations(AxisServiceBasedMultiLanguageEmitter.java:1520)
     [java] at 
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.createDOMDocumentForSkeletonInterface(AxisServiceBasedMultiLanguageEmitter.java:1483)
     [java] at 
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeSkeletonInterface(AxisServiceBasedMultiLanguageEmitter.java:1412)
     [java] at 
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:824)
     [java] ... 3 more     [java] Java Result: 1

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



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

Reply via email to