# EDIINT  Sending custom AS2 Headers

**URL:** <https://techcommunity.softwareag.com/t/ediint-sending-custom-as2-headers/107764>\
**Category:** Forum\
**Tags:** EDI\
**Created:** [May 1, 2003, 6:27pm UTC](https://techcommunity.softwareag.com/t/ediint-sending-custom-as2-headers/107764 "2003-05-01T18:27:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guest](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/guest/32/75_2.png) [@Guest](https://techcommunity.softwareag.com/u/Guest)\
**Post date:** [May 1, 2003, 6:27pm UTC](https://techcommunity.softwareag.com/t/ediint-sending-custom-as2-headers/107764/1 "2003-05-01T18:27:08Z")

</div>

Dear wmusers,  
My webMethods application using EDIINT module to receive and send EDI over internet through IBM Info exchange.

Could you help me how to send send custom AS2 header(Header name “Subject” and value =“Qualifier+InterchangeID” )  
Like Subject = Qualifier+InterchangeID in the header.

MailTo: [mk\_subhu@hotmail.com](mailto:mk_subhu@hotmail.com)

Thank you,  
Subhu.  
Ph:616-787-4993.  
Cell:978-985-3908.

---

<div class="post-metadata">

**Author:** ![hey\_rajan](https://avatars.discourse-cdn.com/v4/letter/h/dbc845/32.png) [@hey\_rajan](https://techcommunity.softwareag.com/u/hey_rajan)\
**Post date:** [April 30, 2005, 8:57am UTC](https://techcommunity.softwareag.com/t/ediint-sending-custom-as2-headers/107764/2 "2005-04-30T08:57:28Z")

</div>

I am having the same problem. I am working on Proof of Concept for EDIINT AS2 communication with one of our Trading Partner.Till now I am successful in sending and recieving XML messages over HTTP using EDIINT. Our TP is using BTrade EDIINT Software and they are asking us to send name of the document as a subject in EDIINT Header.I modified the schema of EDIINT message to include subject but it doesnt work.  
EDIINT gurus, Any ideas how to do this ?

---

<div class="post-metadata">

**Author:** ![hey\_rajan](https://avatars.discourse-cdn.com/v4/letter/h/dbc845/32.png) [@hey\_rajan](https://techcommunity.softwareag.com/u/hey_rajan)\
**Post date:** [May 6, 2005, 2:16am UTC](https://techcommunity.softwareag.com/t/ediint-sending-custom-as2-headers/107764/3 "2005-05-06T02:16:15Z")

</div>

Finally solved this problem with the help of webMethods Technical Support. webMethods take on this one…

We don’t support that ‘Subject’ header. This must  
be some custom header.  
With that said, you can however have a workaround. You can easily modify our  
public wm.EDIINT:send service so that all EDIINT messages sent outbound will  
have that particular header (or any others you wish to add).  
Here is how it can be done:

(1) edit the wm.EDIINT:send service in the Developer;

(2) in the 2nd Sequence at top level (“prepare to submit to TN”), under 1st  
Branch (/protocol), look at the Default child.

(3) In the Pipeline Out, there is a record called  
‘mimeHeader’ with an ‘AS2-From’ and ‘AS2-To’ members. You can create a new  
member/child called ‘Subject’, and hard-code or map in the value you desire  
here.

Notes:  
-We would suggest making a backup copy of the original send service before editing it;  
-always make note of any public services that you edit, as we typically  
advise against it, but for something like this, it is justified.

---

<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:04pm UTC](https://techcommunity.softwareag.com/t/ediint-sending-custom-as2-headers/107764/4 "2021-04-02T15:04:54Z")

</div>


