Name: LiipSoapRecorderBundle
Owner: Liip
Description: [DEPRECATED] Recorder/Player for SOAP communications
Created: 2012-12-04 17:40:08.0
Updated: 2017-12-05 09:37:53.0
Pushed: 2017-12-05 09:37:38.0
Size: 56
Language: PHP
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This bundle is no longer maintained. Feel free to fork it if needed.
This bundle provide an easy way to record SOAP communications. Typical usage could be:
By default the bundle does nothing, to activate it, you just need to configure it:
_soap_recorder:
record: true # boolean, activate or not the recording
fetching_mode: local_first # can be remote, local_first or local_only
request_folder: /tmp/soap_request # where to store the XML request
response_folder: /tmp/soap_response # where to store the XML response
wsdl_folder: /tmp/soap_wsdl # where to store the WSDL of the webservice
enable_profiler: true # boolean, active or not the profiler
die_on_error: false
To use the bundle, you can play with some config parameters:
generated exception is replace by an AccessDeniedException who masked the original one
The heart of the bundle is the class Liip\SoapRecorderBundle\Client\RecordableSoapClient. This class is independent, so you can use it outside of the Bundle, in any PHP 5.3 project:
ecordableSoapClient::setRecordFolders('/tmp/request', '/tmp/response', '/tmp/wsdl');
ecordableSoapClient::startRecording();
/ Call your webservice like usual`
ecordableSoapClient::setFetchingMode(RecordableSoapClient::FETCHING_LOCAL_FIRST);
/ Call your webservice like usual
If you would like to contribute, just go on the project page: https://github.com/liip/LiipSoapRecorderBundle, fork it and providing PRs.
This project comes with a functional test suite, just read the Tests/README.md for more information.
Travis CI is also running for continuous integration tests:
PHP 5.3
LiipSoapRecorderBundle is licensed under the MIT License - see the LICENSE file for details