[
http://issues.apache.org/jira/browse/AXIS2-1810?page=comments#action_12456519 ]
Gul Onural commented on AXIS2-1810:
-----------------------------------
Hi,
Currently, repository setup as following doesn't work if you want to
deploy the same service twice (without changing the service name, but
changing the aar name. I have tried it). In this case Axis2 deployment
gives you an error saying you cannot deploy a service with the same name
if the service is previously deployed.
axis2/
axis2.xml
services/
MyService.aar
MyService2.aar
I believe there is some additional work needs to be done in Axis2 to let
people to deploy two different versions of the same service,
without changing the service class name. Allowing creation of multiple
repository directories is one enabler down this path. In your example,
you still rely on changing the service name again (/MyService and
another at /MyService2). But we are talking about an ability to leave
the service name as is, but changing the location of the service EPR.
The idea again, changing the service wsdl namespace and deployment
locations but keeping the service name as is. So old clients can
continue using the old version while the new clients can get additional
capabilities by using the new version.
The old clients would use the old EPR (repository location) and old
namespace :
ServiceName = MyService
Location (target EPR) = http://localhost/axis2/services/v1.0/MyService
Wsdl namespace = http://www.mycompany.com/Namespace1
While the new clients can use the new EPR and new namespace :
ServiceName = MyService
Location (target EPR) = http://localhost/axis2/services/v2.0/MyService
Wsdl namespace = http://www.mycompany.com/Namespace2
Gul
> Cannot deploy multiple versions of the same service
> ---------------------------------------------------
>
> Key: AXIS2-1810
> URL: http://issues.apache.org/jira/browse/AXIS2-1810
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: New Feature
> Components: kernel
> Affects Versions: 1.1
> Reporter: Gul Onural
> Assigned To: Deepal Jayasinghe
>
> I am trying to deploy multiple versions of the same web service without
> changing the name of the service and wsdl. Instead, I want to be able to do
> that by changing namespace of the service in the wsdl file and location of
> the service. For example :
> MyService - version 1
> =================
> ServiceName = MyService
> Location = http://localhost/axis2/services/v1.0/MyService
> Wsdl namespace = http://www.mycompany.com/Namespace1
> MyService - version 2
> =================
> ServiceName = MyService
> Location = http://localhost/axis2/services/v2.0/MyService
> Wsdl namespace = http://www.mycompany.com/Namespace2
> Currently Axis2 doesn't have a mechanism to deploy multiple versions of the
> same service by chaging its location and wsdl namespace. The services
> repository has not been designed to accomadate multiple versions of the same
> service (you can have only one service repository).
> It can probably be done providing support for deploying multiple versions of
> the same service similar to the mechansim provided for deploying multiple
> versions of the same "module".
> Gul
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]