Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem using JAXWS-RI sample code

 
Sim Kim
Ranch Hand
Posts: 268
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am using JAXWS-RI sample code. In sample "fromjava" when you run the target "ant server",the AddNumbersExceptionBean is generated in the "build" directory.This bean is generated in the fromjava.server.jaxws package.I want to change this package name ? How do I do this ?
 
Peer Reynders
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java API for XML Web Services (JAX-WS) wsimport

For the command-line tool it is the -p option.

Java API for XML Web Services (JAX-WS) wsimport Ant task

For the ant task it is the "package" attribute.
 
Sim Kim
Ranch Hand
Posts: 268
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Peer.

But my problem is related to the "apt" process which is called by ant.
Here is the code from build.xml which calls apt :



And my Web Service class is :



After calling the apt, the classes are generated . The classes generated are :
AddNumberImpl.class
AddNumberException.class
addNumbers.class
addNumbersResponce.class
AddNumbersExceptionBean.class

Except AddNumbersExceptionBean.class , all others are generated in fromjava.server package while AddNumbersExceptionBean.class is generated in fromjava.server.jaxws package.

In the build.xml , I can't see jaxws package being created.So I think this is done by the apt command. How do I control this ? I want the AddNumbersExceptionBean.class to be generated in some other package or in fromjava.server package itself.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic