When a tenant hosts a service to be used by external parties, it should ideally have a short URL. Shorter URLs are easier to be memorized and typed, which eliminates the need to log-in to access the service. Also, tenant information and other descriptive attributes are hidden in shorter URLs, and they are more convenient in hard-copy productions.
...
The URL mapping functionality is bundled by default in the WSO2 Application Server. If it is not included in the WSO2 product you are using, you can install it using the instructions provided in section Feature Management. Once installed, the necessary menus will appear in the product's management console.
...
3. If the "URL Mapper" feature is installed in the product, you can find the "URL Mappings" link in the service's dashboard.
Click the "URL Mappings" link.
4. The "URL Mappings" window opens. Click the "Add New Mapping" link.
5. Enter a URL mapping name. For example,
...
- http://examplemap.localhost:port?wsdl - to access the wsdl of your service
- http://examplemap.localhost:port?tryit - to access the tryit tool of your service
- http://examplemap.localhost:port/getQuote - to access rest call of your service
To access your own domain, a cname is required. If a cname is not available at the moment, you can use /etc/hosts file in ubuntu or Windows\System32\drivers\etc\hosts file in windows to put your domain entries pointing to the local ip. For example,
Code Block |
---|
127.0.0.1 exampleapp.localhost |
...
This is applicable only for testing purposes.
...