SOAP with Symfony
Translation of the original in Catalan. Read it in: CatalàCastellano

A few months ago I implemented an application with quite a few SOAP connections both at client and server level against .NET applications and SOAP applications made in Symfony itself. Although they work quite well, I have to admit that PHP's SOAP implementation up to version 5.2.0, which is the last one I have tried, gives some problems. Not anymore when it communicates with .NET but when it talks to itself. I can assure you that it is not the code's fault, because the client server structure I am talking about did more than 200 transactions a day of which some 10 or 20 failed, with errors along the lines of Error Fetching http headers. In fact, while investigating I found the odd internal PHP BUG that discussed the problem, but according to them in PHP it was already fixed. Well, they kept happening to me. Finally what I did to solve it was to remove SOAP everywhere I could, right now I don't have a single error of that kind and some 200 transactions a day or more are still being made.
Despite this not overly good experience, I still think the idea is excellent and that we have to keep working with it. Well then, when I implemented the SOAP server via Symfony I did not find any kind of documentation that talked about how to do it properly. So I improvised and spread the code between the actions and the templates with as good judgement as I could, both to publish the WSDL file and to publish the SOAP service. Now version 1.0 of Symfony is about to come out and curiously enough a snippet has also been published that talks about how to publish a SOAP service from Symfony. So, I have to admit that the implementation of the idea in this snippet is much better than mine. Therefore, I recommend it: Code Snippets: Soap server (local).