Listener SMTP - edi attachement file - content type unrecognized

I have configured a SMTP port to receive email whith edi file attachement.
When I use the getTransportInfo service, the value of content type is multipart/mixed and not application/EDI.

I put in IS/lib/mime.types file the line “application/edi-x12 edi” and I restart the IS but it’s always the same thing, I haven’t the good value in the content type field.

What I must do to take into account the modification in the file mime.types ?

Plateforme : IS 6.5 (AIX), WmEDI 6.5.2

Thanks
Best regards,
Isabelle

What is the service input you set??Is it contentStream(object type)…please try with this input and see it extracts the content in streamtobytes and bytestostring steps.

Also generally EDI content-type is “application/EDIstream”

HTH,
RMG

I modified the IS/lib/mime.types file to put “application/EDIstream edi” instead of “application/edi-x12 edi”.

Moreover, the service is :

  • input/outup : contentStream (objet type) in input, nothing in outup
  • services :
    pub.flow:getTransportInfo
    pub.io:streamToBytes (contentStream is mapped in streamToBytes/stream)
    pub.string:bytesToString (streamToBytes/bytes is mapped in bytesToString/bytes)

In the second step, I have the error :
java.lang.ClassCastException
at pub.io.streamToBytes(io.java:77)

For information, the IS traces are :
54854]2007-05-03 18:43:58 GMT [ISP.0068.0013W] Error processing service: [ISS.0068.9006] Server Error:
[54853]2007-05-03 18:43:58 GMT [ISP.0090.0002V2] — END tracePipeline —
[54852]2007-05-03 18:43:58 GMT [ISP.0090.0008V2] 2 replyto[0] {java.lang.String} = 'xxx <xxx@xxxx.com>’
[54851]2007-05-03 18:43:58 GMT [ISP.0090.0008V2] 2 to[0] {java.lang.String} = 'xxx <xxx@xxxx.com>’
[54850]2007-05-03 18:43:58 GMT [ISP.0090.0008V2] 2 from[0] {java.lang.String} = 'xxx <xxx@xxxx.com>’
[54849]2007-05-03 18:43:58 GMT [ISP.0090.0008V2] 2 sentdate {java.lang.String} = ‘Thu May 03 18:43:57 GMT 2007’
[54848] boundary="----_=NextPart_001_01C78DB3.01EFFAFD"’
[54847]2007-05-03 18:43:58 GMT [ISP.0090.0008V2] 2 contenttype {java.lang.String} = 'multipart/mixed;
[54846]2007-05-03 18:43:58 GMT [ISP.0090.0008V2] 2 subject {java.lang.String} = ‘TR: test 41’
[54845]2007-05-03 18:43:58 GMT [ISP.0090.0008V2] 2 content {java.io.ByteArrayInputStream} = ‘java.io.ByteArrayInputStream@14fa448’
[54844]2007-05-03 18:43:58 GMT [ISP.0090.0008V2] 1 email {com.wm.util.Values} =>
[54843]2007-05-03 18:43:58 GMT [ISP.0090.0008V2] 1 protocol {java.lang.String} = ‘email’
[54842]2007-05-03 18:43:58 GMT [ISP.0090.0008V2] 0 transport {com.wm.util.Values} =>
[54841]2007-05-03 18:43:58 GMT [ISP.0090.0008V2] 0 contentStream {java.io.ByteArrayInputStream} = ‘java.io.ByteArrayInputStream@1a58c02’
[54840]2007-05-03 18:43:58 GMT [ISP.0090.0008V2] 0 level {java.lang.String} = ‘6’
[54839]2007-05-03 18:43:58 GMT [ISP.0090.0001V2] — START tracePipeline [03/05/07 18:43] —
[54838] boundary="----
=_nextpart_001_01c78db3.01effafd" Subject: IJN.temp:getMail
[54837]2007-05-03 18:43:58 GMT [ISP.0068.0026V2] Content type: multipart/mixed;

And the Email Port is configured with :
Package Name - WmRoot
Invoke service for each part of multipart message - No
Include email headers when passing message to content handler - No
Email body contains URL encoded input parameters - No

Regards,
Isabelle