Start wso2 integrator
- Download and extract the wso2 enterprise integrator from https://wso2.com/integration.
- 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
- cd /data/software/wso2ei-6.1.1/samples/axis2Server/src/SimpleStockQuoteService
- ant
Start sample web services on axis server
- cd /data/software/wso2ei-6.1.1/samples/axis2Server
- ./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/
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
Testing the proxy
- Go to Main > Manage > Services > List
- Click on sampleProxy on the Grid
- You can see the Proxy end point as http://ip-10-0-2-15.eu-west-1.compute.internal:8280/services/sampleProxy
- Click on Try this service link for testing
- Click on getQuote from left panel and click send button
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