Skip to Content

XSA App router not working on SCP Neo Trial

Hello!

I'm trying to build MTA with SAP WebIde Full-Stack using Neo Trial account.

When i'm trying to access backend service module inside my project from html5 module, it responding with 404 Not Found.

My mta.yaml:

ID: model_manage
_schema-version: '3.1'
description: Model lifecycle management app
version: 0.0.1
modules:
  - name: client
    type: html5
    path: client
    parameters:
      disk-quota: 256M
      memory: 256M
    build-parameters:
      builder: grunt
    requires:
      - name: xsjs_api
        properties:
          name: main
          url: '~{url}'
        group: destinations
      - name: services_api
        group: destinations
        properties:
          name: service
          url: '~{url}'
      - name: xsjs
      - name: services
      - name: dest_model_manage
      - name: uaa_model_manage
  - name: xsjs
    type: nodejs
    path: xsjs
    provides:
      - name: xsjs_api
        properties:
          url: '${default-url}'
    requires:
      - name: data
      - name: hdi_data
  - name: data
    type: hdb
    path: data
    requires:
      - name: hdi_data
  - name: services
    type: nodejs
    path: services
    provides:
      - name: services_api
        properties:
          url: '${default-url}'
    requires:
      - name: hdi_data
      - name: data
resources:
  - name: uaa_model_manage
    parameters:
      path: ./xs-security.json
      service-plan: application
      service: xsuaa
    type: org.cloudfoundry.managed-service
  - name: dest_model_manage
    parameters:
      service-plan: lite
      service: destination
    type: org.cloudfoundry.managed-service
  - name: hdi_data
    properties:
      hdi-container-name: '${service-name}'
    type: com.sap.xs.hdi-container


My xs-app.json

{
	"welcomeFile": "/client/webapp/index.html",
	"authenticationMethod": "route",
	"logout": {
		"logoutEndpoint": "/do/logout"
	},
	"routes": [{
		"source": "^/client/(.*)$",
		"target": "$1",
		"localDir": "webapp"
	}, {
		"source": "^/main/(.*)$",
		"authenticationType": "none"
		"destination": "main"
	}, {
		"source": "/service/(.*)",
		"destination": "service"
	}]
}

UI code to query both services:

jQuery.ajax('/service');
var oModel = new ODataModel('/main/model.xsodata')

Maybe i missed some config?

I test same scenario with hana onpremise, and there was no problems.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

0 Answers