[ 
http://issues.apache.org/jira/browse/AXIS2-1810?page=comments#action_12456185 ] 
            
Glen Daniels commented on AXIS2-1810:
-------------------------------------

OK, here's an example.  You've got:

class Service {
  public String getWeather(int zipcode) { ... }
}

And you deploy this class as "weather", so 
http://localhost:8080/axis2/services/weather gets to it.  The service gets a 
three day forecast as a String.

Now you want to add the ability to control how many days the returned forecast 
will cover, so you do:

class Service {
  public String getWeather(int zipcode, int days) { ... }
}

So here is where the interesting questions start...  I'm assuming you put the 
compiled code for Service in the weather.aar file, right?  You're either going 
to have to REPLACE the class in that .aar with the new one, or make a new .aar 
file.  If you do the former, then old clients are going to be missing an 
argument/element when they call the service with the new class.  If you do the 
latter, then it's just a new service anyway, isn't it?

Is this the kind of thing you're talking about?  We really need a detailed 
precise use-case to figure out the right thing (if anything) to do here.


> 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: Bug
>          Components: kernel
>    Affects Versions: 1.1
>            Reporter: Gul Onural
>         Assigned To: Deepal Jayasinghe
>            Priority: Blocker
>
> 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]

Reply via email to