axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Montabert, Olivier" <olivier.montab...@hp.com>
Subject WSDL2Java --implementationClassName: bug when a Web Service is composed of several endpoints (ports)
Date Tue, 16 Nov 2004 14:51:23 GMT
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

Mime
View raw message