Ant wsdl2java namespacemappingfile attribute doesn't work

D

DaveJ

Hi,

I'm trynig to execute axis-wsdl2java as a target in my ant makefile.
The problem is the mapping file attribute doesn't seem to work. The
wsdl files are compiled to java files, but the default package name is
still being used, instead of the one specified in my mapping file.

If I execute WSDL2Java from the command line and supply the mapping
file the java files are compiled into the correct package.

My mapping file looks like this:
http://mobile.device.com/device=com.device.mobile.api


And the target looks like this:
<axis-wsdl2java output="${build}/wsdl" all="true"
namespacemappingfile="/tmp/mapping.file" url="third-party/wsdl/
Device.wsdl">
</axis-wsdl2java>


Any ideas?
 
Joined
Nov 4, 2010
Messages
1
Reaction score
0
Had the same problem, took me awhile to figure it out, but if your namespace name happens to have colons you must escape them with \

example:

http\://my.company.com=com.mynewpackage

(sorry for reviving old posts, but the comment above isn't very helpful and threads like this still appear in Google searches, so hopefully this will help somebody facing the same problem)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top