File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes wscompile question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "wscompile question" Watch "wscompile question" New topic
Author

wscompile question

seb petterson
Ranch Hand

Joined: Mar 04, 2005
Posts: 118
I don't know much about wscompile or JAXRPC or web services in general, so bare with me.

This is the QUESTION:
Is there a way to tell wscompile to take some parameter telling it to not hardcode the url into the java code but to take it from a properties file. Is this possible?

(Or is there some other neat solution? see background)

This is the BACKGROUND:
In our project we make use of wscompile to generate java proxy classes for
webservices. I use the ant task for wscompile that takes package name and a config file as parameter, the config file contains a WSDL pointer.

Everything works fine technically, the problem is that when we make changes to the system, they are moved through four different environments: development -> test -> acceptance -> production. For each environment there are different web service locations. Which means that the classes generated by wscompile needs to be generated again, with the updated wsdl pointer. The problem with this is that I as a developer will be involved in lifting the changes from one environment to the other in that I need to provide the updated class package related for each web service url to the people involved with testing and "lifting" changes. The other problem is that the test people might feel uneasy with the fact that they will end up inserting a set of classes that havent been tested into production.

I would not like to mess with the auto generated java code since these classes might be generated by developers not familiar with JAX-RPC.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: wscompile question
 
Similar Threads
conditional axis web service - sample nowhere
Expose all operations OR just one
NullPointerException when calling a web service
wscompile generating a bad jax-rpc mapping file
Sample Questions for 288 - Need answers