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! Go to Solution.
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.