element {http://www.csapi.org/osa/schema }TpString is not found
I strongly encourage you to ask Axis/Axis2 questions on the axis-user discussion list (see http://ws.apache.org/axis2/mail-lists.html ). If you believe your schema is valid and that there's a bug in the java2wsdl tool, please file a bug report using JIRA (http://issues.apache.org/jira/browse/AXIS2 ). Please include your WSDL and schema in the bug report.
Anne
Hi,
I have a wsdl file that contains a xsd schema. I am trying to use
Axis2 to generate the required stubs for the client.
I am receiving the following error:
Using AXIS2_HOME: C:\openwave\Axis\axis2-1.1
Using JAVA_HOME: C:\Program Files\Java\jdk1.5.0_09
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(CodeGener
ationEngine.java:224)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
Caused by: java.lang.RuntimeException:
java.lang.reflect.InvocationTargetExcepti
on
at
org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp
leDBExtension.java:52)
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
ationEngine.java:177)
... 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(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp
leDBExtension.java:49)
... 3 more
Caused by: org.apache.axis2.schema.SchemaCompilationException: The
referenced el
ement '{http://www.csapi.org/osa/schema}TpString' was not found!
at
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
java:625)
at
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.
java:489)
at
org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:14
88)
at
org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler
.java:1450)
at
org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompi
ler.java:950)
at
org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaT
ype(SchemaCompiler.java:883)
at
org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.j
ava: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:33
6)
at
org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:24
8)
at
org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java
:72)
... 8 more
C:\projects\alltel\docs\wsdl\testWSDL>
I know the WSDL is fine.
If this is not the most appropriate place to post can somebody provide
a location where I may.
Thanks in advance,
Kevin