I hope you can help me.

 

When I run WSDL2JAVA on one of the WSDLs I'm trying to use I get the
following error as from the screen dump below. I may be mistaken in my
belief that this error is caused due to it being RPC Encoded, but reading
several posts I wasn't sure how much you support RPC Encoding in AXIS2.

 

Any advice greatly received as to why I get this error.

 

Thanks in advance, and appreciate the time, Steve Brough.

 

Directory of C:\axis2-1.4\bin

 

19/05/2008  17:23    <DIR>          .

19/05/2008  17:23    <DIR>          ..

22/03/2008  10:22             2,766 axis2.bat

22/03/2008  10:22             1,853 axis2.sh

29/03/2008  14:14             3,161 axis2server.bat

22/03/2008  10:22             1,443 axis2server.sh

22/03/2008  10:22             2,890 java2wsdl.bat

22/03/2008  10:22               868 java2wsdl.sh

22/03/2008  10:22             3,492 setenv.sh

19/05/2008  17:23             2,405 test.bat

22/03/2008  10:22             2,822 wsdl2java.bat

22/03/2008  10:22               866 wsdl2java.sh

              10 File(s)         22,566 bytes

               2 Dir(s)  10,362,413,056 bytes free

 

C:\axis2-1.4\bin>wsdl2java -o c:\temp -uri
http://api.productserve.com/v1/ProductServeService?wsdl

Using AXIS2_HOME:   C:\axis2-1.4

Using JAVA_HOME:    C:\Program Files\Java\jdk1.5.0_13

Retrieving document at
'http://api.productserve.com/v1/ProductServeService?wsdl'.

Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.lang.RuntimeException: java.lang.reflect.Invocat

ionTargetException

        at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEn
gine.java:271)

        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)

        at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)

Caused by: java.lang.RuntimeException:
java.lang.reflect.InvocationTargetException

        at
org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExt
ension.java:53)

        at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEn
gine.java:224)

        ... 2 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(SimpleDBExt
ension.java:50)

        ... 3 more

Caused by: org.apache.axis2.schema.SchemaCompilationException: can not find
type {http://schemas.xmlsoap.org/soap/encoding/}Array from

the parent schema http://api.productserve.com/

        at
org.apache.axis2.schema.SchemaCompiler.copyMetaInfoHierarchy(SchemaCompiler.
java:1296)

        at
org.apache.axis2.schema.SchemaCompiler.processComplexContent(SchemaCompiler.
java:1258)

        at
org.apache.axis2.schema.SchemaCompiler.processContentModel(SchemaCompiler.ja
va:1153)

        at
org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.jav
a:1097)

        at
org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaC
ompiler.java:1017)

        at
org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:931
)

        at
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:59
2)

        at
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:55
2)

        at
org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:1991)

        at
org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:1
874)

        at
org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.jav
a:1081)

        at
org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaType(Sch
emaCompiler.java:980)

        at
org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:934
)

        at
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:59
2)

        at
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:56
3)

        at
org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:370)

        at
org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:280)

        at
org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java:103)

        ... 8 more

C:\axis2-1.4\bin>

 

 

Reply via email to