# Postman to send SOAP request with file attachment

**URL:** <https://community.postman.com/t/postman-to-send-soap-request-with-file-attachment/16812>\
**Category:** Help Hub\
**Tags:** tests, soap\
**Created:** [October 15, 2020, 6:09pm UTC](https://community.postman.com/t/postman-to-send-soap-request-with-file-attachment/16812 "2020-10-15T18:09:18Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![plaidshirtakos](https://avatars.discourse-cdn.com/v4/letter/p/e47774/32.png) [@plaidshirtakos](https://community.postman.com/u/plaidshirtakos)\
**Post date:** [October 15, 2020, 6:09pm UTC](https://community.postman.com/t/postman-to-send-soap-request-with-file-attachment/16812/1 "2020-10-15T18:09:18Z")

</div>

I send POST request in `raw` tab , in XML format. File could be selected under `binary` , but unable to send both as a request. SOAP request in XML format and file attachment should be sent in the same request, just like in SoapUI.

---

<div class="post-metadata">

**Author:** ![bpricilla](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/bpricilla/32/6511_2.png) [@bpricilla](https://community.postman.com/u/bpricilla)\
**Post date:** [October 16, 2020, 1:43am UTC](https://community.postman.com/t/postman-to-send-soap-request-with-file-attachment/16812/2 "2020-10-16T01:43:29Z")

</div>

@plaidshirtakos Welcome to the community 👋

For SOAP, all requests should be only “POST”. Kindly explain in details what is your ask here 🙂

---

<div class="post-metadata">

**Author:** ![plaidshirtakos](https://avatars.discourse-cdn.com/v4/letter/p/e47774/32.png) [@plaidshirtakos](https://community.postman.com/u/plaidshirtakos)\
**Post date:** [October 16, 2020, 8:00am UTC](https://community.postman.com/t/postman-to-send-soap-request-with-file-attachment/16812/3 "2020-10-16T08:00:24Z")

</div>

So I’ve pasted SOAP envelope to raw field of Body. It needs to be POST request, because I would like to send it, but I can’t add attachment file.

 ![Screenshot_21](https://us1.discourse-cdn.com/getpostman/original/3X/3/f/3f829d0109ac3db1d464560453640513ae1c4955.png)

---

<div class="post-metadata">

**Author:** ![aditya031097](https://avatars.discourse-cdn.com/v4/letter/a/ecccb3/32.png) [@aditya031097](https://community.postman.com/u/aditya031097)\
**Post date:** [April 22, 2021, 3:03pm UTC](https://community.postman.com/t/postman-to-send-soap-request-with-file-attachment/16812/4 "2021-04-22T15:03:24Z")

</div>

In soapUI there is attachment section in which we can add file in .pdf format, the same way I want to attach a file in POSTMAN.  
Where shall i add this file in postman with body as raw/xml not form-data.

---

<div class="post-metadata">

**Author:** ![atural](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/atural/32/10991_2.png) [@atural](https://community.postman.com/u/atural)\
**Post date:** [January 29, 2022, 12:32pm UTC](https://community.postman.com/t/postman-to-send-soap-request-with-file-attachment/16812/5 "2022-01-29T12:32:21Z")

</div>

you can convert your pdf file to base64. In your method there should be a parameter which name is may be bulkBytes. Put the base 64 code inside this parameter and send your request. That will be success…

---

<div class="post-metadata">

**Author:** ![kvcsks](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/kvcsks/32/25527_2.png) [@kvcsks](https://community.postman.com/u/kvcsks)\
**Post date:** [August 31, 2023, 9:30am UTC](https://community.postman.com/t/postman-to-send-soap-request-with-file-attachment/16812/6 "2023-08-31T09:30:11Z")

</div>

How could I send large files? These are 50-100MB, so base64 encoded string would be too long.

---

<div class="post-metadata">

**Author:** ![harrymomment](https://avatars.discourse-cdn.com/v4/letter/h/eb8c5e/32.png) [@harrymomment](https://community.postman.com/u/harrymomment)\
**Post date:** [April 11, 2024, 9:48am UTC](https://community.postman.com/t/postman-to-send-soap-request-with-file-attachment/16812/7 "2024-04-11T09:48:51Z")

</div>

Hello i’m interested to get a solution for this topic please.

---

<div class="post-metadata">

**Author:** ![didka77](https://avatars.discourse-cdn.com/v4/letter/d/df788c/32.png) [@didka77](https://community.postman.com/u/didka77)\
**Post date:** [May 13, 2025, 5:53am UTC](https://community.postman.com/t/postman-to-send-soap-request-with-file-attachment/16812/8 "2025-05-13T05:53:13Z")

</div>

Hi all, I have a similar problem and seems this topic was never solved. Please can someone help?  
Ani idea about how to tsckle this issue?
