Issue with File Input in Web Services Connector – Create Operation

Hi Everyone,

We’re currently working on configuring the Create operation in a Web Services application to provision users. Our goal is to send user information in the body as form-data, specifically using a file input.

To achieve this, we’re using a Before Create Operation Rule to set the file content dynamically. However, despite multiple attempts, the endpoint consistently returns an error stating:

“param is missing or the value is empty”


We’ve tried various approaches to populate the file input( like by giving file object, encoded file object and converted file to string), but none seem to work. Has anyone successfully implemented this kind of setup or encountered a similar issue?

Any guidance, examples, or suggestions would be greatly appreciated!

Thanks in advance :folded_hands:
— Sravani

Hello @SravaniKistoju09

Welcome to the community!

Please check this link - it should help you.

File in the form-data Body of a CreationAccount operation in WebServices

Hi @animesh jain,

Thank you for your response.
We attempted to use MultipartEntityBuilder within the “After Operation” rule. However, during invocation, we encountered the following error:
“MultipartEntityBuilder not found in namespace.”

We have already added the necessary dependency for MultipartEntityBuilder in our build.gradle file and verified the configuration, but the issue persists.

Could you please advise if we might be missing any additional configuration or steps?

Using this import - “ import org.apache.http.entity.mime.MultipartEntityBuilder;” in rule

Thanks

Sravani

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.