Posts

Showing posts from May, 2010

How to specify a custom scope for WS-Discovery target service

As I explained in a previous blog post , WS-Discovery support is included in the latest WSO2 carbon release (3.0.0). WSO2 WSAS can be considered as a target service hosting provider. A default scope is assigned to all the target services discovered by a Discovery Proxy. If a discovery client looks for a service based on the service type, or some scopes, the client sends probe message to the DiscoveryProxy. Then the proxy responds back to the client with the appropriate service metadata. Suppose we need to specify a scope for the services deployed on WSAS (target services). How can we do that? You can specify the service scope(s), by adding a parameter in the services.xml of the Axis2 Service archive (*.aar) as follows. <parameter name="wsDiscoveryParams"> <Scopes>http://wso2.org/engineering</Scopes> </parameter> Then, you can probe the services either through WS-Discovery Control Panel in WSO2 ESB management console as shown here or

Hierarchical service deployment support in WSO2 WSAS-3.2.0

Image
WSO2 WSAS-3.2.0 is the latest version of WSO2 Web Services Application Server which consists of some new features as well as a lot of bug fixes. Hierarchical service deployment is one of the new features included in the latest WSAS. Hierarchical service deployment model allows you to deploy two (or more) different versions of the same service in a very easy manner. Lets see how multiple versions of the same services can be deployed on WSAS-3.2.0 Pre-requisites: Download WSO2 WSAS-3.2.0 from here Step 1 Start WSO2 WSAS by running wso2server.sh{bat} from WSAS_HOME/bin Access management console using https://localhost:9443/carbon and log in with the default credentials(admin/admin) Select Axis2 Service from the left navigation menu. You will notice there is an input text box, Service Hierarchy . Here you can specify a service path. eg:- /marketing/test Browse a service archive (eg:- Axis2Service.aar) in your local file system and click on Upload. The service will be deployed successful