Deployment of an Axis2 service in WSO2 ESB
15/02/2010 Leave a Comment
This tutorial will tell you how to deploy a simple service using a WSO2 ESB.
We basically will follow the quickstart guide that is already on the WSO2 web page.
http://wso2.org/project/esb/java/2.1.0/docs/quickstart_guide.html
Once said where we can find an exteded version of this tutorial let’s start with the deployment guide.
In the tutorial the wsdl that we will deploy must be online, so firstly deploy your service anywhere and make the wsdl available from outside via http. In our example we will use a SimpleService that will return to us the message that we are sending, i.e. it is acting as an echo service. In our case the service will be deployed in a tomcat and the wsdl direction is this:
http://localhost:7070/axis2/services/SimpleService?wsdl
So in this basics let’s start with the deployment orchestration in the ESB:
- Login into the ESB.
- On the left hand side menu, clcik on Proxy Service to add a new service.
- In the Step 1:
- insert “Proxy Service Name”
- Below in “General Settings” -> “Publishing WSDL”, Specify Source URL. Introduce the url and thest the connection.
- Choose the transport settings: http or https or both.
- click on “Next”.
- In the Step 2: There are 2 areas to fill here: “In Sequence Options” and “Endpoint Options”. To fill one is mandatory.
- In “Secuence Options”: let us add a secuence of actions that we can do with the incoming request, such as xslt tranformations or security appliance, even send the request from the sequence.
- “Endpoint Option”: if you haven set any secuence or you haven’t set any epr in the secuence where to send the incoming message add an endpoint here to send the message to. This can be the real service EPR or another ESB epr where you want to keep on doing stuff with your message.
- click on “Next”.
- In the Step 3: This step is the same as the Step2 with the outgoing message with the difference that now the “Out Secuence Options” and the “Fault Secuence Options” aren’t obligatories so you can leave then in “none”. By doing this the message will continue it’s way to the client.
6. click on “Finish” to save the configuration of the new proxy. - Now in the menu, under services click on list to see al the services that you have deployed in your ESB. By clicking on one of the services you can see information about the proxy/service that you have deployed with the EPR where to call it.
- Use this EP in your client to call the ESB and this to call the Service.
Now you have deployed a Proxy Service in your ESB and it is ready to be called





