on 09-20-2023 5:28 PM
Hi All,
I have a requirement to validate the iflow using IntegrationDesigntimeArtifacts API.
I successfully able to connect to URL using the bearer token via HTTP call. content-type as application/zip also visible in header
URL: https://host:port/api/v1/IntegrationDesigntimeArtifacts(Id='SomeId',Version='active')/$value
However, since the payload is binary, im unable to view in cpi monitoring and unable to log the ZIP file too. also not able to extact the zip file further with ZIP splitter as it is showing the below error.
ERROR:com.sap.it.rt.adapter.http.api.exception.HttpResponseException: An internal server error occured: Error during type conversion from type: org.apache.camel.dataformat.zipfile.ZipInputStreamWrapper to the required type: org.apache.camel.StreamCache with value org.apache.camel.dataformat.zipfile.ZipInputStreamWrapper@105eaa8c due Error during type conversion from type: java.lang.String to the required type: org.apache.camel.StreamCache with value [Body is not logged] due java.util.zip.ZipException: invalid code lengths set.
I need to extract the particular extention file (.iflw) from the ZIP for further validation. Please help with some solution.
Hi Hema,,
m getting same issue.Can u plz suggest how u solved it?
Thanks,
Sonalika
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
What you want to do is already implemented in my CPILint tool. I would suggest that you use that instead of implementing this yourself, but at the very least you should take inspiration from its code. It's all in GitHub.
For naming conventions specifically, please see this blog post.
Regards,
Morten
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Hemalakshmi,
Could you pls elaborate what you mean by "validating" an iflow? The possible actions with the API that you mentioned are listed here: https://api.sap.com/api/IntegrationContent/resource/Integration_Flow.
I don't think you can possibly validate an iflow.
Hope this helps!
Regards,
Karuna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Karun, As per the project guidelines, I need to validate the naming conventions of all the pallet functions and if there is an error handling process created in each iflow or not. For that purpose, I'm looking for a file, where i could see .iflw file has some relevant information in the zipped format of the iflow. In POSTMAN , i could see the response as below, and if i save it in local desktop, its getting saved as zip file. But in CPI, I tried using ZIP splitter , but getting error as stated in my question.
User | Count |
---|---|
74 | |
8 | |
8 | |
8 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.