- Upload transform.xslt file into the "gov:/transform.xslt"
- Add xslt_transform_proxy.xml into the proxy service
- Evoke the service with the following payload with url "https://localhost:8243/services/xslt_trasform_proxy"
{ "ISOMessage":
{ "data":
{ "field":
[
{ "id": "0", "text": "0200" },
{ "id": "6", "text": "sd" },
{ "id": "4", "text": "000000500000" },
{ "id": "7", "text": "0111522180" },
{ "id": "11", "text": "123489" },
{ "id": "32", "text": "100009" },
{ "id": "44", "text": "XYRTUI5269TYUI" },
{ "id": "11", "text": "ABCDEFGHIJ" }
]
}
}
}
curl -X POST \
https://localhost:8243/services/xslt_trasform_proxy \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-d '{ "ISOMessage":
{ "data":
{ "field":
[
{ "id": "0", "text": "0200" },
{ "id": "6", "text": "sd" },
{ "id": "4", "text": "000000500000" },
{ "id": "7", "text": "0111522180" },
{ "id": "11", "text": "123489" },
{ "id": "32", "text": "100009" },
{ "id": "44", "text": "XYRTUI5269TYUI" },
{ "id": "11", "text": "ABCDEFGHIJ" }
]
}
}
}' -k
In case of SSL error while using curl, use -k option with curl command