You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Jim Bender <ji...@gmail.com> on 2006/06/13 00:16:34 UTC

I am trying to run the WSDL2Java with args and have run into a problem

I am running the WSDL2Java main with arguments, and
CodeGenerationEngine.getBaseUTI(currentURI) is doing bad things to
the file URI I have passed as an argument. My URI is generated
by using File.toURI(path);

This is what I am getting. I have been experimenting, but to no avail.
This is the arg array that I am giving to the WSDL2Java.main([]):

[-sn, PointsCalculator, -pn, PointsCalculatorSOAP12port, -uri,
file:/c:/Java/projects2/axis2-std-1.0testbed/build/wsdl/WWPointsCalculator.wsdl,
-d, xmlbeans, -g, -u, -ss, -s, -sd, -o,
c:/Java/projects2/axis2-std-1.0testbed\build\output, -p,
testexamples.types]

Presumably, it is looking for something besides what I am giving it,
but I have been experimenting and have not found the winning formula.

The getBaseURI() method on the CodeGenerationEngine gets this as its argument

file:/c:/Java/projects2/axis2-std-1.0testbed/build/wsdl/WWPointsCalculator.wsdl

and mungs it to be this:

file:/C:/Java/projects2/axis2-std-1.0testbed/file:/c:/Java/projects2/axis2-std-1.0testbed/build/wsdl/WWPointsCalculator.wsdl

I am not sure where to go from here, but I will move forward to the
newest daily build, although probably not until tomorrow.

For now, I hand-edited the generated WSDL file to remove the duplicate
type definition so that is not an issue.

Regards,

Jim