i need Wsdl11Generator class to generate my pojo from wsdl (complex type)
i test this code
String wsdlLocation = new
String("http://localhost:8081/services/EchoService?WSDL");
Wsdl11Generator gen = new Wsdl11Generator();
gen.setWsdl(wsdlLocation);
gen.setOutputDirectory("target/generated-source");
gen.generate();
but i get this error :
15 juin 2007 14:32:02 org.codehaus.xfire.gen.Wsdl11Generator generate
INFO: Generating code for WSDL at
http://localhost:8081/services/EchoService?WSDL with a base URI of
http://localhost:8081/services/EchoService?WSDL
15 juin 2007 14:32:04 org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator
generate
INFO: Creating class org.muleumo.EchoServicePortType
15 juin 2007 14:32:04 org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator
generate
INFO: Creating class org.muleumo.EchoServicePortType
Exception in thread "main" com.sun.codemodel.JClassAlreadyExistsException
at com.sun.codemodel.JPackage._class(JPackage.java:180)
at com.sun.codemodel.JCodeModel._class(JCodeModel.java:178)
at
org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator.generate(AbstractServiceGenerator.java:95)
at
org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator.generate(AbstractServiceGenerator.java:67)
at
org.codehaus.xfire.gen.jsr181.ServiceInterfaceGenerator.generate(ServiceInterfaceGenerator.java:49)
at
org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator.generate(AbstractServiceGenerator.java:54)
at
org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java:167)
at Main.main(Main.java:23)
any solution?
in fact i want to pass complex type argument to my web service method and i
think i need this code
to pass my new generated pojo. For this example i try to generate simple
pojo but dont work
true?
Erik
--
View this message in context:
http://www.nabble.com/XFire-and-Wsdl11Generator-tf3927920.html#a11139627
Sent from the XFire - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email