on 2025 Mar 12 1:57 PM
Hello all,
I have an entity type with its properties imported from a DDIC structure, I have generated everything correctly.
I have an error in /IWFND/GW_CLIENT on a POST request with JSON body: CX_SXML_PARSE_ERROR/001560AA0E081DEB8CA398CC1690D406 "Error while parsing an XML stream" (French: "Erreur lors de l'analyse d'un flux XML")
The exception is raised by the method READ_SIMPLE_PROPERTY_VALUE of /IWCOR/CL_DS_EP_READER_JSON, if I understand well, it considers that the entity type property XXXX is of type Edm.String but the value in the request body is boolean ("XXXX":true).
I don't know why it considers the property XXXX as type Edm.String because it's defined as Edm.Boolean (it's what I want). There's no SEGW conversion warning about it.
So, maybe the issue is about the domain XFIELD.
As I can see in the SAP OData documentation (ABAP Dictionary Type to EDM.Type Mapping), a boolean should not be XFIELD.
So, I've changed it from XFIELD to XFELD and I regenerated the OData service.
I restarted /IWFND/GW_CLIENT, I cleared the backend buffer:
I restarted /IWFND/GW_CLIENT, tested again, but still the same error happens.
Thanks a lot!
System: 7.40 SP 23
Request clarification before answering.
I did the following actions:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 6 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.