Hello Everyone,

I am trying to generate client jar file for my webservice by running clientgen ant task. I followed all required steps but i am getting errors.

I guess my problem is incorrect form of build.xml file, it looks like the following:

Code:
<project name="buildwebservice" basedir="." default="generate-client">
<target name="generate-client" >
      <property name="wsdlUrl" 
          value="myWebserviceURL"/>
      <clientgen wsdl="${wsdlUrl}" packageName="mypackage"
        clientJar="myclient.jar" />
    </target>
</project>
After running ant command, i get the following error:

Code:
Cause: the class weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask
ot found.
Action: Check that the component has been correctly declared
        and that the implementing JAR is in one of:
        -C:\Oracle\MIDDLE~1\modules\ORGAPA~1.1\lib
        -C:\Users\SOFI\.ant\lib
        -a directory added on the command line with the -lib argument
Sometimes i get different errors, like project file doesn't contain target package

Maybe my build.xml file isn't formed correctly and i am missing something.

Please Help me if someone knows details of it.

Thanks in advance !! have a nice day