on 12-02-2022 12:28 PM
Good Morning
I have a synchronous proxy<->rest scenario. In the response, I have a tag that contains hyphens in the name
In the data type, I cannot create a field with this character, as it does not accept a hyphen.
The option "Mangle Invalid name characters" is not converting the hyphen.
How to proceed?
Thanks
Hi,
I tested this as well and can confirm that there is an inconsistency, in the ESR you can't use a hyphen to define a data type although generally hyphen is actually allowed in XML and hence the REST adapter doesn't escape it.
As a workaround, you can define the data type/message type as XSD outside of the ESR and import it as external definition, external definitions actually support hyphen.
I actually downloaded a message type as WSDL, changed the element name by adding a hyphen, and imported it as external definition again, this worked fine, I even checked that this external definition could be used in a message mapping and this worked as well
Alex
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Alexander,
It was enough, in the mapping, to choose the sub-level. It worked perfectly.
Thanks for your help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Alexander,
Good Morning.
Thanks for your answer.
I was able to generate the xsd from the message type, rename the field and re-import, but the structure of the message type was repeated, one inside the other. Is there a way to delete one of these levels?
mtapicognitolinkarquivoresponse.jpg
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
9 | |
9 | |
7 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.