liip/LiipSoapRecorderBundle

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

Homepage:

Size: 56

Language: PHP

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

UNMAINTAINED

This bundle is no longer maintained. Feel free to fork it if needed.

LiipSoapRecorderBundle Build Status

This bundle provide an easy way to record SOAP communications. Typical usage could be:

Installation
  1. Install this bundle like any other SF2 bundle (Composer or git submodule install + Enable it in the kernel)
  2. Replace the base class SoapClient by the new Liip\SoapRecorderBundle\Client\RecordableSoapClient
Configuration

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
Usage

To use the bundle, you can play with some config parameters:

Usage outside Symfony2

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:

  1. Replace your base class SoapClient by the new Liip\SoapRecorderBundle\Client\RecordableSoapClient
  2. Start recording by calling:
ecordableSoapClient::setRecordFolders('/tmp/request', '/tmp/response', '/tmp/wsdl');
ecordableSoapClient::startRecording();
/ Call your webservice like usual`
  1. Start playing your records
ecordableSoapClient::setFetchingMode(RecordableSoapClient::FETCHING_LOCAL_FIRST);
/ Call your webservice like usual
Contributing

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: Build Status

Requirements

PHP 5.3

Authors
License

LiipSoapRecorderBundle is licensed under the MIT License - see the LICENSE file for details


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.