Date post: | 08-Jan-2017 |
Category: |
Software |
Upload: | vince-soliza |
View: | 558 times |
Download: | 0 times |
PROXY A SOAP WEB SERVICEWITH MULESOFT API GATEWAY
Vince Jason Soliza
Pre-requisites
• Configure and Run On-Premise API Gateway– http://www.slideshare.net/VinceSoliza/onpremise-api-gateway-58451080
Add New Proxy API• Login to anypoint platform.• Click on APIs menu• Click Add New API• Fill up API Details and click Add
API Administration
Configure Proxy API• While in API Administration, click configure endpoint.• Select Endpoint with a proxy• Change the Type to WSDL• Write the url of the SOAP service that we want to proxy. e.g. http://localhost:1234/ws/echo-ws/EchoService?wsdl
• Un-check Configure proxy for Cloudhub? since we’re deploying in on-premises• Use HTTP scheme• Enter desired port and path• Click Save & Deploy
Deploying Proxy API• Select the environment we want to deploy. This may depends on the anypoint platform organization setup.• Select the on-premise api gateway server we previously configured.• Click Deploy Proxy.• Wait for deployment to finish successfully.
Test Actual API• The highlighted URL is what we entered in the implementation URL in
the API proxy configure endpoint.
Test the Proxy API• Noticed the response is the same using the proxy URL. This indicates the
proxy is working as expected.
Summary
API Gateway acts as an orchestration layer for services and APIs implemented elsewhere, it’s technology-agnostic. You can proxy non-Mule services or APIs of any kind, as long as they expose HTTP/HTTPS, or endpoints for a Web Service Consumer.
QUESTIONS?Please leave a comment