cancel
Showing results for 
Search instead for 
Did you mean: 

File to Mail error

Former Member
0 Kudos

Hi,

I am doing file to mail scenario. I got an error

"failed to send mail: java.io.IOException: invalid content type for SOAP:

TEXT/HTML"..

How to solve.

regards,

Ansar.

Accepted Solutions (0)

Answers (1)

Answers (1)

bhavesh_kantilal
Active Contributor
0 Kudos

Ansar,

I guess adapter expects the content as APPLICATION/XML.

To change the SOAP content type in the mail adapter, Add the module "localejbs/AF_Modules/MessageTransformBean" before the standard module. Add the parameter name Transform.ContentType and make the value application/xml

Regards

Bhavesh

Former Member
0 Kudos

Hi Bhavesh,

I done like that but still it is coming...

This is the process of Communication channel

-


2006-12-29 11:42:46 Success Mail: Receiver adapter entered with qos ExactlyOnce

2006-12-29 11:42:46 Success Mail: calling the adpter for processing

2006-12-29 11:42:46 Success Mail: call failed

2006-12-29 11:42:46 Success Mail: sending a delivery error ack ...

2006-12-29 11:42:46 Success Mail: sent a delivery error ack

2006-12-29 11:42:46 Error Mail: error occured: java.io.IOException: invalid content type for SOAP: TEXT/HTML

2006-12-29 11:42:46 Error Exception caught by adapter framework: Failed to call the endpoint

2006-12-29 11:42:46 Error Delivery of the message to the application using connection AFW failed, due to: Failed to call the endpoint.

2006-12-29 11:42:46 Success The message status set to WAIT.

2006-12-29 11:42:46 Success The asynchronous message was successfully scheduled to be delivered at Fri Dec 29 11:47:46 GMT+05:30 2006.

regards,

Ansar.

bhavesh_kantilal
Active Contributor
0 Kudos

Ansar,

Instead of APPLICATION/XML in the adapter module, can you try the same with TEXT/HTML?

Regards

Bhavesh

Former Member
0 Kudos

Hi,

Thx bhavesh... My problem solved. I gone though some of the weblogs

(/people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address)

Then I found error. The reason I stuck is I put my URL "HTTP" insted of "SMTP" ...

regards,

Ansar.