Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6136589
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:37:20+00:00 2026-05-23T17:37:20+00:00

How do I get this Ant file to generate my stubs in the ./src

  • 0

How do I get this Ant file to generate my stubs in the ./src directory instead of the root directory for the target “generate-service-stub”?

My directory structure looks like this:

  • My Project/
    • build.xml
    • src/

The namespace defined in my WSDL is “http://www.example.org/SimpleService/”. So after the build, the directory structure looks like this:

- My Project/
  - build.xml
  - src/
  - org/ <-- notice how this falls outside of the src/ directory
    - example
      - www
        - SimpleService
          - *.java
          - *.wsdd

But I want it to look like this:

- My Project/
  - build.xml
  - src/
    - org/ <-- notice how this falls within the src/ directory
      - example
        - www
          - SimpleService
            - *.java
            - *.wsdd

Here’s my build.xml file:

<project name="SimpleService">
    <property name="axis.home" value="C:/axis-1_4" />
    <property name="javamail.home" value="C:/javamail-1.4.4" />
    <property name="jsf.home" value="C:/jaf-1.1" />
    <path id="axis.classpath">
        <fileset dir="${axis.home}/lib">
            <include name="**/*.jar" />
        </fileset>
        <fileset dir="${javamail.home}">
            <include name="**/*.jar" />
        </fileset>
        <fileset dir="${jsf.home}">
            <include name="**/*.jar" />
        </fileset>
    </path>
    <taskdef resource="axis-tasks.properties" classpathref="axis.classpath" />
    <target name="generate-service-stub">
        <axis-wsdl2java serverside="true" url="SimpleService.wsdl">
        </axis-wsdl2java>
    </target>
</project>

Or is the way it’s working actually preferred, so that I don’t inadvertently overwrite my *SOAPImpl.java file?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T17:37:21+00:00Added an answer on May 23, 2026 at 5:37 pm

    The axis-wsdl2java Ant task has an attribute output to control the destination. So it should be something like:

    <axis-wsdl2java serverside="true" url="SimpleService.wsdl" output="src" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got an ant file which looks like this: <?xml version=1.0 encoding=UTF-8?> <project name=p
Hey guys I've been trying all day to get an ant file to automatically
I am having a java project with a ant build file, using this ant
I have following ant script to generate the jar file <project name=myProject basedir=. default=jar>
I need to generate an apk file using an Ant script, but I'm having
I get this error while accessing a php script: W/System.err: Error reading from ./org/apache/harmony/awt/www/content/text/html.class
I get this error when i try to upload an image: OSError at /upload/
I get this error on my Ice Cream Sandwich (Android 4.0) device and emulator.
Cant get this script to work with my menu really have tried everything any
I get this error when I run the code below. I have normally used

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.