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 Axis2 (Embded in tomcat5.5)  - Moving services.xml to custom location (or JAX-WS) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Axis2 (Embded in tomcat5.5)  - Moving services.xml to custom location (or JAX-WS)" Watch "Axis2 (Embded in tomcat5.5)  - Moving services.xml to custom location (or JAX-WS)" New topic
Author

Axis2 (Embded in tomcat5.5) - Moving services.xml to custom location (or JAX-WS)

John Landon
Ranch Hand

Joined: Sep 25, 2008
Posts: 227
Hi,
I have an existing webapp without web services that works on tomcat.
To add axis2 web services functionality I added to web.xml
I have a working web services axis2 on tomcat 5.5 web app. My problem is that although I have my class (service) files in custom location (of course I modified the services.xml file accordingly) I MUST (or may be not hopefully) put the services.xml file for each service into the WEB-INF\services\service_name\META-INF.
I read this tutorial that tells me how to define multiple web services in one services.xml but doesn't tell me how do I define a custom location to put it in (instead of creating directories hierarchy for each service and putting the file under META-INF).
ALTERNATIVELY I would gladly use JAX-WS2 IF I DON't NEED services.xml at all (after all I tell it who is the service with annotations) so to add a web services functionality to my web app would be just editing web.xml.
Any Ideas?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39551
    
  27
We had a discussion on that a while ago: How to run JAX-WS on Tomcat

I always meant to figure out how to apply WS-Security to that setup, but never got around to it.


Ping & DNS - updated with new look and Ping home screen widget
John Landon
Ranch Hand

Joined: Sep 25, 2008
Posts: 227
Wasn't helpful at all.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39551
    
  27
That topic shows how to run JAX-WS in a web app; wasn't that what you asked for (as an alternative)?
John Landon
Ranch Hand

Joined: Sep 25, 2008
Posts: 227
thanks man
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Axis2 (Embded in tomcat5.5) - Moving services.xml to custom location (or JAX-WS)
 
Similar Threads
WSDL Location in Axis2
Reg: Deployment exception
Axis2-1.4 help
services.xml cannot be found in my .jar files
Creating webservice using Axis2