background preloader

Symfony2

Facebook Twitter

Testons nos web services SOAP en Symfony 2 « Fabien Pomerol. Aide mémoire twig. Testing Web Services: What You Need To Know- Page 2. Topic Description By Andre Yee, VP, NFR Security , 11/17/2003 Print this article Email this article Talk Back!

Testing Web Services: What You Need To Know- Page 2

Write to Editor Finally, the applicability of Web services in an inter-enterprise SOA model introduces new dimensions of functional testing. Figure 1- Web Services "Publish-Find-Bind" Relationship In addition, validation of end-to-end transactions is significantly more difficult in the SOA system due to the difficulty in tracking message routes through intermediaries. Best Practices for Testing Web Services Based on our discussion about the differences in Web services testing, it is reasonable to assume that current testing methodologies should be extended to support the use of Web services in an SOA solution. Practice #1 – Proactively Establish Service Level Agreements The inter-enterprise SOA system spans multiple stakeholders and intermediaries. Practice # 2 – Perform Component-Level Validation and Benchmarking Practice #3 - Stress Testing is Essential. Unit and Functional Testing with Symfony2.

Discover 1126 bundles for Symfony2. Collection of symfony framework tools - Symfohub: useful libs for symfony frameworks. Static.zend.com/topics/ZF-et-Symfony.pdf. Simple SOAP client with wsdl2php using WSDL. Nusoap used to be my favourite php toolkit for SOAP communication. But I was struggling a lot with it to make a simple client from the wsdl file. I really liked the way .NET SOAP modules parse the wsdl in a second and give you classes that you can use in your code.

So why not having the same thing in php? Luckily for me somebody thought of it first. Enter wsdl2php. So go ahead and download the latest version from sourceforge. How to Create a SOAP Web Service in a Symfony2 Controller (2.0. Setting up a controller to act as a SOAP server is simple with a couple tools. You must, of course, have the PHP SOAP extension installed. As the PHP SOAP extension can not currently generate a WSDL, you must either create one from scratch or use a 3rd party generator. Note There are several SOAP server implementations available for use with PHP. Zend SOAP and NuSOAP are two examples. SOAP works by exposing the methods of a PHP object to an external entity (i.e. the person using the SOAP service).

Next, you can train Symfony to be able to create an instance of this class. My First RESTful Web Service with Symfony2 Part I. I want to create a simple Resftul Web service for reading data in JSON format.

My First RESTful Web Service with Symfony2 Part I

On part I I´ll discuss the basics on how to configure the web service on part II I´ll discuss how to introduce pagination to the web service. Requirements: Anonymation – blog – développement et architecture web. L’activité autour de Symfony 2 est très importante depuis quelques mois.

anonymation – blog – développement et architecture web

Certaines décisions concernant l’architecture du framework et de ses composants devaient être prises avant la phase de stabilisation pour éviter de traîner des casseroles dans les belles années à venir pour l’outil. Heureusement, je pense pouvoir dire sans trop me tromper que le framework est entré dans une véritable phase de stabilisation et que la core team et les contributeurs travaillent d’arrache pied pour l’arrivée du Symfony Live 2011 à Paris. Ce qui me permet de démarrer une série d’articles sur Symfony 2, dont la première partie concernera le MVC tel qu’il est introduit dans le framework. Introduction Une introduction logique pour analyser l’implémentation du MVC et de suivre le parcours d’une requête HTTP. Cheminement d’une requête HTTP : diagramme Le chapitre pré-cité étant très bien écrit, je n’ai rien à y ajouter, d’autant plus que ça ne serait pas mieux raconté que part un développeur concerné. Addendum. Tutoriel pour améliorer vos applications Symfony2.

Ce tutoriel fait suite à l'article intitulé "Créer sa première application web en PHP avec Symfony2" au cours duquel vous avez pu découvrir le framework Symfony2 et ses grands principes de fonctionnement.

Tutoriel pour améliorer vos applications Symfony2

Si vous ne l'avez pas encore lu, je vous invite à le parcourir dès maintenant car nous allons poursuivre le développement de l'application "Filmothèque" créée précédemment. Au cours de cet article, nous allons voir comment améliorer notre application pour parvenir à un site web complet et prêt à être mis en ligne. Nous travaillerons sur la mise en page grâce à l'héritage des templates Twig, à l'insertion d'images et de styles CSS. Nous perfectionnerons les formulaires avec des labels, des messages d'erreur et une disposition personnalisés. Nous aborderons ensuite les notions d'Ajax pour augmenter l'interactivité utilisateur et de traduction pour une interface multilingue.

V2. Fabien.potencier.org/media/talk/2008/symfony-camp-2008-beyond-1-2.pdf. Templating Engines in PHP. This blog post is not for the faint-hearted!

Templating Engines in PHP

Some people will strongly disagree with me and some others will probably want to kill me at the upcoming Zend Conference. And if starting an argument in the comments can help you feel better, please feel free to do so. If you want to have a more advanced discussion on this topic, vote for my talk at the Zend UnConference. So, you think PHP is a templating engine? So did I... for a very long time. For several years now, I have been promoting web development best practices, and one of them is the separation of concerns. And a template language is something that helps you to write templates that respects this separation of concerns.

So, when I asked a few days ago about the best and popular templating engines in PHP on Twitter, some people naturally answered "PHP" itself. Why PHP is not (anymore) a good template language? Why do people still think PHP is a templating engine? <! Concision The PHP language is verbose. {{ var }} {{ var|escape }} <? <! Symfony2: 30 astuces et bonnes pratiques.