How to retrieve attachment data from HTTPS data post?

hi all,

one of our partner is posting an X12 data with a standard https header directly to our custom flow service that we have provided to them, and we only see the following parameters in the pipeline. we do not see the data any where in any parameter. what we see is that it has a word “attachment” in the parameter called Content-Disposition.

my question is how do we retrieve the data? is there any inbuilt webMethods service that we can use? please let me know.

Via 1.1 MY
contentlength 628
Date Tue 09, Jun 2009 21:59:28 GMT
contentType application/EDI-X12; name=997_test.txt
message-ID <1244584768347.166300@svamn14glbs-7k_te>
From partner email-ID
Subject 01045426558FTD;128004171844
MIME-Version 1.0
Content_Transfer-Encoding binary
Content-Disposition attachment; filename=JM_997_test.txt
EDIINT-Features CEM
X-Cyclone-To 01045426558FTD
X-Cyclone-From 128004171844
protocol http

Thanks in advance.

-rcd47

Why you want to use a custom service to receive edi content type data, when you have out of the box package and services to handle inbound edi document?

wm.EDIINT:receive service will take care of receiving, identifying and initial processing of edi doc, which than creates the bizdoc envelope, you can than invoke your custom service, for further processing as per your needs.

Please refer to webMethods_EDIINT_Module_User’s_Guide_6_5_2.pdf user guide, for a descriptive explanation.

the reason for using the custom service is that we first write the data to a file system and then a public queue picks up the file and then submits the data to TN.

will try your suggestion and let you know.

thank you for replying to my request.

:slight_smile:

-rcd47

the problem is that we are unable to store the stream in a pipeline and we also do not know in which object the data stream is coming in.

anyone can you please shed a light on this??

we wrote a java service which lists out all the incoming variables through https post… by which we could find out the variable name in which data is streamed…

we then converted it into string and wrote to the file…

thank you all…

-rcd47