cancel
Showing results for 
Search instead for 
Did you mean: 

Issue in using IntegrationDesigntimeArtifacts API in IFLOW of CPI

Hemalakshmi
Discoverer
0 Kudos

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.

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member664372
Discoverer
0 Kudos

Hi Hema,,

m getting same issue.Can u plz suggest how u solved it?

Thanks,

Sonalika

MortenWittrock
Active Contributor
0 Kudos

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

Karunaharan
Product and Topic Expert
Product and Topic Expert
0 Kudos

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

Hemalakshmi
Discoverer
0 Kudos

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.