cancel
Showing results for 
Search instead for 
Did you mean: 

Mangle Invalid name characters not working

0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

alex_bundschuh
Product and Topic Expert
Product and Topic Expert
0 Kudos

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

Answers (2)

Answers (2)

0 Kudos

Alexander,

It was enough, in the mapping, to choose the sub-level. It worked perfectly.

Thanks for your help.

0 Kudos

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