You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Montabert, Olivier" <ol...@hp.com> on 2004/11/16 15:51:23 UTC
WSDL2Java --implementationClassName: bug when a Web Service is composed of several endpoints (ports)
Hi,
Using WSDL2Java in skeleton generation mode, I tried to
find a way to replace the implementation template classes
with custom implementation classes (name and package).
Unfortunately, the new feature --implementationClassName
doesn't handle the case where a Web Service is composed
of several endpoints !!!
org.apache.axis.wsdl.toJava.DuplicateFileException: Duplicate file name:
generate/src//MyImplementationClass.java.
Hint: you may have mapped two namespaces with elements of the same name
to the same package name.
at
org.apache.axis.wsdl.toJava.JavaWriter.generate(JavaWriter.java:113)
at
org.apache.axis.wsdl.toJava.JavaBindingWriter.generate(JavaBindingWriter
.java:155)
at
org.apache.axis.wsdl.toJava.JavaGeneratorFactory$Writers.generate(JavaGe
neratorFactory.java:413)
at org.apache.axis.wsdl.gen.Parser.generate(Parser.java:471)
at org.apache.axis.wsdl.gen.Parser.access$000(Parser.java:44)
at
org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:357)
at java.lang.Thread.run(Thread.java:534)
Indeed, this WSDL2Java --implementationClassName option
should work likewise the NSToPkg option, in order to provide
per endpoint (port name) a implementation class name.
Regards,
Olivier Montabert