14 years ago
Tools Axis2 Artifact Web Service Client generator problem
I am running SoapUI 4.5.1 on MacOS X and wanted to generate the source code of a WebService client using a WSDL. I used the Axis2 Artifact in the tools, databinding method adb and gave a package name in the package field. The generation works but the package name is not taken in account. Looking at the command displayed in the dialog box, I found that the param to define the package name is a p as it should be -p.
To make that work I had to modify the axis2-1.6.2/bin folder to replace the p with -p before it execute the command.
dir=`dirname "$0"`
. "${dir}"/setenv.sh
#add any user given classpath's
USER_COMMANDS=""
prearg=""
for arg in "$@"
do
if [ "$arg" = p ]
then
USER_COMMANDS="$USER_COMMANDS ""-p"
fi
if [ "$arg" != -classpath ] && [ "$arg" != -cp ] && [ "$prearg" != -classpath ] && [ "$prearg" != -cp ] && [ "$arg" != p ]
then
USER_COMMANDS="$USER_COMMANDS ""$arg"
fi
if [ "$prearg"=-classpath ] || [ "$prearg"=-cp ]
then
AXIS2_CLASSPATH="$arg":"$AXIS2_CLASSPATH"
fi
prearg="$arg"
done
echo $USER_COMMANDS
"$JAVA_HOME"/bin/java -classpath "$AXIS2_CLASSPATH" \
-Daxis2.xml="$AXIS2_HOME/conf/axis2.xml" -Daxis2.repo="$AXIS2_HOME/repository" $USER_COMMANDS
To make that work I had to modify the axis2-1.6.2/bin folder to replace the p with -p before it execute the command.
dir=`dirname "$0"`
. "${dir}"/setenv.sh
#add any user given classpath's
USER_COMMANDS=""
prearg=""
for arg in "$@"
do
if [ "$arg" = p ]
then
USER_COMMANDS="$USER_COMMANDS ""-p"
fi
if [ "$arg" != -classpath ] && [ "$arg" != -cp ] && [ "$prearg" != -classpath ] && [ "$prearg" != -cp ] && [ "$arg" != p ]
then
USER_COMMANDS="$USER_COMMANDS ""$arg"
fi
if [ "$prearg"=-classpath ] || [ "$prearg"=-cp ]
then
AXIS2_CLASSPATH="$arg":"$AXIS2_CLASSPATH"
fi
prearg="$arg"
done
echo $USER_COMMANDS
"$JAVA_HOME"/bin/java -classpath "$AXIS2_CLASSPATH" \
-Daxis2.xml="$AXIS2_HOME/conf/axis2.xml" -Daxis2.repo="$AXIS2_HOME/repository" $USER_COMMANDS