You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by tushar solanki <ma...@yahoo.com> on 2009/06/23 23:32:55 UTC
How to achieve versioning in webservice?
Hi,
I have web service aar (WebService22.aar) file on my web application service folder deployed on tomcat server which is used by clients application. Now, for next release cycle, I need to create new version of web service (WebService32.aar) which will contain some changes to existing methods & add few new methods to the existing webservice. Now the tricky part is I need to maintain both version of web service aar files (i.e. WebService22.aar & WebService32.aar) in my web app for old & new client applications & would like to keep Service name transparent to the client i.e. WebService instead of WebService22 or WebService32.
How do I achieve versioning web service aar files transparent to the client? Is ther a way where client can specify the version number in the url & Axis can forward the request to appropriate web service aar file (see table below)?
Current Behaviour:
Web Service URLTarget Web Service
----------------------------------------------------------------------------------------------------------------------------
http://localhost/test_server/services/WebService22WebService22.aar
http://localhost/test_server/services/WebService32WebService32.aar
Would like to achieve:
Web Service URLTarget Web Service
----------------------------------------------------------------------------------------------------------------------------
http://localhost/test_server/services/2.2/WebServiceWebService22.aar
http://localhost/test_server/services/3.2/WebServiceWebService32.aar
Thanks in advance...!!!
~ Tushar