# Create user defined EDIINT header fields

**URL:** <https://techcommunity.softwareag.com/t/create-user-defined-ediint-header-fields/108449>\
**Category:** Forum\
**Tags:** EDI\
**Created:** [May 23, 2005, 9:54pm UTC](https://techcommunity.softwareag.com/t/create-user-defined-ediint-header-fields/108449 "2005-05-23T21:54:50Z")\
**Posts on this page:** 6\
**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 23, 2005, 9:54pm UTC](https://techcommunity.softwareag.com/t/create-user-defined-ediint-header-fields/108449/1 "2005-05-23T21:54:50Z")

</div>

Hi

I have a requirement to transfer image files by EDIINT and trasfer the file name somewhere in the header.  
I could not figure out how to do it using the flowservices in webMethods packages.  
Any help with this would he greatly appreciated !  
Best regards  
Rajoy

---

<div class="post-metadata">

**Author:** ![taro1](https://avatars.discourse-cdn.com/v4/letter/t/ce73a5/32.png) [@taro1](https://techcommunity.softwareag.com/u/taro1)\
**Post date:** [May 23, 2005, 11:19pm UTC](https://techcommunity.softwareag.com/t/create-user-defined-ediint-header-fields/108449/2 "2005-05-23T23:19:33Z")

</div>

Rajoy,  
You can send the image files as content of the EDIINT outbound message.  
Try the following for file name with the “data content-type” as:

Content-type;name=YOURFILENAME  
e.g.,  
application/octet-stream;name=myimagefile

~tS

---

<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 27, 2005, 8:39am UTC](https://techcommunity.softwareag.com/t/create-user-defined-ediint-header-fields/108449/3 "2005-05-27T08:39:56Z")

</div>

Hi Tahira,

Once the outbound msg hits the destination (another webMethods instance running EDIINT receive), how can we extract the value of var “name” you suggested to add? Should I just do a sub-string or is there any other more elegant way to do it?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![taro1](https://avatars.discourse-cdn.com/v4/letter/t/ce73a5/32.png) [@taro1](https://techcommunity.softwareag.com/u/taro1)\
**Post date:** [May 27, 2005, 6:26pm UTC](https://techcommunity.softwareag.com/t/create-user-defined-ediint-header-fields/108449/4 "2005-05-27T18:26:24Z")

</div>

Waldes,  
For webMethods substring is only way I am aware of. But for other packages as Cyclone, GXS etc that act only as AS2 Hubs this content-type and filename are used to store the data in the appropriate directory (edi, binary etc) with this filename.  
~tS

---

<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:** [July 8, 2005, 7:35pm UTC](https://techcommunity.softwareag.com/t/create-user-defined-ediint-header-fields/108449/5 "2005-07-08T19:35:50Z")

</div>

Hi Tahira  
Thank you for your suggestion, it worked fine for sending the message. But at the receiving webmthods , I get an error “com.wm.app.b2b.server.ServiceException: getBodyPart not supported on non multipart message”  
The only thing I did differently was supply a gif file to contecnt and define content type as “application/octet-stream;name=podscan.jpg” to the wm.ediint.send flowswervice.

Do I need to defne a special content handler or something to handle the content type ? … any idea ??  
thanks in advance  
rajoy

---

<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/create-user-defined-ediint-header-fields/108449/6 "2021-04-02T15:05:14Z")

</div>


