Ciao dovo creare un file ant che mi trasformi un interfaccia java in un documento wsdl. Il file ant che ho creato è:
<?xml version="1.0" encoding="UTF-8"?>
<project name="BuildFlightMonitorService" default="generate-wsdl" basedir=".">
<property name="src" location="src"/>
<property name="build" location="build"/>
<target name="init">
<tstamp/>
<!-- Create the build directory structure used
by compile -->
<mkdir dir="${build}"/>
</target>
<target name="compile" depends="init" description="compile the source " >
<property name="debug" value="off" />
<property name="debuglevel" value="lines,vars,source" />
<javac srcdir="${src}" destdir="${build}" debug="${debug}" debuglevel="${debuglevel}" />
</target>
<target name="generate-wsdl" depends="compile" description="generate wsdl file ">
<axis-java2wsdl
classname="ciao.class"
style="document"
namespace="http://myNameSpace"
location="http://localhost:7070/My service"
output=".">
<pathelement location="./build"/>
</axis-java2wsdl>
</target>
<target name="clean" description="clean up" >
<delete dir="${build}"/>
</target>
</project>
Quando lancio il target "generate-wsdl" mi compare il seguente messaggio:
Buildfile: G:\pad\pad\Assignment4\build.xml
init:
compile:
generate-wsdl:
BUILD FAILED
G:\pad\pad\Assignment4\build.xml:30: Problem: failed to create task or type axis-java2wsdl
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
Non capisco quale sia il problema..![]()
![]()
Grazie in anticipo![]()

Rispondi quotando