PHP SoapClient supporting SOAP with Attachments (SwA)
A while back I had to interact with a PortaOne VOIP system via SOAP. In order to upload and download audio files (.au no less) I needed to support SOAP with Attachments. By the time I'd gotten to the audio piece I already had a full-fledged client library based around PHP's SoapClient. There was a solution available using NuSOAP however, I wasn't about to have one disheveled little turd amidst my shiny SOAPClient library!
That said I set out to implement SwA via native methods in PHP5. I pulled it off, however the code I have and the code shared here is very much hardcoded for my original purpose. The PortaOne system is built on top of Perl's SOAP::Lite module. It's no surprise that there are options left to the implementation in the SwA protocol so besides the hardcoding in this library it's not at all ready for general use...
I wrote an article that goes more in depth than the brief here.