This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Web Services and the fly likes axis2 how to remove /axis2/services from ws endpoint Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Web Services
Bookmark "axis2 how to remove /axis2/services from ws endpoint" Watch "axis2 how to remove /axis2/services from ws endpoint" New topic
Author

axis2 how to remove /axis2/services from ws endpoint

Mark Moge
Ranch Hand

Joined: Mar 14, 2009
Posts: 100

How can I change an endpoint of a web service which was created by axis2 wsdl2java script?

I have working Web Service with the endopint http://localhost:6060/axis2/services/myService/ and cannot figure out how I can use it with http://localhost:6060/myService/ (without axis2/services). Could you help me solve this problem or point resources which could guide me (after two days of searching still do not know how to do this)
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
The "axis2" part is the name of the web app - if you don't want that you need to make Axis the ROOT web app.

The "services" part is just the mapping of the AxisServlet; you can change that in the web.xml file.
Mark Moge
Ranch Hand

Joined: Mar 14, 2009
Posts: 100

Thank you for the solution, it works!
 
Have you checked out Aspose?
 
subject: axis2 how to remove /axis2/services from ws endpoint
 
It's not a secret anymore!