The schema has two identical definitions of the FTAction type. Which is obviously an error. The WSDL also imports another schema with a namespace of "http://ft.tomas.org/xsd ", which also defines the FTAction type, and your elements reference this imported type rather than one from the "http://tomas.org/faultTolerance/Service/Types " namespace.
Did you create a new interface and class to generate your WSDL or did you use the class previously generated by Axis1?
I suggest you start completely from scratch. Or better yet -- start from the WSDL from your working web service.
Anne
On 5/5/06, José Antonio Sánchez <[EMAIL PROTECTED]> wrote:
I have a working web service deployed in Axis 1.3 so I tested if I can
port it to Axis2.
I downloaded the Axis2 binary distribution and ecipse plugin. First I
created the FaultToleranceService interface and the FTAction class
that were the starting point of my old service. They are attached.
Using the Eclipse generation wizard, I successfully created the
attached wsdl file but when I try to generate the java server and stub
code from it I get the following error:
Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.lang.RuntimeException: java.lang.RuntimeException: Schema for
namespace ' http://tomas.org/faultTolerance/Service/Types' already
contains type 'FTAction
I tried with the Eclipse code generation wizard and manually with the
wsdl2java class and the result is the same.
I understand that, as the wsdl code is generated from an Axis2 tool,
it must be understood by another Axis2 tool without this kind of
problems.
--
Regards.
José Antonio Sánchez
