Oh I forgot to mention. I'd like us to implement this in Axis2. I guess we need a property to define whether we use the SOAP1.2 email binding or this binding.
Paul On 12/6/06, Paul Fremantle <[EMAIL PROTECTED]> wrote:
Hi I've been working with a consortium who want to be able to use smtp mail for SOAP1.2. The current SOAP 1.2 binding for email has a concern that the message is the main body of the email, and might be corrupted by spam or anti-virus filters that add text into the message. So the proposal that is being made is that we base64 encode the SOAP message as an attachment into the email. In addition there is a problem of routing the email to the correct service. There are several options here: 1. We could use one email address per service. However, this might be a little annoying for anyone who pays per email address, because this might be expensive. It also adds an overhead for management. 2. We could use the subject line for routing. Unfortunately subject headers are routinely updated or truncated by spam filters. 3. We could add our own SMTP header, but this might be stripped out. 4. We could use a MIME header. Content-Description seems perfectly acceptable. We like #4 the best. Now we also need a URL syntax for this to specify in the WSDL or as an EPR. We could create a new URL syntax (e.g. smtp:[EMAIL PROTECTED]/axis2/services/Version) but there already is a syntax: mailto. In order to capture the "path" to the service (e.g. /axis2/services/Version) we need to encode this into the mailto URL. If you read the mailto spec there is a way of encoding headers into the mailto URL, so I suggested that we could use this to capture the path information: mailto:[EMAIL PROTECTED]"/axis2/services/Version" This URL means include an SMTP header X-Service-Path: "/axis2/services/Version" Our spec would also say to copy that value over and add a mime-header Content-Description: "/axis2/services/Version" This has been written up here as a starting point (yes I know it needs work!) http://people.apache.org/~pzf/SMTPBase64Binding.html Paul -- Paul Fremantle VP/Technology, WSO2 and OASIS WS-RX TC Co-chair http://bloglines.com/blog/paulfremantle [EMAIL PROTECTED] "Oxygenating the Web Service Platform", www.wso2.com
-- Paul Fremantle VP/Technology, WSO2 and OASIS WS-RX TC Co-chair http://bloglines.com/blog/paulfremantle [EMAIL PROTECTED] "Oxygenating the Web Service Platform", www.wso2.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]