Skip to main content

We need to import XML file but we struggle with problems with every IFS prepared transformer.

  1. IFS_XML_TO_JSON

Here is the example input XML file (focus on the marked):

 

Transformer does not work for collections.
First line of collection works properly, but next lines have type changed to Integer.
As per IFS docs. we expect that all output datatypes for transformer should be text.

Here is the JSON output:

 

Does anyone resolved/worked-around this problem ?

 

  1. IFS_XML_TO_JSON_GENERIC

Here is the example input XML file:

 

This transformer also does not work for collections. First line of collection works properly, but next lines are wrongly parsed and type changed to Integer.

Here is the JSON output:

 

  1. We also tried transformer “MODEL_BASED_XML_TO_JSON” but it does not use subcollections at all (we tested on SalesMessageService.ReceiveCustomerOrder with subcollection “ExtCustOrdLines”)

 

Any hints are appreciated.

We managed to use our own xsl transformer together with MODEL_BASED_XML_TO_JSON transformer for action SalesMessageService.ReceiveCustomerOrder.

Input schema for MODEL_BASED_XML_TO_JSON in attached.

Issue with IFS_XML_TO_JSON GENERIC and IFS_XML_TO_JSON makes this two unusable for ReceiveCustomerOrder action.  


Issue solved with RU23R2


We need to import XML file but we struggle with problems with every IFS prepared transformer.

  1. IFS_XML_TO_JSON

Here is the example input XML file (focus on the marked):

 

Transformer does not work for collections.
First line of collection works properly, but next lines have type changed to Integer.
As per IFS docs. we expect that all output datatypes for transformer should be text.

Here is the JSON output:

 

Does anyone resolved/worked-around this problem ?

 

  1. IFS_XML_TO_JSON_GENERIC

Here is the example input XML file:

 

This transformer also does not work for collections. First line of collection works properly, but next lines are wrongly parsed and type changed to Integer.

Here is the JSON output:

 

  1. We also tried transformer “MODEL_BASED_XML_TO_JSON” but it does not use subcollections at all (we tested on SalesMessageService.ReceiveCustomerOrder with subcollection “ExtCustOrdLines”)

 

Any hints are appreciated.

 @Krzysztof Ryszkowski I’m struggling also with the IFS prepared XML-JSON transformers. How is it possible to validate or see the output JSON body when all routing rules and application messages are stopped in errors?


Reply