Cobol copybook transformation to XML

HI

Is there a way to do transformation of COBOL Copybook to XML to JSON in APIGEE...Can someone please provide pointers on the same?

Solved Solved
0 3 619
1 ACCEPTED SOLUTION

There is no builtin policy today that parses a COBOL copybook payload and extracts the information and transforms it into XML or JSON. You will need to code an extension. Your options are:

  • Java callout
  • Python callout
  • Nodejs target

A Javascript callout might also work, but using JavaScript to handle an octet stream is more challenging.

View solution in original post

3 REPLIES 3

There is no builtin policy today that parses a COBOL copybook payload and extracts the information and transforms it into XML or JSON. You will need to code an extension. Your options are:

  • Java callout
  • Python callout
  • Nodejs target

A Javascript callout might also work, but using JavaScript to handle an octet stream is more challenging.

hi Dino, can you give example on COBOL copybook to json/xml Nodejs target

Hi Chaitanya, no I don't have an example of how that might be done.

Good luck!