Hi, This is done by definition. Mail transport listener has been written to tally with spec [1]. This spec strictly prohibits of using SOAP11. There is no interoperable way to set some of the header parameters for SOAP 11. I believe it's time to make some amendments to spec to cope with all user cases. Please do create a JIRA.
Thank you! Saminda Reference: [1]. http://people.apache.org/~pzf/SMTPBase64Binding.html On Thu, May 29, 2008 at 9:59 AM, Deepal jayasinghe <[EMAIL PROTECTED]> wrote: > Please create a JIRA. > > Thank you! > Deepal > > Hi Team, >> I have to send my SOAP-messages with SOAP11. But the server does not >> accept mails with the content-type text/xml: >> >> [ERROR] According to the mail sepec, mail transport should support only >> application/soap+xml >> [ERROR] Error in SimpleMailListener - processing mail >> org.apache.axis2.AxisFault: According to the mail sepec, mail transport >> should support only application/soap+xml >> at >> org.apache.axis2.transport.mail.SimpleMailListener.buildSOAPEnvelope(SimpleMailListener.java:470) >> ... >> >> >> >> Unfortunately this check is hardcoded into the SimpleMailListener: >> >> >> >> if (contentType.indexOf(SOAP12Constants.SOAP_12_CONTENT_TYPE) > -1) { >> TransportUtils >> >> .processContentTypeForAction(contentType, msgContext); >> } else {... >> >> Is there any way around or did I simply miss some property to be set? >> >> Thanks for helping, >> Christopher >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Saminda Abeyruwan Senior Software Engineer WSO2 Inc. - www.wso2.org
