I have a simple webservice (well the frontend is simple, its guts are a little binary hell) and the service has a configuration file but I cannot find anyway to give the path to that file other than hardcoding it, editing the WSDL file or the web.xml is OK
I'm using a WSDL file, Axis2, Tomcat 6, java 6, Eclipse and I don't know what other detail can serve as information.
As a web service is itself a web application, you can use web.xml to provide any initialization parameters (context params). If you don't have any initialization servlets, then you can use ServletContextListener concrete class to retrieve initialization parameters and do whatever you want. Initialization parameter can also be a path to a resource like *.properties and subseqeuntly be loaded.
To answer your question on how to set the path, provide path "/WEB-INF/classes/configuration.properties" either as a hardcoded string within ServletContextListener concrete class or as a context parameter (if you think this is dynamic). Now, you can get real path using
Hope this helps!
(OCEEJBD6, SCWCD5, SCDJWS, SCJP1.4 and Oracle SQL 1Z0-051)