# \[ISC\] Web Services Connector - File in POST form-data

**URL:** <https://developer.sailpoint.com/discuss/t/isc-web-services-connector-file-in-post-form-data/205625>\
**Category:** SHF Discussion and Questions\
**Tags:** webservice-connector, sailpoint-identity-security, provisioning, connectors\
**Created:** [April 27, 2026, 4:09pm UTC](https://developer.sailpoint.com/discuss/t/isc-web-services-connector-file-in-post-form-data/205625 "2026-04-27T16:09:24Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex\_Alvarez](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@Alex\_Alvarez](https://developer.sailpoint.com/discuss/u/Alex_Alvarez)\
**Post date:** [April 27, 2026, 4:09pm UTC](https://developer.sailpoint.com/discuss/t/isc-web-services-connector-file-in-post-form-data/205625/1 "2026-04-27T16:09:24Z")

</div>

Need to understand if sending a file in a WS connector rule in a POST form-data is possible.

Have a requirement from an app we’re integrating (Control-M) which has a web service. Any provisioning calls require a file to be sent in the request in the form-data field (Documentation link: [BMC Swagger](http://aapi-swagger-doc.s3-website-us-west-2.amazonaws.com/#/config)). Example of call to manage would be under the config folder, /config/authorization/user which requires a userFile in the params. I’ve tried something similar to the thread for IIQ, but built a POC connecting to a site which just confirms it receives a file and it is not receiving the call.

Attached latest iteration of code tested which did not work, and below is error received which points to not being able to invoke create on the MultipartEntityBuilder:  
`Exception occurred while performing ‘Create’ operation on identity ‘<redacted>’: Error: BeanShell script error: bsh.EvalError: Sourced file: inline evaluation of: import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import o . . . '' : Typed variable declaration : Attempt to resolve method: create() on undefined variable or class name: MultipartEntityBuilder : at Line: 36 : in file: inline evaluation of: import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import o . . . ‘’ : MultipartEntityBuilder .create ( )`  
`BSF info: File After Operation Rule Test at line: 0 column: columnNo`

[WS After Operation Rule for File.java](https://developer.sailpoint.com/discuss/uploads/short-url/6wQknzrneeG1tHWI8zqzzHGUSkO.java) (1.3 KB)

---

<div class="post-metadata">

**Author:** ![mandarsane](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/mandarsane/32/35650_2.png) [@mandarsane](https://developer.sailpoint.com/discuss/u/mandarsane)\
**Post date:** [April 28, 2026, 6:59am UTC](https://developer.sailpoint.com/discuss/t/isc-web-services-connector-file-in-post-form-data/205625/2 "2026-04-28T06:59:51Z")

</div>

Hi @Alex_Alvarez ,

Please check if you have configured maven repository or required jar file (httpmime-.jar) for class “org.apache.http.entity.mime.MultipartEntityBuilder”

---

<div class="post-metadata">

**Author:** ![Alex\_Alvarez](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@Alex\_Alvarez](https://developer.sailpoint.com/discuss/u/Alex_Alvarez)\
**Post date:** [April 30, 2026, 3:52pm UTC](https://developer.sailpoint.com/discuss/t/isc-web-services-connector-file-in-post-form-data/205625/3 "2026-04-30T15:52:16Z")

</div>

Mandar,

I haven’t configured maven but will attempt to upload the jar to the VA. Thank you

---

<div class="post-metadata">

**Author:** ![amulpuru](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/amulpuru/32/39238_2.png) [@amulpuru](https://developer.sailpoint.com/discuss/u/amulpuru)\
**Post date:** [April 30, 2026, 4:01pm UTC](https://developer.sailpoint.com/discuss/t/isc-web-services-connector-file-in-post-form-data/205625/4 "2026-04-30T16:01:35Z")

</div>

You need httpmime-4.5.x. jar

Thanks in advance,

Avinash Mulpuru.

---

<div class="post-metadata">

**Author:** ![amulpuru](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/amulpuru/32/39238_2.png) [@amulpuru](https://developer.sailpoint.com/discuss/u/amulpuru)\
**Post date:** [April 30, 2026, 4:06pm UTC](https://developer.sailpoint.com/discuss/t/isc-web-services-connector-file-in-post-form-data/205625/5 "2026-04-30T16:06:00Z")

</div>

Oh this is ISC right can you try with this updated rule

[WS\_After\_Operation\_Rule\_for\_File\_Fixed.java](https://developer.sailpoint.com/discuss/uploads/short-url/lIVcS52Z834j8VGvn4GcCjxHO5K.java) (2.1 KB)

---

<div class="post-metadata">

**Author:** ![Alex\_Alvarez](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@Alex\_Alvarez](https://developer.sailpoint.com/discuss/u/Alex_Alvarez)\
**Post date:** [June 5, 2026, 3:03pm UTC](https://developer.sailpoint.com/discuss/t/isc-web-services-connector-file-in-post-form-data/205625/6 "2026-06-05T15:03:21Z")

</div>

@amulpuru We have decided to move from an after operation rule to instead trying to build the body of the request to send in a before operation rule. Would setting the request body to the block you provided be sufficient in a before rule?

---

<div class="post-metadata">

**Author:** ![narayanag](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/narayanag/32/25441_2.png) [@narayanag](https://developer.sailpoint.com/discuss/u/narayanag)\
**Post date:** [June 5, 2026, 4:15pm UTC](https://developer.sailpoint.com/discuss/t/isc-web-services-connector-file-in-post-form-data/205625/7 "2026-06-05T16:15:34Z")

</div>

@Alex_Alvarez - Are you using same class usage in after operation. (MultipartEntityBuilder class).

---

<div class="post-metadata">

**Author:** ![BBR1](https://avatars.discourse-cdn.com/v4/letter/b/c57346/32.png) [@BBR1](https://developer.sailpoint.com/discuss/u/BBR1)\
**Post date:** [June 5, 2026, 5:15pm UTC](https://developer.sailpoint.com/discuss/t/isc-web-services-connector-file-in-post-form-data/205625/8 "2026-06-05T17:15:42Z")

</div>

yes you can build and set the multipart/form-data request body in a **Web Services Before Operation Rule.** The key is ensuring the connector can generate a valid multiple request; simply setting a JSON body is not sufficient for file uploads.

Test the rendered request body and headers in the Before Rule logs to verify the ,multipart content is being sent correctly

---

<div class="post-metadata">

**Author:** ![narayanag](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/narayanag/32/25441_2.png) [@narayanag](https://developer.sailpoint.com/discuss/u/narayanag)\
**Post date:** [June 5, 2026, 5:23pm UTC](https://developer.sailpoint.com/discuss/t/isc-web-services-connector-file-in-post-form-data/205625/9 "2026-06-05T17:23:07Z")

</div>

@BBR1 did you have evidence webservice connector can send file ?

---

<div class="post-metadata">

**Author:** ![schattopadhy](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/schattopadhy/32/8854_2.png) [@schattopadhy](https://developer.sailpoint.com/discuss/u/schattopadhy)\
**Post date:** [June 6, 2026, 1:39pm UTC](https://developer.sailpoint.com/discuss/t/isc-web-services-connector-file-in-post-form-data/205625/10 "2026-06-06T13:39:46Z")

</div>

> [@BBR1](#):
>
> n build and set the multipart/form-data request body in a **Web Services Before Operation Rule.** The key is ensuring the connector can generate a valid multiple request; simply setting a JSON body is not sufficient for file uploads.
> 
> Test the rendered request body and headers in the Before

@Alex_Alvarez we are also stuck in the same issue.How did you resolve sending a file.Please let us know

---

<div class="post-metadata">

**Author:** ![rabappy](https://avatars.discourse-cdn.com/v4/letter/r/9d8465/32.png) [@rabappy](https://developer.sailpoint.com/discuss/u/rabappy)\
**Post date:** [June 7, 2026, 4:14am UTC](https://developer.sailpoint.com/discuss/t/isc-web-services-connector-file-in-post-form-data/205625/11 "2026-06-07T04:14:05Z")

</div>

I’d also be interested to hear if anyone has successfully implemented file uploads with the Web Services connector in ISC. Building the multipart body in a Before Operation Rule sounds reasonable, but the key question is whether the connector actually supports sending a true `multipart/form-data` request with file content. If anyone has a working example or confirmation from SailPoint documentation, that would help clarify whether this is a connector limitation or just a rule implementation issue.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [August 6, 2026, 4:14am UTC](https://developer.sailpoint.com/discuss/t/isc-web-services-connector-file-in-post-form-data/205625/12 "2026-08-06T04:14:25Z")

</div>

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