Hello again. I'm now running into problems generating code for a second WSDL that has a bit more comples data structure than the first one (the first one went ok except not being able to map namespaces to package names).
The second WSDL imports namespaces and generally is a bit more complicated. Unfortunately I can't send the actual WSDL file due to a NDA but attached is the exception message I get from running the wsgen task on the WSDL just in case anybody knows what could be going on from looking at that. I know this isn't good but unfortunately my hands are bound. I'm using xfire1.0 for this and I will try to use the RC for 1.1 tomorrow just to see if that makes any difference. Any help would be greatly appreciated. Also I'd like to know if there is any way for me to run the JAXB tool directly on the WSDL to see if that gives me some more information about the problem. If this is possible I'd really appreciate pointers to some tutorials or quickstart guides that could get me started with that. Kind regards, Stefan Freyr.
[...snip (above were just messages that some classes were generated)...]
[wsgen] 10.5.2006 00:15:19
org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator generate
[wsgen] INFO: Creating class com.mycompany.bossws.xfire.ABCD_EFGHSoap
BUILD FAILED
/home/stefan/work/svn/myproduct-trunk-fixing/myproduct-server/build.xfire.xml:75:
java.util.NoSuchElementException
at org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:41)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.Main.runBuild(Main.java:668)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
Caused by: java.util.NoSuchElementException
at java.util.LinkedList$ListItr.next(LinkedList.java:554)
at
java.util.Collections$UnmodifiableCollection$1.next(Collections.java:1010)
at
org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator.generateOperation(AbstractServiceGenerator.java:152)
at
org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator.generate(AbstractServiceGenerator.java:85)
at
org.codehaus.xfire.gen.jsr181.ServiceInterfaceGenerator.generate(ServiceInterfaceGenerator.java:43)
at
org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator.generate(AbstractServiceGenerator.java:50)
at
org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java:73)
at org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:37)
... 12 more
--- Nested Exception ---
java.util.NoSuchElementException
at java.util.LinkedList$ListItr.next(LinkedList.java:554)
at
java.util.Collections$UnmodifiableCollection$1.next(Collections.java:1010)
at
org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator.generateOperation(AbstractServiceGenerator.java:152)
at
org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator.generate(AbstractServiceGenerator.java:85)
at
org.codehaus.xfire.gen.jsr181.ServiceInterfaceGenerator.generate(ServiceInterfaceGenerator.java:43)
at
org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator.generate(AbstractServiceGenerator.java:50)
at
org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java:73)
at org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:37)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.Main.runBuild(Main.java:668)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
pgpiFsSGtImMo.pgp
Description: PGP signature
