This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori 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


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
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!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: axis2 how to remove /axis2/services from ws endpoint
 
jQuery in Action, 3rd edition