[ 
http://issues.apache.org/jira/browse/AXIS2-1466?page=comments#action_12444232 ] 
            
Amila Chinthaka Suriarachchi commented on AXIS2-1466:
-----------------------------------------------------

By default ADB does not have in built support for elements in the 
http://schemas.xmlsoap.org/soap/encoding/ namespace. So as a workaround you can 
add an import to wsdl as follows.

<definitions name="InteropTest" targetNamespace="http://soapinterop.org/"; 
xmlns="http://schemas.xmlsoap.org/wsdl/";
             xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
             xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:tns="http://soapinterop.org/";
             xmlns:s="http://soapinterop.org/xsd"; 
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>
    <import namespace="http://schemas.xmlsoap.org/soap/encoding/";
                 location="http://schemas.xmlsoap.org/soap/encoding/"/>
    <types>
        <schema xmlns="http://www.w3.org/2001/XMLSchema"; 
targetNamespace="http://soapinterop.org/xsd";>
            <import namespace="http://schemas.xmlsoap.org/soap/encoding/"; />

So codegeneration engine will import and process schema before compiling the 
xsd. And also you can use xmlbeans which has the in built support for above 
schema.


> Exception throwed when generate code for RpcHttpHeaderTest1.wsdl
> ----------------------------------------------------------------
>
>                 Key: AXIS2-1466
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1466
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>            Reporter: Milinda Lakmal Pathirage
>         Attachments: RpcHttpHeaderTest1.wsdl
>
>
> Exception in thread "main" 
> org.apache.axis2.wsdl.codegen.CodeGenerationException: 
> java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
>       at 
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:224)
>       at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
>       at org.apache.axis2.wsdl.WSDL2C.main(WSDL2C.java:27)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>       at java.lang.reflect.Method.invoke(Method.java:585)
>       at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
> Caused by: java.lang.RuntimeException: 
> java.lang.reflect.InvocationTargetException
>       at 
> org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:52)
>       at 
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:177)
>       ... 7 more
> Caused by: java.lang.reflect.InvocationTargetException
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>       at java.lang.reflect.Method.invoke(Method.java:585)
>       at 
> org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:49)
>       ... 8 more
> Caused by: org.apache.axis2.schema.SchemaCompilationException: 
> {http://schemas.xmlsoap.org/soap/encoding/}Array is not supported.
>       at 
> org.apache.axis2.schema.SchemaCompiler.findClassName(SchemaCompiler.java:820)
>       at 
> org.apache.axis2.schema.SchemaCompiler.processComplexContent(SchemaCompiler.java:1076)
>       at 
> org.apache.axis2.schema.SchemaCompiler.processContentModel(SchemaCompiler.java:989)
>       at 
> org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:973)
>       at 
> org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:909)
>       at 
> org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:864)
>       at 
> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:681)
>       at 
> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:489)
>       at 
> org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:1488)
>       at 
> org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:1450)
>       at 
> org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:950)
>       at 
> org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaType(SchemaCompiler.java:883)
>       at 
> org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:866)
>       at 
> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:527)
>       at 
> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:499)
>       at 
> org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:336)
>       at 
> org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:248)
>       at 
> org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java:72)
>       ... 13 more

-- 
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