From 89a144045755a68b9ae8af28ce044997256966d8 Mon Sep 17 00:00:00 2001 From: Pietro De Luca <108263256+delucapietro@users.noreply.github.com> Date: Fri, 10 Nov 2023 12:07:14 +0100 Subject: [PATCH] [SPRV] Sync of AFF in repo with dev (#563) * Sync of AFF in repo with dev * Update file-formats/sprv/type/zif_aff_sprv_v1.intf.abap Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com> * Suggestions implemented * Update file-formats/sprv/type/zif_aff_sprv_v1.intf.abap Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com> --------- Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com> Co-authored-by: Albert Mink --- file-formats/sprv/README.md | 4 ++-- .../sprv/examples/srt_test_sprv.sprv.json | 12 ++++++++++++ file-formats/sprv/sprv-v1.json | 15 +++++++++++---- file-formats/sprv/type/zif_aff_sprv_v1.intf.abap | 16 ++++++++++------ 4 files changed, 35 insertions(+), 12 deletions(-) create mode 100644 file-formats/sprv/examples/srt_test_sprv.sprv.json diff --git a/file-formats/sprv/README.md b/file-formats/sprv/README.md index 5ea3f9a7d..5d927b9fe 100644 --- a/file-formats/sprv/README.md +++ b/file-formats/sprv/README.md @@ -1,5 +1,5 @@ # SPRV File Format File | Cardinality | Definition | Schema | Example -:--- | :--- | :--- | :--- | :--- -`.sprv.json` | 1 | [`zif_aff_sprv_v1.intf.abap`](./type/zif_aff_sprv_v1.intf.abap) | [`sprv-v1.json`](./sprv-v1.json) | +:--- | :--- | :--- | :--- | :--- +`.sprv.json` | 1 | [`zif_aff_sprv_v1.intf.abap`](./type/zif_aff_sprv_v1.intf.abap) | [`sprv-v1.json`](./sprv-v1.json) | [srt_test_sprv.sprv.json](./examples/srt_test_sprv.sprv.json) diff --git a/file-formats/sprv/examples/srt_test_sprv.sprv.json b/file-formats/sprv/examples/srt_test_sprv.sprv.json new file mode 100644 index 000000000..f61f9c48c --- /dev/null +++ b/file-formats/sprv/examples/srt_test_sprv.sprv.json @@ -0,0 +1,12 @@ +{ + "formatVersion": "1", + "header": { + "description": "SPRV-Objekt für SOAP-Laufzeit testen", + "originalLanguage": "en" + }, + "serviceProvider": { + "providerName": "IIW_SRT_TEST_SPRV_PROVIDER", + "namespace": "urn:sap-com:sprx:ep:sap:test", + "prefix": "" + } +} diff --git a/file-formats/sprv/sprv-v1.json b/file-formats/sprv/sprv-v1.json index a81dc7bd9..353a63174 100644 --- a/file-formats/sprv/sprv-v1.json +++ b/file-formats/sprv/sprv-v1.json @@ -61,14 +61,20 @@ "description": "Service provider details", "type": "object", "properties": { - "name": { - "title": "Name", + "providerName": { + "title": "Provider Name", "description": "Name of the service provider", "type": "string", "maxLength": 30 }, + "namespace": { + "title": "Namespace", + "description": "Namespace of the service provider", + "type": "string", + "maxLength": 30 + }, "prefix": { - "title": "Prefix", + "title": "Object Name Prefix", "description": "Prefix for all generated objects", "type": "string", "maxLength": 10 @@ -76,7 +82,8 @@ }, "additionalProperties": false, "required": [ - "name" + "providerName", + "namespace" ] } }, diff --git a/file-formats/sprv/type/zif_aff_sprv_v1.intf.abap b/file-formats/sprv/type/zif_aff_sprv_v1.intf.abap index bd7406fe6..1ddd62cfb 100644 --- a/file-formats/sprv/type/zif_aff_sprv_v1.intf.abap +++ b/file-formats/sprv/type/zif_aff_sprv_v1.intf.abap @@ -6,25 +6,29 @@ INTERFACE zif_aff_sprv_v1 "!

Service Provider

"! Service provider details BEGIN OF ty_servprovider, - "!

Name

+ "!

Provider Name

"! Name of the service provider "! $required - name TYPE c LENGTH 30, - "!

Prefix

+ provider_name TYPE c LENGTH 30, + "!

Namespace

+ "! Namespace of the service provider + "! $required + namespace TYPE c LENGTH 30, + "!

Object Name Prefix

"! Prefix for all generated objects "! $showAlways - prefix TYPE c LENGTH 10, + prefix TYPE c LENGTH 10, END OF ty_servprovider. TYPES: "!

SOAP Web Service Provider Model

"! SOAP web service provider model BEGIN OF ty_main, "! $required - format_version TYPE zif_aff_types_v1=>ty_format_version, + format_version TYPE zif_aff_types_v1=>ty_format_version, "!

Header

"! Header data "! $required - header TYPE zif_aff_types_v1=>ty_header_60_cloud, + header TYPE zif_aff_types_v1=>ty_header_60_cloud, "!

Service Provider

"! Service provider details "! $required