aspose file tools*
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)


SCJP6 | http://programmerutilities.blogspot.com/
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42929
    
  68
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!
 
wood burning stoves
 
subject: axis2 how to remove /axis2/services from ws endpoint