Skip to content

devexsolutions/soap-with-attachments

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

soap-with-attachments

PHP SoapClient supporting SOAP with Attachments (SwA)

Warning: This is example code, not a drop in library

You will need to modify it to your needs.

Overview

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...

Article

I wrote an article that goes more in depth than the brief here.

About

PHP SoapClient supporting SOAP with Attachments (SwA)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%