• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

wscompile question

Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 have gone to look for myself. If I should return before I get back, keep me here with this tiny ad:
a bit of art, as a gift, that will fit in a stocking
    Bookmark Topic Watch Topic
  • New Topic