diff --git a/WebServiceBundle.php b/BeSimpleSoapBundle.php similarity index 70% rename from WebServiceBundle.php rename to BeSimpleSoapBundle.php index 31c1a88..e6c692d 100644 --- a/WebServiceBundle.php +++ b/BeSimpleSoapBundle.php @@ -1,6 +1,6 @@ * @@ -8,19 +8,19 @@ * with this source code in the file LICENSE. */ -namespace Bundle\WebServiceBundle; +namespace BeSimple\SoapBundle; -use Bundle\WebServiceBundle\DependencyInjection\Compiler\WebServiceResolverPass; +use BeSimple\SoapBundle\DependencyInjection\Compiler\WebServiceResolverPass; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\HttpKernel\Bundle\Bundle; /** - * WebServiceBundle. + * BeSimpleSoapBundle. * * @author Christian Kerl */ -class WebServiceBundle extends Bundle +class BeSimpleSoapBundle extends Bundle { public function build(ContainerBuilder $container) { @@ -28,4 +28,4 @@ class WebServiceBundle extends Bundle $container->addCompilerPass(new WebServiceResolverPass()); } -} \ No newline at end of file +} diff --git a/Controller/SoapWebServiceController.php b/Controller/SoapWebServiceController.php index be8c747..8449470 100644 --- a/Controller/SoapWebServiceController.php +++ b/Controller/SoapWebServiceController.php @@ -1,6 +1,6 @@ * @@ -8,10 +8,10 @@ * with this source code in the file LICENSE. */ -namespace Bundle\WebServiceBundle\Controller; +namespace BeSimple\SoapBundle\Controller; -use Bundle\WebServiceBundle\Soap\SoapRequest; -use Bundle\WebServiceBundle\Soap\SoapResponse; +use BeSimple\SoapBundle\Soap\SoapRequest; +use BeSimple\SoapBundle\Soap\SoapResponse; use Symfony\Component\DependencyInjection\ContainerAware; use Symfony\Component\HttpFoundation\Response; @@ -29,22 +29,22 @@ class SoapWebServiceController extends ContainerAware protected $soapServer; /** - * @var \Bundle\WebServiceBundle\Soap\SoapRequest + * @var \BeSimple\SoapBundle\Soap\SoapRequest */ protected $soapRequest; /** - * @var \Bundle\WebServiceBundle\Soap\SoapResponse + * @var \BeSimple\SoapBundle\Soap\SoapResponse */ protected $soapResponse; /** - * @var \Bundle\WebServiceBundle\ServiceBinding\ServiceBinder + * @var \BeSimple\SoapBundle\ServiceBinding\ServiceBinder */ protected $serviceBinder; /** - * @return \Bundle\WebServiceBundle\Soap\SoapResponse + * @return \BeSimple\SoapBundle\Soap\SoapResponse */ public function callAction($webservice) { @@ -146,7 +146,7 @@ class SoapWebServiceController extends ContainerAware } /** - * @return \Bundle\WebServiceBundle\Soap\SoapRequest + * @return \BeSimple\SoapBundle\Soap\SoapRequest */ public function getRequest() { @@ -154,7 +154,7 @@ class SoapWebServiceController extends ContainerAware } /** - * @return \Bundle\WebServiceBundle\Soap\SoapResponse + * @return \BeSimple\SoapBundle\Soap\SoapResponse */ public function getResponse() { diff --git a/Converter/ConverterRepository.php b/Converter/ConverterRepository.php index 536a654..3a3e1f6 100644 --- a/Converter/ConverterRepository.php +++ b/Converter/ConverterRepository.php @@ -1,6 +1,6 @@ * @@ -8,7 +8,7 @@ * with this source code in the file LICENSE. */ -namespace Bundle\WebServiceBundle\Converter; +namespace BeSimple\SoapBundle\Converter; use Symfony\Component\DependencyInjection\ContainerInterface; diff --git a/Converter/TypeConverterInterface.php b/Converter/TypeConverterInterface.php index 4945f8e..ae74ed3 100644 --- a/Converter/TypeConverterInterface.php +++ b/Converter/TypeConverterInterface.php @@ -1,6 +1,6 @@ * @@ -8,10 +8,10 @@ * with this source code in the file LICENSE. */ -namespace Bundle\WebServiceBundle\Converter; +namespace BeSimple\SoapBundle\Converter; -use Bundle\WebServiceBundle\Soap\SoapRequest; -use Bundle\WebServiceBundle\Soap\SoapResponse; +use BeSimple\SoapBundle\Soap\SoapRequest; +use BeSimple\SoapBundle\Soap\SoapResponse; /** * @author Christian Kerl diff --git a/Converter/TypeRepository.php b/Converter/TypeRepository.php index 6946547..2167a49 100644 --- a/Converter/TypeRepository.php +++ b/Converter/TypeRepository.php @@ -1,6 +1,6 @@ * @@ -8,12 +8,12 @@ * with this source code in the file LICENSE. */ -namespace Bundle\WebServiceBundle\Converter; +namespace BeSimple\SoapBundle\Converter; -use Bundle\WebServiceBundle\ServiceDefinition\ServiceDefinition; -use Bundle\WebServiceBundle\Util\Assert; -use Bundle\WebServiceBundle\Util\QName; -use Bundle\WebServiceBundle\Util\String; +use BeSimple\SoapBundle\ServiceDefinition\ServiceDefinition; +use BeSimple\SoapBundle\Util\Assert; +use BeSimple\SoapBundle\Util\QName; +use BeSimple\SoapBundle\Util\String; /** * @author Christian Kerl diff --git a/Converter/XopIncludeTypeConverter.php b/Converter/XopIncludeTypeConverter.php index 39d6e2f..fc5a9da 100644 --- a/Converter/XopIncludeTypeConverter.php +++ b/Converter/XopIncludeTypeConverter.php @@ -1,6 +1,6 @@ * @@ -8,11 +8,11 @@ * with this source code in the file LICENSE. */ -namespace Bundle\WebServiceBundle\Converter; +namespace BeSimple\SoapBundle\Converter; -use Bundle\WebServiceBundle\Soap\SoapRequest; -use Bundle\WebServiceBundle\Soap\SoapResponse; -use Bundle\WebServiceBundle\Util\String; +use BeSimple\SoapBundle\Soap\SoapRequest; +use BeSimple\SoapBundle\Soap\SoapResponse; +use BeSimple\SoapBundle\Util\String; /** * @author Christian Kerl diff --git a/DependencyInjection/WebServiceExtension.php b/DependencyInjection/BeSimpleSoapExtension.php similarity index 93% rename from DependencyInjection/WebServiceExtension.php rename to DependencyInjection/BeSimpleSoapExtension.php index 68afc93..f03810f 100644 --- a/DependencyInjection/WebServiceExtension.php +++ b/DependencyInjection/BeSimpleSoapExtension.php @@ -1,6 +1,6 @@ * @@ -8,7 +8,7 @@ * with this source code in the file LICENSE. */ -namespace Bundle\WebServiceBundle\DependencyInjection; +namespace BeSimple\SoapBundle\DependencyInjection; use Symfony\Component\Config\Definition\Processor; use Symfony\Component\Config\FileLocator; @@ -19,11 +19,11 @@ use Symfony\Component\DependencyInjection\Loader\XmlFileLoader; use Symfony\Component\HttpKernel\DependencyInjection\Extension; /** - * WebServiceExtension. + * BeSimpleSoapExtension. * * @author Christian Kerl */ -class WebServiceExtension extends Extension +class BeSimpleSoapExtension extends Extension { private $contextArguments; @@ -76,4 +76,4 @@ class WebServiceExtension extends Extension $definition->replaceArgument($i, $argument); } } -} \ No newline at end of file +} diff --git a/DependencyInjection/Compiler/WebServiceResolverPass.php b/DependencyInjection/Compiler/WebServiceResolverPass.php index 0969848..bde6e76 100644 --- a/DependencyInjection/Compiler/WebServiceResolverPass.php +++ b/DependencyInjection/Compiler/WebServiceResolverPass.php @@ -1,6 +1,6 @@ * @@ -8,7 +8,7 @@ * with this source code in the file LICENSE. */ -namespace Bundle\WebServiceBundle\DependencyInjection\Compiler; +namespace BeSimple\SoapBundle\DependencyInjection\Compiler; use Symfony\Component\DependencyInjection\Reference; use Symfony\Component\DependencyInjection\ContainerBuilder; diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index cb280c6..ded0ae1 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -1,6 +1,6 @@ * @@ -8,7 +8,7 @@ * with this source code in the file LICENSE. */ -namespace Bundle\WebServiceBundle\DependencyInjection; +namespace BeSimple\SoapBundle\DependencyInjection; use Symfony\Component\Config\Definition\Builder\TreeBuilder; diff --git a/README.markdown b/README.markdown index 6d8f6d8..7bdea20 100644 --- a/README.markdown +++ b/README.markdown @@ -1,7 +1,7 @@ -WebServiceBundle -================ +BeSimpleSoapBundle +================== -The WebServiceBundle is a Symfony2 bundle to build WSDL and SOAP based web services. +The BeSimpleSoapBundle is a Symfony2 bundle to build WSDL and SOAP based web services. It is based on the [ckWebServicePlugin] [1] for symfony. Requirements @@ -13,7 +13,7 @@ Requirements git submodule add http://github.com/zendframework/zf2.git vendor/zend-framework * Add `Zend\Soap` library to `app/autoload.php` - + // app/autoload.php $loader->registerNamespaces(array( 'Zend\\Soap' => __DIR__.'/../vendor/zend-frameword/library', @@ -23,40 +23,40 @@ Requirements QuickStart ---------- - * Put WebServiceBundle in your `vendor/bundles/Bundle` dir + * Put BeSimplSoapBundle in your `vendor/bundles/BeSimple` dir - git submodule add https://github.com/BeSimple/BeSimpleSoapBundle.git vendor/bundles/WebServiceBundle + git submodule add https://github.com/BeSimple/BeSimpleSoapBundle.git vendor/bundles/BeSimple/SoapBundle - * Enable WebServiceBundle in your `app/AppKernel.php` + * Enable BeSimpleSoapBundle in your `app/AppKernel.php` // app/AppKernel.php public function registerBundles() { return array( // ... - new new Bundle\WebServiceBundle\WebServiceBundle(), + new new BeSimple\SoapBundle\BeSimpleSoapBundle(), // ... ); } - * Register the Bundle namespace + * Register the BeSimple namespace // app/autoload.php $loader->registerNamespaces(array( - 'Bundle' => __DIR__.'/../vendor/bundles', + 'BeSimple' => __DIR__.'/../vendor/bundles', 'Zend\\Soap' => __DIR__.'/../vendor/zend-frameword/library', // your other namespaces )); - * Include the WebServiceBundle's routing configuration in `app/config/routing.yml` (you can choose the prefix arbitrarily) + * Include the BeSimpleSoapBundle's routing configuration in `app/config/routing.yml` (you can choose the prefix arbitrarily) - _ws: - resource: "@WebServiceBundle/Resources/config/routing/webservicecontroller.xml" + _besimple_soap: + resource: "@BeSimpleSoapBundle/Resources/config/routing/webservicecontroller.xml" prefix: /ws * Configure your first web service in `app/config/config.yml` - web_service: + be_simple_soap: services: DemoApi: namespace: http://mysymfonyapp.com/ws/DemoApi/1.0/ @@ -67,10 +67,10 @@ QuickStart * Annotate your controller methods // src/Acme/DemoBundle/Controller/DemoController.php - use Bundle\WebServiceBundle\ServiceDefinition\Annotation\Method; - use Bundle\WebServiceBundle\ServiceDefinition\Annotation\Param; - use Bundle\WebServiceBundle\ServiceDefinition\Annotation\Result; - use Bundle\WebServiceBundle\Soap\SoapResponse; + use BeSimple\SoapBundle\ServiceDefinition\Annotation\Method; + use BeSimple\SoapBundle\ServiceDefinition\Annotation\Param; + use BeSimple\SoapBundle\ServiceDefinition\Annotation\Result; + use BeSimple\SoapBundle\Soap\SoapResponse; class DemoController extends Controller { @@ -95,4 +95,4 @@ Test phpunit -c phpunit.xml.dist -[1]: http://www.symfony-project.org/plugins/ckWebServicePlugin \ No newline at end of file +[1]: http://www.symfony-project.org/plugins/ckWebServicePlugin diff --git a/Resources/config/loaders.xml b/Resources/config/loaders.xml index 3665b9d..ac6c859 100644 --- a/Resources/config/loaders.xml +++ b/Resources/config/loaders.xml @@ -7,9 +7,9 @@ Symfony\Component\Config\Loader\LoaderResolver Symfony\Component\Config\Loader\DelegatingLoader - Bundle\WebServiceBundle\ServiceDefinition\Loader\AnnotationDirectoryLoader - Bundle\WebServiceBundle\ServiceDefinition\Loader\AnnotationFileLoader - Bundle\WebServiceBundle\ServiceDefinition\Loader\AnnotationClassLoader + BeSimple\SoapBundle\ServiceDefinition\Loader\AnnotationDirectoryLoader + BeSimple\SoapBundle\ServiceDefinition\Loader\AnnotationFileLoader + BeSimple\SoapBundle\ServiceDefinition\Loader\AnnotationClassLoader diff --git a/Resources/config/routing/webservicecontroller.xml b/Resources/config/routing/webservicecontroller.xml index a3e3df9..98e80e4 100644 --- a/Resources/config/routing/webservicecontroller.xml +++ b/Resources/config/routing/webservicecontroller.xml @@ -5,13 +5,13 @@ xsi:schemaLocation="http://symfony.com/schema/routing http://symfony.com/schema/routing/routing-1.0.xsd"> - WebServiceBundle:SoapWebService:Call + BeSimpleSoapBundle:SoapWebService:Call xml POST - WebServiceBundle:SoapWebService:Definition + BeSimpleSoapBundle:SoapWebService:Definition xml GET diff --git a/Resources/config/webservice.xml b/Resources/config/webservice.xml index a2d6950..a242499 100644 --- a/Resources/config/webservice.xml +++ b/Resources/config/webservice.xml @@ -4,16 +4,16 @@ xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd"> - Bundle\WebServiceBundle\Controller\SoapWebServiceController - Bundle\WebServiceBundle\WebServiceContext + BeSimple\SoapBundle\Controller\SoapWebServiceController + BeSimple\SoapBundle\WebServiceContext %kernel.cache_dir%/webservice - Bundle\WebServiceBundle\ServiceBinding\RpcLiteralRequestMessageBinder - Bundle\WebServiceBundle\ServiceBinding\RpcLiteralResponseMessageBinder - Bundle\WebServiceBundle\ServiceBinding\DocumentLiteralWrappedRequestMessageBinder - Bundle\WebServiceBundle\ServiceBinding\DocumentLiteralWrappedResponseMessageBinder - Bundle\WebServiceBundle\ServiceDefinition\Dumper\WsdlDumper - Bundle\WebServiceBundle\Converter\ConverterRepository - Bundle\WebServiceBundle\Converter\TypeRepository + BeSimple\SoapBundle\ServiceBinding\RpcLiteralRequestMessageBinder + BeSimple\SoapBundle\ServiceBinding\RpcLiteralResponseMessageBinder + BeSimple\SoapBundle\ServiceBinding\DocumentLiteralWrappedRequestMessageBinder + BeSimple\SoapBundle\ServiceBinding\DocumentLiteralWrappedResponseMessageBinder + BeSimple\SoapBundle\ServiceDefinition\Dumper\WsdlDumper + BeSimple\SoapBundle\Converter\ConverterRepository + BeSimple\SoapBundle\Converter\TypeRepository diff --git a/ServiceBinding/DocumentLiteralWrappedRequestMessageBinder.php b/ServiceBinding/DocumentLiteralWrappedRequestMessageBinder.php index 66b07a7..3245448 100644 --- a/ServiceBinding/DocumentLiteralWrappedRequestMessageBinder.php +++ b/ServiceBinding/DocumentLiteralWrappedRequestMessageBinder.php @@ -1,6 +1,6 @@ * @@ -8,9 +8,9 @@ * with this source code in the file LICENSE. */ -namespace Bundle\WebServiceBundle\ServiceBinding; +namespace BeSimple\SoapBundle\ServiceBinding; -use Bundle\WebServiceBundle\ServiceDefinition\Method; +use BeSimple\SoapBundle\ServiceDefinition\Method; class DocumentLiteralWrappedRequestMessageBinder implements MessageBinderInterface { diff --git a/ServiceBinding/DocumentLiteralWrappedResponseMessageBinder.php b/ServiceBinding/DocumentLiteralWrappedResponseMessageBinder.php index 5806852..d8d7e78 100644 --- a/ServiceBinding/DocumentLiteralWrappedResponseMessageBinder.php +++ b/ServiceBinding/DocumentLiteralWrappedResponseMessageBinder.php @@ -1,6 +1,6 @@ * @@ -8,9 +8,9 @@ * with this source code in the file LICENSE. */ -namespace Bundle\WebServiceBundle\ServiceBinding; +namespace BeSimple\SoapBundle\ServiceBinding; -use Bundle\WebServiceBundle\ServiceDefinition\Method; +use BeSimple\SoapBundle\ServiceDefinition\Method; class DocumentLiteralWrappedResponseMessageBinder implements MessageBinderInterface { diff --git a/ServiceBinding/MessageBinderInterface.php b/ServiceBinding/MessageBinderInterface.php index 6dc9bf5..f355f76 100644 --- a/ServiceBinding/MessageBinderInterface.php +++ b/ServiceBinding/MessageBinderInterface.php @@ -1,6 +1,6 @@ * @@ -8,9 +8,9 @@ * with this source code in the file LICENSE. */ -namespace Bundle\WebServiceBundle\ServiceBinding; +namespace BeSimple\SoapBundle\ServiceBinding; -use Bundle\WebServiceBundle\ServiceDefinition\Method; +use BeSimple\SoapBundle\ServiceDefinition\Method; interface MessageBinderInterface { diff --git a/ServiceBinding/RpcLiteralRequestMessageBinder.php b/ServiceBinding/RpcLiteralRequestMessageBinder.php index 2269afc..12c8e78 100644 --- a/ServiceBinding/RpcLiteralRequestMessageBinder.php +++ b/ServiceBinding/RpcLiteralRequestMessageBinder.php @@ -1,6 +1,6 @@ * @@ -8,9 +8,9 @@ * with this source code in the file LICENSE. */ -namespace Bundle\WebServiceBundle\ServiceBinding; +namespace BeSimple\SoapBundle\ServiceBinding; -use Bundle\WebServiceBundle\ServiceDefinition\Method; +use BeSimple\SoapBundle\ServiceDefinition\Method; class RpcLiteralRequestMessageBinder implements MessageBinderInterface { diff --git a/ServiceBinding/RpcLiteralResponseMessageBinder.php b/ServiceBinding/RpcLiteralResponseMessageBinder.php index 970d587..e4b4aa2 100644 --- a/ServiceBinding/RpcLiteralResponseMessageBinder.php +++ b/ServiceBinding/RpcLiteralResponseMessageBinder.php @@ -1,6 +1,6 @@ * @@ -8,9 +8,9 @@ * with this source code in the file LICENSE. */ -namespace Bundle\WebServiceBundle\ServiceBinding; +namespace BeSimple\SoapBundle\ServiceBinding; -use Bundle\WebServiceBundle\ServiceDefinition\Method; +use BeSimple\SoapBundle\ServiceDefinition\Method; class RpcLiteralResponseMessageBinder implements MessageBinderInterface { diff --git a/ServiceBinding/ServiceBinder.php b/ServiceBinding/ServiceBinder.php index 88c5377..aa329f1 100644 --- a/ServiceBinding/ServiceBinder.php +++ b/ServiceBinding/ServiceBinder.php @@ -1,6 +1,6 @@ * @@ -8,27 +8,27 @@ * with this source code in the file LICENSE. */ -namespace Bundle\WebServiceBundle\ServiceBinding; +namespace BeSimple\SoapBundle\ServiceBinding; -use Bundle\WebServiceBundle\ServiceDefinition\Header; -use Bundle\WebServiceBundle\ServiceDefinition\ServiceDefinition; -use Bundle\WebServiceBundle\Soap\SoapHeader; -use Bundle\WebServiceBundle\Util\QName; +use BeSimple\SoapBundle\ServiceDefinition\Header; +use BeSimple\SoapBundle\ServiceDefinition\ServiceDefinition; +use BeSimple\SoapBundle\Soap\SoapHeader; +use BeSimple\SoapBundle\Util\QName; class ServiceBinder { /** - * @var \Bundle\WebServiceBundle\ServiceDefinition\ServiceDefinition + * @var \BeSimple\SoapBundle\ServiceDefinition\ServiceDefinition */ private $definition; /** - * @var \Bundle\WebServiceBundle\ServiceBinding\MessageBinderInterface + * @var \BeSimple\SoapBundle\ServiceBinding\MessageBinderInterface */ private $requestMessageBinder; /** - * @var \Bundle\WebServiceBundle\ServiceBinding\MessageBinderInterface + * @var \BeSimple\SoapBundle\ServiceBinding\MessageBinderInterface */ private $responseMessageBinder; diff --git a/ServiceDefinition/Annotation/Configuration.php b/ServiceDefinition/Annotation/Configuration.php index 2df78b2..f7c4d0a 100644 --- a/ServiceDefinition/Annotation/Configuration.php +++ b/ServiceDefinition/Annotation/Configuration.php @@ -1,6 +1,6 @@ * @@ -8,7 +8,7 @@ * with this source code in the file LICENSE. */ -namespace Bundle\WebServiceBundle\ServiceDefinition\Annotation; +namespace BeSimple\SoapBundle\ServiceDefinition\Annotation; /** * Based on \Sensio\Bundle\FrameworkExtraBundle\Configuration\ConfigurationAnnotation diff --git a/ServiceDefinition/Annotation/ConfigurationInterface.php b/ServiceDefinition/Annotation/ConfigurationInterface.php index 3c910bf..c25656a 100644 --- a/ServiceDefinition/Annotation/ConfigurationInterface.php +++ b/ServiceDefinition/Annotation/ConfigurationInterface.php @@ -1,6 +1,6 @@ * @@ -8,7 +8,7 @@ * with this source code in the file LICENSE. */ -namespace Bundle\WebServiceBundle\ServiceDefinition\Annotation; +namespace BeSimple\SoapBundle\ServiceDefinition\Annotation; /** * Based on \Sensio\Bundle\FrameworkExtraBundle\Configuration\ConfigurationInterface diff --git a/ServiceDefinition/Annotation/Method.php b/ServiceDefinition/Annotation/Method.php index faf5ae4..a7a2395 100644 --- a/ServiceDefinition/Annotation/Method.php +++ b/ServiceDefinition/Annotation/Method.php @@ -1,6 +1,6 @@ * @@ -8,7 +8,7 @@ * with this source code in the file LICENSE. */ -namespace Bundle\WebServiceBundle\ServiceDefinition\Annotation; +namespace BeSimple\SoapBundle\ServiceDefinition\Annotation; /** * @Annotation diff --git a/ServiceDefinition/Annotation/Param.php b/ServiceDefinition/Annotation/Param.php index 932fef3..330569b 100644 --- a/ServiceDefinition/Annotation/Param.php +++ b/ServiceDefinition/Annotation/Param.php @@ -1,6 +1,6 @@ * @@ -8,7 +8,7 @@ * with this source code in the file LICENSE. */ -namespace Bundle\WebServiceBundle\ServiceDefinition\Annotation; +namespace BeSimple\SoapBundle\ServiceDefinition\Annotation; /** * @Annotation diff --git a/ServiceDefinition/Annotation/Result.php b/ServiceDefinition/Annotation/Result.php index c56a587..0d86f8c 100644 --- a/ServiceDefinition/Annotation/Result.php +++ b/ServiceDefinition/Annotation/Result.php @@ -1,6 +1,6 @@ * @@ -8,7 +8,7 @@ * with this source code in the file LICENSE. */ -namespace Bundle\WebServiceBundle\ServiceDefinition\Annotation; +namespace BeSimple\SoapBundle\ServiceDefinition\Annotation; /** * @Annotation diff --git a/ServiceDefinition/Annotation/TypedElementInterface.php b/ServiceDefinition/Annotation/TypedElementInterface.php index b6c4fe5..94eaeb3 100644 --- a/ServiceDefinition/Annotation/TypedElementInterface.php +++ b/ServiceDefinition/Annotation/TypedElementInterface.php @@ -1,6 +1,6 @@ * @@ -8,7 +8,7 @@ * with this source code in the file LICENSE. */ -namespace Bundle\WebServiceBundle\ServiceDefinition\Annotation; +namespace BeSimple\SoapBundle\ServiceDefinition\Annotation; interface TypedElementInterface { diff --git a/ServiceDefinition/Argument.php b/ServiceDefinition/Argument.php index 5a715d2..87da04f 100644 --- a/ServiceDefinition/Argument.php +++ b/ServiceDefinition/Argument.php @@ -1,6 +1,6 @@ * @@ -8,7 +8,7 @@ * with this source code in the file LICENSE. */ -namespace Bundle\WebServiceBundle\ServiceDefinition; +namespace BeSimple\SoapBundle\ServiceDefinition; class Argument { diff --git a/ServiceDefinition/Dumper/DumperInterface.php b/ServiceDefinition/Dumper/DumperInterface.php index f957435..e1dcb11 100644 --- a/ServiceDefinition/Dumper/DumperInterface.php +++ b/ServiceDefinition/Dumper/DumperInterface.php @@ -1,6 +1,6 @@ * @@ -8,9 +8,9 @@ * with this source code in the file LICENSE. */ -namespace Bundle\WebServiceBundle\ServiceDefinition\Dumper; +namespace BeSimple\SoapBundle\ServiceDefinition\Dumper; -use Bundle\WebServiceBundle\ServiceDefinition\ServiceDefinition; +use BeSimple\SoapBundle\ServiceDefinition\ServiceDefinition; interface DumperInterface { diff --git a/ServiceDefinition/Dumper/WsdlDumper.php b/ServiceDefinition/Dumper/WsdlDumper.php index 37e9c40..09548b5 100644 --- a/ServiceDefinition/Dumper/WsdlDumper.php +++ b/ServiceDefinition/Dumper/WsdlDumper.php @@ -1,6 +1,6 @@ * @@ -8,13 +8,13 @@ * with this source code in the file LICENSE. */ -namespace Bundle\WebServiceBundle\ServiceDefinition\Dumper; +namespace BeSimple\SoapBundle\ServiceDefinition\Dumper; -use Bundle\WebServiceBundle\ServiceDefinition\Method; -use Bundle\WebServiceBundle\ServiceDefinition\Type; -use Bundle\WebServiceBundle\ServiceDefinition\ServiceDefinition; -use Bundle\WebServiceBundle\Util\Assert; -use Bundle\WebServiceBundle\Util\QName; +use BeSimple\SoapBundle\ServiceDefinition\Method; +use BeSimple\SoapBundle\ServiceDefinition\Type; +use BeSimple\SoapBundle\ServiceDefinition\ServiceDefinition; +use BeSimple\SoapBundle\Util\Assert; +use BeSimple\SoapBundle\Util\QName; use Zend\Soap\Wsdl; diff --git a/ServiceDefinition/Dumper/WsdlTypeStrategy.php b/ServiceDefinition/Dumper/WsdlTypeStrategy.php index 98005e6..8ca9acb 100644 --- a/ServiceDefinition/Dumper/WsdlTypeStrategy.php +++ b/ServiceDefinition/Dumper/WsdlTypeStrategy.php @@ -1,6 +1,6 @@ * @@ -8,9 +8,9 @@ * with this source code in the file LICENSE. */ -namespace Bundle\WebServiceBundle\ServiceDefinition\Dumper; +namespace BeSimple\SoapBundle\ServiceDefinition\Dumper; -use Bundle\WebServiceBundle\Util\String; +use BeSimple\SoapBundle\Util\String; use Zend\Soap\Exception; use Zend\Soap\Wsdl; diff --git a/ServiceDefinition/Header.php b/ServiceDefinition/Header.php index ef450a2..53cc4cf 100644 --- a/ServiceDefinition/Header.php +++ b/ServiceDefinition/Header.php @@ -1,6 +1,6 @@ * @@ -8,7 +8,7 @@ * with this source code in the file LICENSE. */ -namespace Bundle\WebServiceBundle\ServiceDefinition; +namespace BeSimple\SoapBundle\ServiceDefinition; class Header { diff --git a/ServiceDefinition/Loader/AnnotationClassLoader.php b/ServiceDefinition/Loader/AnnotationClassLoader.php index fc0517d..2faccbc 100644 --- a/ServiceDefinition/Loader/AnnotationClassLoader.php +++ b/ServiceDefinition/Loader/AnnotationClassLoader.php @@ -1,6 +1,6 @@ * @@ -8,15 +8,15 @@ * with this source code in the file LICENSE. */ -namespace Bundle\WebServiceBundle\ServiceDefinition\Loader; +namespace BeSimple\SoapBundle\ServiceDefinition\Loader; -use Bundle\WebServiceBundle\ServiceDefinition\Argument; -use Bundle\WebServiceBundle\ServiceDefinition\Method; -use Bundle\WebServiceBundle\ServiceDefinition\Type; -use Bundle\WebServiceBundle\ServiceDefinition\ServiceDefinition; -use Bundle\WebServiceBundle\ServiceDefinition\Annotation\Method as MethodAnnotation; -use Bundle\WebServiceBundle\ServiceDefinition\Annotation\Param as ParamAnnotation; -use Bundle\WebServiceBundle\ServiceDefinition\Annotation\Result as ResultAnnotation; +use BeSimple\SoapBundle\ServiceDefinition\Argument; +use BeSimple\SoapBundle\ServiceDefinition\Method; +use BeSimple\SoapBundle\ServiceDefinition\Type; +use BeSimple\SoapBundle\ServiceDefinition\ServiceDefinition; +use BeSimple\SoapBundle\ServiceDefinition\Annotation\Method as MethodAnnotation; +use BeSimple\SoapBundle\ServiceDefinition\Annotation\Param as ParamAnnotation; +use BeSimple\SoapBundle\ServiceDefinition\Annotation\Result as ResultAnnotation; use Doctrine\Common\Annotations\Reader; @@ -32,9 +32,9 @@ use Symfony\Component\Config\Loader\LoaderResolver; */ class AnnotationClassLoader implements LoaderInterface { - private $methodAnnotationClass = 'Bundle\\WebServiceBundle\\ServiceDefinition\\Annotation\\Method'; - private $paramAnnotationClass = 'Bundle\\WebServiceBundle\\ServiceDefinition\\Annotation\\Param'; - private $resultAnnotationClass = 'Bundle\\WebServiceBundle\\ServiceDefinition\\Annotation\\Result'; + private $methodAnnotationClass = 'BeSimple\\SoapBundle\\ServiceDefinition\\Annotation\\Method'; + private $paramAnnotationClass = 'BeSimple\\SoapBundle\\ServiceDefinition\\Annotation\\Param'; + private $resultAnnotationClass = 'BeSimple\\SoapBundle\\ServiceDefinition\\Annotation\\Result'; protected $reader; @@ -127,7 +127,7 @@ class AnnotationClassLoader implements LoaderInterface * @param \ReflectionMethod $method * @param ParamAnnotation $annotation * - * @return \Bundle\WebServiceBundle\ServiceDefinition\Type + * @return \BeSimple\SoapBundle\ServiceDefinition\Type */ private function getArgumentType(\ReflectionMethod $method, ParamAnnotation $annotation) { diff --git a/ServiceDefinition/Loader/AnnotationFileLoader.php b/ServiceDefinition/Loader/AnnotationFileLoader.php index 688e406..606a45e 100644 --- a/ServiceDefinition/Loader/AnnotationFileLoader.php +++ b/ServiceDefinition/Loader/AnnotationFileLoader.php @@ -1,6 +1,6 @@ * @@ -8,9 +8,9 @@ * with this source code in the file LICENSE. */ -namespace Bundle\WebServiceBundle\ServiceDefinition\Loader; +namespace BeSimple\SoapBundle\ServiceDefinition\Loader; -use Bundle\WebServiceBundle\ServiceDefinition\ServiceDefinition; +use BeSimple\SoapBundle\ServiceDefinition\ServiceDefinition; use Symfony\Component\Config\FileLocator; use Symfony\Component\Config\Loader\FileLoader; diff --git a/ServiceDefinition/Loader/XmlFileLoader.php b/ServiceDefinition/Loader/XmlFileLoader.php index 944980c..fee469b 100644 --- a/ServiceDefinition/Loader/XmlFileLoader.php +++ b/ServiceDefinition/Loader/XmlFileLoader.php @@ -1,6 +1,6 @@ * @@ -8,13 +8,13 @@ * with this source code in the file LICENSE. */ -namespace Bundle\WebServiceBundle\ServiceDefinition\Loader; +namespace BeSimple\SoapBundle\ServiceDefinition\Loader; -use Bundle\WebServiceBundle\ServiceDefinition\Argument; -use Bundle\WebServiceBundle\ServiceDefinition\Header; -use Bundle\WebServiceBundle\ServiceDefinition\Method; -use Bundle\WebServiceBundle\ServiceDefinition\Type; -use Bundle\WebServiceBundle\ServiceDefinition\ServiceDefinition; +use BeSimple\SoapBundle\ServiceDefinition\Argument; +use BeSimple\SoapBundle\ServiceDefinition\Header; +use BeSimple\SoapBundle\ServiceDefinition\Method; +use BeSimple\SoapBundle\ServiceDefinition\Type; +use BeSimple\SoapBundle\ServiceDefinition\ServiceDefinition; use Symfony\Component\Config\Loader\FileLoader; @@ -48,7 +48,7 @@ class XmlFileLoader extends FileLoader /** * @param \SimpleXMLElement $node * - * @return \Bundle\WebServiceBundle\ServiceDefinition\Header + * @return \BeSimple\SoapBundle\ServiceDefinition\Header */ protected function parseHeader(\SimpleXMLElement $node) { @@ -58,7 +58,7 @@ class XmlFileLoader extends FileLoader /** * @param \SimpleXMLElement $node * - * @return \Bundle\WebServiceBundle\ServiceDefinition\Method + * @return \BeSimple\SoapBundle\ServiceDefinition\Method */ protected function parseMethod(\SimpleXMLElement $node) { @@ -76,7 +76,7 @@ class XmlFileLoader extends FileLoader /** * @param \SimpleXMLElement $node * - * @return \Bundle\WebServiceBundle\ServiceDefinition\Argument + * @return \BeSimple\SoapBundle\ServiceDefinition\Argument */ protected function parseArgument(\SimpleXMLElement $node) { @@ -88,7 +88,7 @@ class XmlFileLoader extends FileLoader /** * @param \SimpleXMLElement $node * - * @return \Bundle\WebServiceBundle\ServiceDefinition\Type + * @return \BeSimple\SoapBundle\ServiceDefinition\Type */ protected function parseType(\SimpleXMLElement $node) { diff --git a/ServiceDefinition/Loader/schema/servicedefinition-1.0.xsd b/ServiceDefinition/Loader/schema/servicedefinition-1.0.xsd index 4ef903a..2867eab 100644 --- a/ServiceDefinition/Loader/schema/servicedefinition-1.0.xsd +++ b/ServiceDefinition/Loader/schema/servicedefinition-1.0.xsd @@ -1,5 +1,5 @@ - + @@ -78,4 +78,4 @@ - \ No newline at end of file + diff --git a/ServiceDefinition/Method.php b/ServiceDefinition/Method.php index 48bf99b..14e1efa 100644 --- a/ServiceDefinition/Method.php +++ b/ServiceDefinition/Method.php @@ -1,6 +1,6 @@ * @@ -8,9 +8,9 @@ * with this source code in the file LICENSE. */ -namespace Bundle\WebServiceBundle\ServiceDefinition; +namespace BeSimple\SoapBundle\ServiceDefinition; -use Bundle\WebServiceBundle\Util\Collection; +use BeSimple\SoapBundle\Util\Collection; class Method { @@ -57,7 +57,7 @@ class Method public function setArguments(array $arguments) { - $this->arguments = new Collection('getName', 'Bundle\WebServiceBundle\ServiceDefinition\Argument'); + $this->arguments = new Collection('getName', 'BeSimple\SoapBundle\ServiceDefinition\Argument'); $this->arguments->addAll($arguments); } diff --git a/ServiceDefinition/ServiceDefinition.php b/ServiceDefinition/ServiceDefinition.php index 8a24bc0..d11e285 100644 --- a/ServiceDefinition/ServiceDefinition.php +++ b/ServiceDefinition/ServiceDefinition.php @@ -1,6 +1,6 @@ * @@ -8,9 +8,9 @@ * with this source code in the file LICENSE. */ -namespace Bundle\WebServiceBundle\ServiceDefinition; +namespace BeSimple\SoapBundle\ServiceDefinition; -use Bundle\WebServiceBundle\Util\Collection; +use BeSimple\SoapBundle\Util\Collection; class ServiceDefinition { @@ -25,12 +25,12 @@ class ServiceDefinition private $namespace; /** - * @var \Bundle\WebServiceBundle\Util\Collection + * @var \BeSimple\SoapBundle\Util\Collection */ private $methods; /** - * @var \Bundle\WebServiceBundle\Util\Collection + * @var \BeSimple\SoapBundle\Util\Collection */ private $headers; @@ -39,8 +39,8 @@ class ServiceDefinition $this->setName($name); $this->setNamespace($namespace); - $this->methods = new Collection('getName', 'Bundle\WebServiceBundle\ServiceDefinition\Method'); - $this->headers = new Collection('getName', 'Bundle\WebServiceBundle\ServiceDefinition\Header'); + $this->methods = new Collection('getName', 'BeSimple\SoapBundle\ServiceDefinition\Method'); + $this->headers = new Collection('getName', 'BeSimple\SoapBundle\ServiceDefinition\Header'); $this->setMethods($methods); $this->setHeaders($headers); @@ -79,7 +79,7 @@ class ServiceDefinition } /** - * @return \Bundle\WebServiceBundle\Util\Collection + * @return \BeSimple\SoapBundle\Util\Collection */ public function getMethods() { @@ -95,7 +95,7 @@ class ServiceDefinition } /** - * @return \Bundle\WebServiceBundle\Util\Collection + * @return \BeSimple\SoapBundle\Util\Collection */ public function getHeaders() { diff --git a/ServiceDefinition/Type.php b/ServiceDefinition/Type.php index 176f748..dbf69e5 100644 --- a/ServiceDefinition/Type.php +++ b/ServiceDefinition/Type.php @@ -1,6 +1,6 @@ * @@ -8,7 +8,7 @@ * with this source code in the file LICENSE. */ -namespace Bundle\WebServiceBundle\ServiceDefinition; +namespace BeSimple\SoapBundle\ServiceDefinition; class Type { diff --git a/Soap/SoapAttachment.php b/Soap/SoapAttachment.php index d5592ce..15e8a1e 100644 --- a/Soap/SoapAttachment.php +++ b/Soap/SoapAttachment.php @@ -1,6 +1,6 @@ * @@ -8,7 +8,7 @@ * with this source code in the file LICENSE. */ -namespace Bundle\WebServiceBundle\Soap; +namespace BeSimple\SoapBundle\Soap; class SoapAttachment { diff --git a/Soap/SoapHeader.php b/Soap/SoapHeader.php index a66439a..e24d58c 100644 --- a/Soap/SoapHeader.php +++ b/Soap/SoapHeader.php @@ -1,6 +1,6 @@ * @@ -8,7 +8,7 @@ * with this source code in the file LICENSE. */ -namespace Bundle\WebServiceBundle\Soap; +namespace BeSimple\SoapBundle\Soap; class SoapHeader { diff --git a/Soap/SoapRequest.php b/Soap/SoapRequest.php index dc31d9a..6cc0f97 100644 --- a/Soap/SoapRequest.php +++ b/Soap/SoapRequest.php @@ -1,6 +1,6 @@ * @@ -8,9 +8,9 @@ * with this source code in the file LICENSE. */ -namespace Bundle\WebServiceBundle\Soap; +namespace BeSimple\SoapBundle\Soap; -use Bundle\WebServiceBundle\Util\Collection; +use BeSimple\SoapBundle\Util\Collection; use Symfony\Component\HttpFoundation\Request; @@ -40,12 +40,12 @@ class SoapRequest extends Request protected $soapAction; /** - * @var \Bundle\WebServiceBundle\Util\Collection + * @var \BeSimple\SoapBundle\Util\Collection */ protected $soapHeaders; /** - * @var \Bundle\WebServiceBundle\Util\Collection + * @var \BeSimple\SoapBundle\Util\Collection */ protected $soapAttachments; @@ -54,8 +54,8 @@ class SoapRequest extends Request parent::initialize($query, $request, $attributes, $cookies, $files, $server, $content); $this->soapMessage = null; - $this->soapHeaders = new Collection('getName', 'Bundle\WebServiceBundle\Soap\SoapHeader'); - $this->soapAttachments = new Collection('getId', 'Bundle\WebServiceBundle\Soap\SoapAttachment'); + $this->soapHeaders = new Collection('getName', 'BeSimple\SoapBundle\Soap\SoapHeader'); + $this->soapAttachments = new Collection('getId', 'BeSimple\SoapBundle\Soap\SoapAttachment'); $this->setRequestFormat('soap'); } diff --git a/Soap/SoapResponse.php b/Soap/SoapResponse.php index 1f666ac..cb9c9a3 100644 --- a/Soap/SoapResponse.php +++ b/Soap/SoapResponse.php @@ -1,6 +1,6 @@ * @@ -8,9 +8,9 @@ * with this source code in the file LICENSE. */ -namespace Bundle\WebServiceBundle\Soap; +namespace BeSimple\SoapBundle\Soap; -use Bundle\WebServiceBundle\Util\Collection; +use BeSimple\SoapBundle\Util\Collection; use Symfony\Component\HttpFoundation\Response; @@ -22,7 +22,7 @@ use Symfony\Component\HttpFoundation\Response; class SoapResponse extends Response { /** - * @var \Bundle\WebServiceBundle\Util\Collection + * @var \BeSimple\SoapBundle\Util\Collection */ protected $soapHeaders; @@ -35,7 +35,7 @@ class SoapResponse extends Response { parent::__construct(); - $this->soapHeaders = new Collection('getName', 'Bundle\WebServiceBundle\Soap\SoapHeader'); + $this->soapHeaders = new Collection('getName', 'BeSimple\SoapBundle\Soap\SoapHeader'); $this->setReturnValue($returnValue); } diff --git a/Soap/SoapServerFactory.php b/Soap/SoapServerFactory.php index 9ffa0c6..1c83499 100644 --- a/Soap/SoapServerFactory.php +++ b/Soap/SoapServerFactory.php @@ -1,6 +1,6 @@ * @@ -8,9 +8,9 @@ * with this source code in the file LICENSE. */ -namespace Bundle\WebServiceBundle\Soap; +namespace BeSimple\SoapBundle\Soap; -use Bundle\WebServiceBundle\Converter\ConverterRepository; +use BeSimple\SoapBundle\Converter\ConverterRepository; /** * @author Christian Kerl diff --git a/Tests/Soap/SoapRequestTest.php b/Tests/Soap/SoapRequestTest.php index 81df88b..53375a2 100644 --- a/Tests/Soap/SoapRequestTest.php +++ b/Tests/Soap/SoapRequestTest.php @@ -1,6 +1,6 @@ * @@ -8,12 +8,12 @@ * with this source code in the file LICENSE. */ -namespace Bundle\WebServiceBundle\Tests\Soap; +namespace BeSimple\SoapBundle\Tests\Soap; -use Bundle\WebServiceBundle\Soap\SoapRequest; +use BeSimple\SoapBundle\Soap\SoapRequest; /** - * UnitTest for \Bundle\WebServiceBundle\Soap\SoapRequest. + * UnitTest for \BeSimple\SoapBundle\Soap\SoapRequest. * * @author Christian Kerl */ diff --git a/Tests/bootstrap.php b/Tests/bootstrap.php index 798095e..8fa8a1e 100644 --- a/Tests/bootstrap.php +++ b/Tests/bootstrap.php @@ -11,7 +11,7 @@ $loader->register(); spl_autoload_register(function($class) { //if (0 === strpos($class, 'BeSimple\\SoapBundle\\')) { - if (0 === strpos($class, 'Bundle\\WebServiceBundle\\')) { + if (0 === strpos($class, 'BeSimple\\SoapBundle\\')) { $path = __DIR__.'/../'.implode('/', array_slice(explode('\\', $class), 2)).'.php'; if (file_exists($path)) { diff --git a/Util/Assert.php b/Util/Assert.php index a80985a..d428a27 100644 --- a/Util/Assert.php +++ b/Util/Assert.php @@ -1,6 +1,6 @@ * @@ -8,7 +8,7 @@ * with this source code in the file LICENSE. */ -namespace Bundle\WebServiceBundle\Util; +namespace BeSimple\SoapBundle\Util; /** * diff --git a/Util/Collection.php b/Util/Collection.php index 97bbfee..e13703f 100644 --- a/Util/Collection.php +++ b/Util/Collection.php @@ -1,6 +1,6 @@ * @@ -8,7 +8,7 @@ * with this source code in the file LICENSE. */ -namespace Bundle\WebServiceBundle\Util; +namespace BeSimple\SoapBundle\Util; class Collection implements \IteratorAggregate, \Countable { diff --git a/Util/QName.php b/Util/QName.php index 874f52d..c71a686 100644 --- a/Util/QName.php +++ b/Util/QName.php @@ -1,6 +1,6 @@ * @@ -8,7 +8,7 @@ * with this source code in the file LICENSE. */ -namespace Bundle\WebServiceBundle\Util; +namespace BeSimple\SoapBundle\Util; /** * @author Christian Kerl diff --git a/Util/String.php b/Util/String.php index d88192b..b95d53e 100644 --- a/Util/String.php +++ b/Util/String.php @@ -1,6 +1,6 @@ * @@ -8,7 +8,7 @@ * with this source code in the file LICENSE. */ -namespace Bundle\WebServiceBundle\Util; +namespace BeSimple\SoapBundle\Util; /** * String provides utility methods for strings. diff --git a/WebServiceContext.php b/WebServiceContext.php index 90c3879..0a429ee 100644 --- a/WebServiceContext.php +++ b/WebServiceContext.php @@ -1,6 +1,6 @@ * @@ -8,14 +8,14 @@ * with this source code in the file LICENSE. */ -namespace Bundle\WebServiceBundle; +namespace BeSimple\SoapBundle; -use Bundle\WebServiceBundle\Converter\ConverterRepository; -use Bundle\WebServiceBundle\Converter\TypeRepository; -use Bundle\WebServiceBundle\ServiceBinding\MessageBinderInterface; -use Bundle\WebServiceBundle\ServiceBinding\ServiceBinder; -use Bundle\WebServiceBundle\ServiceDefinition\Dumper\DumperInterface; -use Bundle\WebServiceBundle\Soap\SoapServerFactory; +use BeSimple\SoapBundle\Converter\ConverterRepository; +use BeSimple\SoapBundle\Converter\TypeRepository; +use BeSimple\SoapBundle\ServiceBinding\MessageBinderInterface; +use BeSimple\SoapBundle\ServiceBinding\ServiceBinder; +use BeSimple\SoapBundle\ServiceDefinition\Dumper\DumperInterface; +use BeSimple\SoapBundle\Soap\SoapServerFactory; use Symfony\Component\Config\ConfigCache; use Symfony\Component\Config\Loader\LoaderInterface; diff --git a/vendors.php b/vendors.php index 1841c89..3c473b8 100755 --- a/vendors.php +++ b/vendors.php @@ -1,7 +1,7 @@ #!/usr/bin/env php * @@ -11,7 +11,7 @@ /* -CAUTION: This file installs the dependencies needed to run the WebServiceBundle test suite. +CAUTION: This file installs the dependencies needed to run the BeSimpleSoapBundle test suite. https://github.com/BeSimple/BeSimpleSoapBundle