Embedding a SOAP Client into a WordPress Plugin?

I would abstract the specific SOAP library away, so you can add support for more clients later. Similar to how WP_Http is a proxy for multiple HTTP implementations, and chooses depending on the server capabilities.

I must have played with some of these libraries before but I don’t remember which one. In general I prefer included PHP modules over external code, because they are more likely to be kept up-to-date and don’t require extra overhead (sometimes you need to bootstrap a framework to use one part of it).

It might be a good idea to create an answer for each library so we can add pros and cons to them. Or is this more generic question a better fit for the “real” Stack Overflow?

Leave a Comment