Hi Derick,

> We'd need to split out the MIME handling support into perhaps it's own 
> component. I don't know how feasible that is -- I've little idea on how 
> SOAP deals with MIME as well - would you have a link to some summarized 
> information?

I need to have a look at the existing MIME code again and see if SOAP 
does require all the things there and if it wouldn't be less effort to 
duplicate some code and optimize it for the special purpose in the SOAP 
component.

My implementation is SOAP with Attachments. There is nothing really 
nice. I started with this: 
http://www.w3.org/TR/SOAP-attachments#SOAPMultipart

Besides SOAP with Attachments there is also MTOM: 
http://en.wikipedia.org/wiki/MTOM

> Which other encodings would you want? Quoted-printable doesn't really 
> work so well for 8-bit files. And it's also not safe to put raw 8-bit 
> data into either e-mail or XML as far as I know.

Amazon required 8-bit raw for XML attachments (at least it was the only 
solution that worked). And it would be maybe also necessary to have 
binary attachments for other files.

> I've a question for you here as well - would this sit on top of PHP's 
> SOAP extension, or something totally new? I'd prefer it actually if some 
> of this works went into improving the SOAP extension instead if 
> necessary and useful.

Yes it's on top of PHP's extension. I know it's not the best approach 
and it should be native functionality within the SOAP extension but I 
can't help with this as I don't know any C besides 'Hello World'. And 
it's at least better to have a PHP implementation then nothing.

The ultimate solution for PHP would be imo to have this extension in PHP 
core: http://wso2.org/projects/wsf/php as it already has a lot of 
features. I would have used it if I had been allowed to install it on 
the server. Then I coded the userland solution. I would like to share 
this code as it was really annoying for me to find out that I needed to 
do this for such a common thing. I'll go on with a possible ezcSoap 
component if you are interested, otherwise I publish the code somewhere 
else just as it is.

I'll look into the three issues with ezcMail MIME in August and file 
feature requests and maybe provide some patches.

Regards,
Andi
-- 
Components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/components

Reply via email to