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..e35980774 100644 --- a/file-formats/sprv/sprv-v1.json +++ b/file-formats/sprv/sprv-v1.json @@ -61,23 +61,26 @@ "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 } }, - "additionalProperties": false, - "required": [ - "name" - ] + "additionalProperties": false } }, "additionalProperties": false, 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..a0f7e587a 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

+ "! $showAlways + provider_name TYPE c LENGTH 30, + "!

Namespace

+ "! Namespace of the service provider + "! $showAlways + 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