# How to send a XML using the AS2

**URL:** <https://techcommunity.softwareag.com/t/how-to-send-a-xml-using-the-as2/109945>\
**Category:** Forum\
**Tags:** EDI\
**Created:** [October 27, 2009, 8:19am UTC](https://techcommunity.softwareag.com/t/how-to-send-a-xml-using-the-as2/109945 "2009-10-27T08:19:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Genaro](https://avatars.discourse-cdn.com/v4/letter/g/839c29/32.png) [@Genaro](https://techcommunity.softwareag.com/u/Genaro)\
**Post date:** [October 27, 2009, 8:19am UTC](https://techcommunity.softwareag.com/t/how-to-send-a-xml-using-the-as2/109945/1 "2009-10-27T08:19:05Z")

</div>

Hi All:

I need to send a XML file to a partner, the file will be created by other system and put it on a local directory, the service need to find the file and send to our partner using the AS2 protocol.

Any of you have an example or documentation of this type of requirement? I really appreciate any help on this.

Regards,

---

<div class="post-metadata">

**Author:** ![gupta\_r.17495](https://avatars.discourse-cdn.com/v4/letter/g/9fc348/32.png) [@gupta\_r.17495](https://techcommunity.softwareag.com/u/gupta_r.17495)\
**Post date:** [October 27, 2009, 7:43pm UTC](https://techcommunity.softwareag.com/t/how-to-send-a-xml-using-the-as2/109945/2 "2009-10-27T19:43:38Z")

</div>

You can use either WmPublic pub.client.ftp folder services to ftp:get the file or if the files are accessible/shared to the IS directory locally then you can use pub.file:getFile (loadAs=stream) and then call EDIINT:send (WmEDIINT) service with data/contentType=“application/XML” and map data/stream along with setting other required input params.

Also review the “6-5-2\_EDIINT\_Module\_Users\_Guide.pdf” about EDIINT:send and more information about AS2 protocol.

HTH,  
RMG

---

<div class="post-metadata">

**Author:** ![Genaro](https://avatars.discourse-cdn.com/v4/letter/g/839c29/32.png) [@Genaro](https://techcommunity.softwareag.com/u/Genaro)\
**Post date:** [October 28, 2009, 12:25am UTC](https://techcommunity.softwareag.com/t/how-to-send-a-xml-using-the-as2/109945/3 "2009-10-28T00:25:03Z")

</div>

Hi RMG,

Thanks for your quick response, I will follow your suggestions and I will check the pdf file to learn more about this part.

Regards,  
Genaro

---

<div class="post-metadata">

**Author:** ![gupta\_r.17495](https://avatars.discourse-cdn.com/v4/letter/g/9fc348/32.png) [@gupta\_r.17495](https://techcommunity.softwareag.com/u/gupta_r.17495)\
**Post date:** [October 28, 2009, 2:20am UTC](https://techcommunity.softwareag.com/t/how-to-send-a-xml-using-the-as2/109945/4 "2009-10-28T02:20:21Z")

</div>

your welcome!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:05pm UTC](https://techcommunity.softwareag.com/t/how-to-send-a-xml-using-the-as2/109945/5 "2021-04-02T15:05:57Z")

</div>


