webMethods

 View Only

 How to parse file in webmethod received through REST API.

ajay prasad's profile image
ajay prasad posted Fri June 27, 2025 01:17 AM

This may be a naive question to ask as i am fairly new to webmethods.

I want to receive this file attached in the API below as an input into my webmethod flow service. The url below is for my webmethod flow service which has a object type variable ( named csvin defined as an input ). I want to process the content of this file. 
Can someone suggest how to receive this in the flow service and how to process it forward, i  can see the 200 response but my flow service has no contentStream variable defined. where is this variable stored and how can i use it in further mapping to extract data from it.

Thank you in advance.

engin sarlak's profile image
engin sarlak

You need to parse mime message using mime services. It can be a challenging task when doing for the first time. Document link is below. 

https://www.ibm.com/docs/en/wm-integration-server/11.1.0?topic=guide-extracting-data-from-mime-smime-messages