Start wso2 integrator

  1. Download and extract the wso2 enterprise integrator from https://wso2.com/integration.
  2. Start the integrator.
    • cd /data/software/wso2ei-6.1.1/bin
    • ./integrator.sh

This will start the admin console at https://localhost:9443/carbon/admin/login.jsp/ and you can login using username as admin and password as admin.

Deploy sample web services on axis server

  1. cd /data/software/wso2ei-6.1.1/samples/axis2Server/src/SimpleStockQuoteService
  2. ant

Start sample web services on axis server

  1. cd /data/software/wso2ei-6.1.1/samples/axis2Server
  2. ./axis2server.sh

This will start the axis web services engine. We use one of sample web service exist in this for creating a proxy service.

When the axis server started you can view deployed services from below URL.

http://localhost:9000/services/

Deployed services

Setting up pass through proxy

Now we are going to proxy the SimpleStockQuoteService using enterprise integrator.

1. Login to management console – https://localhost:9443/carbon/admin/login.jsp using admin/admin

2. Go to Main > Manage > Services > Proxy Services from left menu

3. Click Pass Through Proxy

4. Add any name to ‘Proxy Service Name*’

e.g. sampleProxy

5. Set Target URL – http://localhost:9000/services/SimpleStockQuoteService

6. Set Publishing WSDL > Specify source URL > WSDL URI

http://localhost:9000/services/SimpleStockQuoteService?wsdl

7. Click create

proxy

Testing the proxy

 

  1. Go to Main > Manage > Services > List
  2. Click on sampleProxy on the GridsamplePro.png
  3. You can see the Proxy end point as http://ip-10-0-2-15.eu-west-1.compute.internal:8280/services/sampleProxy
  4. Click on Try this service link for testing
  5. Click on getQuote from left panel and click send button

tryit.png

Your deployed proxy services are available at

/data/software/wso2ei-6.1.1/repository/deployment/server/synapse-configs/default/proxy-services

You can see the results on right – DONE