aspose file tools*
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes wsimport - seperate endpoint and JAXB java files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "wsimport - seperate endpoint and JAXB java files" Watch "wsimport - seperate endpoint and JAXB java files" New topic
Author

wsimport - seperate endpoint and JAXB java files

Prash Negu
Ranch Hand

Joined: Apr 20, 2009
Posts: 45
Hi,

Can someone suggest me how to place generated endpoint java files and
JAXB genereated java files in two different folders using wsimport
task? I tried out couple of options but wsimport always places the JAXB
files in "sourcedestdir" specified folder.

How to place them in two different projects/locations?

Thanks,
Prashant
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
Have you tried the -p option in the wsimport command that allows you to specify the target package?
Best wishes!


My free books and tutorials: http://www.slideshare.net/krizsan
Prash Negu
Ranch Hand

Joined: Apr 20, 2009
Posts: 45
Hi Ivan,

I havent tried -p option. But i thought it is to only change package for JAXB artifacts and not their location. I will try this.

Thanks,
Prashant
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
If you only want to change the JAXB classes, then you may want to consider using a JAXB binding file.
Take a look at this webpage for more information: http://download.oracle.com/docs/cd/E17802_01/webservices/webservices/docs/1.5/tutorial/doc/JAXBUsing4.html
Best wishes!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: wsimport - seperate endpoint and JAXB java files
 
Similar Threads
disable xjc(JAXB generation) in wsimport task
JAX-WS Question
writing Java client for web service based on XSD
New to WS, Jax-Ws vs Axis and how to get started in eclipse
Wsimport and jaxb binding issue