Announcements
This site is in read only until July 22 as we migrate to a new platform; refer to this community post for more details.
Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

XML 2 JSON doesn't work

Not applicable

Taerget retirns XML of teh following format:

<?xml version="1.0"?> <ArrayOfFeature xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <Feature> <Descriptor> <Acro>PILPNT</Acro> <Name>Pile</Name> </Descriptor> <DefaultAttributeValue>Ar-Men</DefaultAttributeValue> <ObjectId>00000015006400003137313636323330</ObjectId> </Feature> </ArrayOfFeature>

This is being processed by XML2JSON policy (no conditions) however result of condition is exactly the same XML ...

The only guess I have is that may be because of multiple root tags (there are 2 of them - one <xml> and one <ArrayOfFeature>.

Can someone help please and advise where to look for solution?

Solved Solved
0 6 403
1 ACCEPTED SOLUTION

Hi @Alexey Pirozhnikov

The Content-Type must be "application/xml". Please check the doc here

The HTTP Content-type header of the source message must be set to application/xml, otherwise the policy is not enforced.

View solution in original post

6 REPLIES 6