Customer Portal

How to generate dynamic XML metadata/schema

Comments 2

  • Avatar
    Pedro Vazquez Rosario
    0
    Comment actions Permalink
    Hi KMac21,

    A simple solution to your use case would be to leave the XML response as a string and use a SimpleCopy component to pass a copy to two XMLExtract component (output the data of the XML). You will want set the File URL property for both XMLExtracts to read from the port. In the XMLExtract's Mapping property, it will ask you to "Generate tree structure" in the Source XML File use the ready status's XML for one and the unavailable status XML for the other one, thus creating the structure for both cases. Finally, map the Message to the output port in both cases.

    I have also taken the liberty of attaching a project of your use case.
  • Avatar
    kmac21
    0
    Comment actions Permalink
    Thank you so much for your help! I also realized that I could just pass the output of the xml from the java tool to the stdOut and feed that into a Reformat component where I then parsed out the message with substring. Both solutions work and is very helpful. Thanks again.

Please sign in to leave a comment.