Use destination services for Web applications on SAP cloud platforms

Source: Internet
Author: User

Start by creating a destination in the SAP Cloud platform to maintain the end point of the service:

Then open the SAP Cloud Platform Webide, create a new folder and the new HTML5 application descriptor:

Paste the following into Neo-app.json:

{  "welcomeFile": "index.html",  "routes": [    {      "path": "/resources",      "target": {        "type": "service",        "name": "sapui5",        "entryPath": "/resources"      },      "description": "SAPUI5 Resources"    },    {      "path": "/test-resources",      "target": {        "type": "service",        "name": "sapui5",        "entryPath": "/test-resources"      },      "description": "SAPUI5 Test Resources"    },     {      "path": "/distance",      "target": {        "type": "destination",        "name": "google_map"      },      "description": "Google map"    }  ]}

Create a new index.html and enter the following:

<a href="distance/xml?origins=Walldorf&destinations=Paris">Distance from Walldorf to Paris:</a>

To test the app, click on the hyperlink:

You will find that the destination created in the first step is already in effect.

To get more original Jerry's technical articles, please follow the public number "Wang Zixi" or scan the QR code below:

Use destination services for Web applications on SAP cloud platforms

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.