Re: [Axis2 1.0]Bug? when generating java from WSDL

2006-05-05 Thread José Antonio Sánchez
I checked it with the wsdl generated by Axis 1.3. It's attached and it
seems to work. So the problem is not with the wsdl2java but with the
java2wsdl process.
On 5/5/06, José Antonio Sánchez <[EMAIL PROTECTED]> wrote:
> If I start with the wsdl from the working service, I get the same error.
> The two classes (FTAction and FaultToleranceService interface) are
> written by me, although they were writter for the Axis1 service, they
> are not generated at all and so, they should generate a good WSDL file
> with Axis2.
> On 5/5/06, Anne Thomas Manes <[EMAIL PROTECTED]> wrote:
> > Jose,
> >
> > 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
> > >
> > >
> > >
> >
> >
>
>
> --
> Saludos.
> José Antonio Sánchez
>


--
Saludos.
José Antonio Sánchez

http://tomas.org/faultTolerance/Service"; xmlns:apachesoap="http://xml.apache.org/xml-soap"; xmlns:impl="http://tomas.org/faultTolerance/Service"; xmlns:intf="http://tomas.org/faultTolerance/Service"; xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"; xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema";>

 
  http://tomas.org/faultTolerance/Service"; xmlns="http://www.w3.org/2001/XMLSchema";>
   http://schemas.xmlsoap.org/soap/encoding/"/>
   

 
 

   
   

 
  
 

   
  
 

   

  

   

   

  

   

   

  

 

 

  

   

   

  http://schemas.xmlsoap.org/soap/http"/>

  

 

 

http://schemas.xmlsoap.org/soap/encoding/"; namespace="http://tomas.org/faultTolerance/Service"; use="encoded"/>

 

 

http://schemas.xmlsoap.org/soap/encoding/"; namespace="http://tomas.org/faultTolerance/Service"; use="encoded"/>

 

  

   

   

  

 http://localhost:8080/axis/services/FTService"/>

  

   




Re: [Axis2 1.0]Bug? when generating java from WSDL

2006-05-05 Thread José Antonio Sánchez
On 5/5/06, José Antonio Sánchez <[EMAIL PROTECTED]> wrote:
> If I start with the wsdl from the working service, I get the same error.
> The two classes (FTAction and FaultToleranceService interface) are
> written by me, although they were writter for the Axis1 service, they
> are not generated at all and so, they should generate a good WSDL file
> with Axis2.
> On 5/5/06, Anne Thomas Manes <[EMAIL PROTECTED]> wrote:
> > Jose,
> >
> > 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
> > >
> > >
> > >
> >
> >
>
>
> --
> Saludos.
> José Antonio Sánchez
>


--
Saludos.
José Antonio Sánchez


Re: [Axis2 1.0]Bug? when generating java from WSDL

2006-05-05 Thread José Antonio Sánchez
If I start with the wsdl from the working service, I get the same error.
The two classes (FTAction and FaultToleranceService interface) are
written by me, although they were writter for the Axis1 service, they
are not generated at all and so, they should generate a good WSDL file
with Axis2.
On 5/5/06, Anne Thomas Manes <[EMAIL PROTECTED]> wrote:
> Jose,
>
> 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
> >
> >
> >
>
>


--
Saludos.
José Antonio Sánchez


Re: [Axis2 1.0]Bug? when generating java from WSDL

2006-05-05 Thread Anne Thomas Manes
Jose,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.
AnneOn 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 canport it to Axis2.I downloaded the Axis2 binary distribution and ecipse plugin. First Icreated 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 theattached wsdl file but when I try to generate the java server and stubcode from it I get the following error:
Exception in thread "main"org.apache.axis2.wsdl.codegen.CodeGenerationException:java.lang.RuntimeException: java.lang.RuntimeException: Schema fornamespace '
http://tomas.org/faultTolerance/Service/Types' alreadycontains type 'FTActionI tried with the Eclipse code generation wizard and manually with thewsdl2java 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 ofproblems.--Regards.José Antonio Sánchez


[Axis2 1.0]Bug? when generating java from WSDL

2006-05-05 Thread José Antonio Sánchez
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
http://schemas.xmlsoap.org/wsdl/"; xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"; xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"; xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"; xmlns:ns3="http://tomas.org/faultTolerance/Service/Types"; xmlns:ft="http://tomas.org/faultTolerance/Service"; xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; targetNamespace="http://tomas.org/faultTolerance/Service";>http://www.w3.org/2001/XMLSchema"; xmlns:stn_6="http://ft.tomas.org/xsd"; xmlns:ftt="http://tomas.org/faultTolerance/Service/Types"; targetNamespace="http://tomas.org/faultTolerance/Service/Types"; elementFormDefault="unqualified" attributeFormDefault="unqualified">
http://ft.tomas.org/xsd"; />



























http://schemas.xmlsoap.org/soap/http"; />http://tomas.org/faultTolerance/Service"; use="literal" />http://tomas.org/faultTolerance/Service"; use="literal" />http://schemas.xmlsoap.org/soap/http"; />http://tomas.org/faultTolerance/Service"; use="literal" />http://tomas.org/faultTolerance/Service"; use="literal" />http://localhost:8080/axis2/services/FaultToleranceService"; />http://localhost:8080/axis2/services/FaultToleranceService"; />
package org.tomas.ft;

public interface FaultToleranceService {
	
	public FTAction[] doFTAction(FTAction[] actions); 

}

package org.tomas.ft;


public class FTAction {
	
	private String action;
	private int value;
	
	public FTAction()
	{
		super();
	}
	
	public FTAction(String action, int value) {
		// TODO Auto-generated constructor stub
		this.action = action;
		this.value = value;
	}
	public String getAction() {
		return action;
	}
	public void setAction(String action) {
		this.action = action;
	}
	public int getValue() {
		return value;
	}
	public void setValue(int value) {
		this.value = value;
	}
	
	

}