• Post Reply Bookmark Topic Watch Topic
  • New Topic

Replace asmx webservice with axis2

 
Stefan Greiner
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a asmx webservice with the entpoint ULR:

http://host:port/applicationName/ServiceName.asmx

I must replace the webservice with an axis2 webservice but I can't change the endpoint.

The axis2 endpoint URL Looks like:

http://host:port/applicationName/services/ServiceName

I'm using Tomcat 7 as Server.

Anybody an idea how to configure axis2 and Tomcat that the webservice responds on the URL:

http://host:port/applicationName/ServiceName.asmx

Thanks in advance, every Input is welcome.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think you can do this within Axis2 (not least because Axis2 is not listening on that URL). If you have an Apache running in front of the servlet container you could use mod_rewrite to map the old URL to the new one.

If you need to make do with what the servlet container can do, you can either write a servlet that listens to the old URL and forwards to the new one using a RequestDispatcher, or use a library like http://tuckey.org/urlrewrite/.
 
Stefan Greiner
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you very much
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!