# How to Extract the EDIINT Payload content comes as a "application/octet-stream"

**URL:** <https://techcommunity.softwareag.com/t/how-to-extract-the-ediint-payload-content-comes-as-a-application-octet-stream/109611>\
**Category:** Forum\
**Tags:** EDI\
**Created:** [June 10, 2008, 1:03pm UTC](https://techcommunity.softwareag.com/t/how-to-extract-the-ediint-payload-content-comes-as-a-application-octet-stream/109611 "2008-06-10T13:03:50Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![shankarrb](https://avatars.discourse-cdn.com/v4/letter/s/ecb155/32.png) [@shankarrb](https://techcommunity.softwareag.com/u/shankarrb)\
**Post date:** [June 10, 2008, 1:03pm UTC](https://techcommunity.softwareag.com/t/how-to-extract-the-ediint-payload-content-comes-as-a-application-octet-stream/109611/1 "2008-06-10T13:03:50Z")

</div>

Hi All,

One of our Partner is sending an EDIINT Payload content as a “application/octet-stream” , which contains a Flatfile data, and  
I can’t able to extract that content, because as builtin service only supports for XML and EDIIFACT, So Please guide me how to extract the Payload from that Transaction and Post toTN once again,

Regards  
Shankar R B

---

<div class="post-metadata">

**Author:** ![reamon](https://avatars.discourse-cdn.com/v4/letter/r/b77776/32.png) [@reamon](https://techcommunity.softwareag.com/u/reamon)\
**Post date:** [June 10, 2008, 9:35pm UTC](https://techcommunity.softwareag.com/t/how-to-extract-the-ediint-payload-content-comes-as-a-application-octet-stream/109611/2 "2008-06-10T21:35:43Z")

</div>

Review the EDIINT module documentation for handling EDIINT interactions.

---

<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:** [June 10, 2008, 11:41pm UTC](https://techcommunity.softwareag.com/t/how-to-extract-the-ediint-payload-content-comes-as-a-application-octet-stream/109611/3 "2008-06-10T23:41:09Z")

</div>

Before you extract ,check submit it to TN option on the EDIINT admin page and that way it will extract the payload and in the pipeline bizdoc/content will have the data content for your further processing.

Refer the EDIINT userguide about more info on this submit option…

HTH,  
RMG

---

<div class="post-metadata">

**Author:** ![shankarrb](https://avatars.discourse-cdn.com/v4/letter/s/ecb155/32.png) [@shankarrb](https://techcommunity.softwareag.com/u/shankarrb)\
**Post date:** [June 11, 2008, 10:33am UTC](https://techcommunity.softwareag.com/t/how-to-extract-the-ediint-payload-content-comes-as-a-application-octet-stream/109611/4 "2008-06-11T10:33:47Z")

</div>

Hi RMG,

Alredy submit it to TN option on the EDIINT admin page is checked,  
But it will only extract content type application/XML or application  
edifact,  
If it is other than XML or EDIFACT then we have to write a customized service to handle that, and we have to provide fully quallifed name of respective service on EDIINT Admin page,

```
  But the Problem is in wm.EDIINT.rules:processPayload service,
       when the content type is other than XMl or ediifact,
           it will do a SPAWN to customized service, 
               without passing [B]BIZDOC as INPUT,[/b] 

```

Please guide me, if someone has come with this issue,

Regards  
Shankar R B

---

<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:** [June 11, 2008, 8:37pm UTC](https://techcommunity.softwareag.com/t/how-to-extract-the-ediint-payload-content-comes-as-a-application-octet-stream/109611/5 "2008-06-11T20:37:08Z")

</div>

Did you enquired with your TP or ask them to send application/x-wmflatfile as payload content type to handle ffdata??

Is that data is related to pdf or image file??

HTH,  
RMG

---

<div class="post-metadata">

**Author:** ![stepheny](https://avatars.discourse-cdn.com/v4/letter/s/41988e/32.png) [@stepheny](https://techcommunity.softwareag.com/u/stepheny)\
**Post date:** [May 15, 2010, 3:31am UTC](https://techcommunity.softwareag.com/t/how-to-extract-the-ediint-payload-content-comes-as-a-application-octet-stream/109611/6 "2010-05-15T03:31:48Z")

</div>

All,  
I am getting a UCS 4010 875 document. What would be the content type for that if the partner is posting using AS2 communication ? Do i have to write a seperate EDIINT processing service or will the service in EDIINT package works ?

Thanks

---

<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:** [May 17, 2010, 8:08pm UTC](https://techcommunity.softwareag.com/t/how-to-extract-the-ediint-payload-content-comes-as-a-application-octet-stream/109611/7 "2010-05-17T20:08:01Z")

</div>

By default EDIINT/Module processing service should take care of payload extraction and pls make sure TP send content-type=“application/edi-x12” (exact same thing).Even when you send outbound EDI,you have to set same thing in the EDIINT:send service.

HTH,  
RMg

---

<div class="post-metadata">

**Author:** ![Mary\_Tillman](https://avatars.discourse-cdn.com/v4/letter/m/3e96dc/32.png) [@Mary\_Tillman](https://techcommunity.softwareag.com/u/Mary_Tillman)\
**Post date:** [May 19, 2010, 11:47pm UTC](https://techcommunity.softwareag.com/t/how-to-extract-the-ediint-payload-content-comes-as-a-application-octet-stream/109611/8 "2010-05-19T23:47:01Z")

</div>

You can extract the application/octet-stream payload by creating a custom service. You enter the name of this service in the EDIINT Configuration User Process Payload Service parm. The wm.EDIINT:processPayload service will execute this custom service if application is not XML, X12, or EDIFACT. You can invoke the getContentPartData to get the payload content, mapping output to ffdata to invoke the routeFlatFile service.

---

<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:** [May 20, 2010, 12:51am UTC](https://techcommunity.softwareag.com/t/how-to-extract-the-ediint-payload-content-comes-as-a-application-octet-stream/109611/9 "2010-05-20T00:51:12Z")

</div>

Thanks for stepping up tillman…

But new issue which Stepheny posted is with Inbond UCS document (subset of X12) EDIINT module can be handled, if the TP sends content-type=application/edi-x12 or application/EDI via AS2

Please share your comments on this also.

TIA,  
RMg

---

<div class="post-metadata">

**Author:** ![Mary\_Tillman](https://avatars.discourse-cdn.com/v4/letter/m/3e96dc/32.png) [@Mary\_Tillman](https://techcommunity.softwareag.com/u/Mary_Tillman)\
**Post date:** [May 20, 2010, 9:41pm UTC](https://techcommunity.softwareag.com/t/how-to-extract-the-ediint-payload-content-comes-as-a-application-octet-stream/109611/10 "2010-05-20T21:41:16Z")

</div>

I’m unable to answer the UCS question as I haven’t worked with that. We are at EDIINT 6.5.2 and the only content types that are being handled automatically appear to be xml, edi-x12, and edifact. I suggest trying edi-x12 to see how that is handled.

---

<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:** [May 20, 2010, 9:47pm UTC](https://techcommunity.softwareag.com/t/how-to-extract-the-ediint-payload-content-comes-as-a-application-octet-stream/109611/11 "2010-05-20T21:47:49Z")

</div>

Thanks Tim.

Stepheny,

Any resolution/update on your issue with using appropriate content-type?

HTH,  
RMG

---

<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-extract-the-ediint-payload-content-comes-as-a-application-octet-stream/109611/12 "2021-04-02T15:05:46Z")

</div>


