Replaced Bundle\WebServiceBundle by BeSimple\SoapBundle

This commit is contained in:
Francis Besset 2011-07-18 22:43:12 +02:00
parent 265826f6c6
commit 055bb8a96c
50 changed files with 214 additions and 214 deletions

View File

@ -1,6 +1,6 @@
<?php
/*
* This file is part of the WebServiceBundle.
* This file is part of the BeSimpleSoapBundle.
*
* (c) Christian Kerl <christian-kerl@web.de>
*
@ -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 <christian-kerl@web.de>
*/
class WebServiceBundle extends Bundle
class BeSimpleSoapBundle extends Bundle
{
public function build(ContainerBuilder $container)
{

View File

@ -1,6 +1,6 @@
<?php
/*
* This file is part of the WebServiceBundle.
* This file is part of the BeSimpleSoapBundle.
*
* (c) Christian Kerl <christian-kerl@web.de>
*
@ -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()
{

View File

@ -1,6 +1,6 @@
<?php
/*
* This file is part of the WebServiceBundle.
* This file is part of the BeSimpleSoapBundle.
*
* (c) Christian Kerl <christian-kerl@web.de>
*
@ -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;

View File

@ -1,6 +1,6 @@
<?php
/*
* This file is part of the WebServiceBundle.
* This file is part of the BeSimpleSoapBundle.
*
* (c) Christian Kerl <christian-kerl@web.de>
*
@ -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 <christian-kerl@web.de>

View File

@ -1,6 +1,6 @@
<?php
/*
* This file is part of the WebServiceBundle.
* This file is part of the BeSimpleSoapBundle.
*
* (c) Christian Kerl <christian-kerl@web.de>
*
@ -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 <christian-kerl@web.de>

View File

@ -1,6 +1,6 @@
<?php
/*
* This file is part of the WebServiceBundle.
* This file is part of the BeSimpleSoapBundle.
*
* (c) Christian Kerl <christian-kerl@web.de>
*
@ -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 <christian-kerl@web.de>

View File

@ -1,6 +1,6 @@
<?php
/*
* This file is part of the WebServiceBundle.
* This file is part of the BeSimpleSoapBundle.
*
* (c) Christian Kerl <christian-kerl@web.de>
*
@ -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 <christian-kerl@web.de>
*/
class WebServiceExtension extends Extension
class BeSimpleSoapExtension extends Extension
{
private $contextArguments;

View File

@ -1,6 +1,6 @@
<?php
/*
* This file is part of the WebServiceBundle.
* This file is part of the BeSimpleSoapBundle.
*
* (c) Christian Kerl <christian-kerl@web.de>
*
@ -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;

View File

@ -1,6 +1,6 @@
<?php
/*
* This file is part of the WebServiceBundle.
* This file is part of the BeSimpleSoapBundle.
*
* (c) Christian Kerl <christian-kerl@web.de>
*
@ -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;

View File

@ -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
@ -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
{

View File

@ -7,9 +7,9 @@
<parameters>
<parameter key="webservice.definition.loader.resolver.class">Symfony\Component\Config\Loader\LoaderResolver</parameter>
<parameter key="webservice.definition.loader.class">Symfony\Component\Config\Loader\DelegatingLoader</parameter>
<parameter key="webservice.definition.loader.annot_dir.class">Bundle\WebServiceBundle\ServiceDefinition\Loader\AnnotationDirectoryLoader</parameter>
<parameter key="webservice.definition.loader.annot_file.class">Bundle\WebServiceBundle\ServiceDefinition\Loader\AnnotationFileLoader</parameter>
<parameter key="webservice.definition.loader.annot_class.class">Bundle\WebServiceBundle\ServiceDefinition\Loader\AnnotationClassLoader</parameter>
<parameter key="webservice.definition.loader.annot_dir.class">BeSimple\SoapBundle\ServiceDefinition\Loader\AnnotationDirectoryLoader</parameter>
<parameter key="webservice.definition.loader.annot_file.class">BeSimple\SoapBundle\ServiceDefinition\Loader\AnnotationFileLoader</parameter>
<parameter key="webservice.definition.loader.annot_class.class">BeSimple\SoapBundle\ServiceDefinition\Loader\AnnotationClassLoader</parameter>
</parameters>
<services>

View File

@ -5,13 +5,13 @@
xsi:schemaLocation="http://symfony.com/schema/routing http://symfony.com/schema/routing/routing-1.0.xsd">
<route id="_webservice_call" pattern="/{webservice}">
<default key="_controller">WebServiceBundle:SoapWebService:Call</default>
<default key="_controller">BeSimpleSoapBundle:SoapWebService:Call</default>
<default key="_format">xml</default>
<requirement key="_method">POST</requirement>
</route>
<route id="_webservice_definition" pattern="/{webservice}">
<default key="_controller">WebServiceBundle:SoapWebService:Definition</default>
<default key="_controller">BeSimpleSoapBundle:SoapWebService:Definition</default>
<default key="_format">xml</default>
<requirement key="_method">GET</requirement>
</route>

View File

@ -4,16 +4,16 @@
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
<parameters>
<parameter key="webservice.controller.class">Bundle\WebServiceBundle\Controller\SoapWebServiceController</parameter>
<parameter key="webservice.context.class">Bundle\WebServiceBundle\WebServiceContext</parameter>
<parameter key="webservice.controller.class">BeSimple\SoapBundle\Controller\SoapWebServiceController</parameter>
<parameter key="webservice.context.class">BeSimple\SoapBundle\WebServiceContext</parameter>
<parameter key="webservice.cache_dir">%kernel.cache_dir%/webservice</parameter>
<parameter key="webservice.binder.request.rpcliteral.class">Bundle\WebServiceBundle\ServiceBinding\RpcLiteralRequestMessageBinder</parameter>
<parameter key="webservice.binder.response.rpcliteral.class">Bundle\WebServiceBundle\ServiceBinding\RpcLiteralResponseMessageBinder</parameter>
<parameter key="webservice.binder.request.documentwrapped.class">Bundle\WebServiceBundle\ServiceBinding\DocumentLiteralWrappedRequestMessageBinder</parameter>
<parameter key="webservice.binder.response.documentwrapped.class">Bundle\WebServiceBundle\ServiceBinding\DocumentLiteralWrappedResponseMessageBinder</parameter>
<parameter key="webservice.definition.dumper.wsdl.rpcliteral.class">Bundle\WebServiceBundle\ServiceDefinition\Dumper\WsdlDumper</parameter>
<parameter key="webservice.converter.repository.class">Bundle\WebServiceBundle\Converter\ConverterRepository</parameter>
<parameter key="webservice.type.repository.class">Bundle\WebServiceBundle\Converter\TypeRepository</parameter>
<parameter key="webservice.binder.request.rpcliteral.class">BeSimple\SoapBundle\ServiceBinding\RpcLiteralRequestMessageBinder</parameter>
<parameter key="webservice.binder.response.rpcliteral.class">BeSimple\SoapBundle\ServiceBinding\RpcLiteralResponseMessageBinder</parameter>
<parameter key="webservice.binder.request.documentwrapped.class">BeSimple\SoapBundle\ServiceBinding\DocumentLiteralWrappedRequestMessageBinder</parameter>
<parameter key="webservice.binder.response.documentwrapped.class">BeSimple\SoapBundle\ServiceBinding\DocumentLiteralWrappedResponseMessageBinder</parameter>
<parameter key="webservice.definition.dumper.wsdl.rpcliteral.class">BeSimple\SoapBundle\ServiceDefinition\Dumper\WsdlDumper</parameter>
<parameter key="webservice.converter.repository.class">BeSimple\SoapBundle\Converter\ConverterRepository</parameter>
<parameter key="webservice.type.repository.class">BeSimple\SoapBundle\Converter\TypeRepository</parameter>
</parameters>
<services>

View File

@ -1,6 +1,6 @@
<?php
/*
* This file is part of the WebServiceBundle.
* This file is part of the BeSimpleSoapBundle.
*
* (c) Christian Kerl <christian-kerl@web.de>
*
@ -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
{

View File

@ -1,6 +1,6 @@
<?php
/*
* This file is part of the WebServiceBundle.
* This file is part of the BeSimpleSoapBundle.
*
* (c) Christian Kerl <christian-kerl@web.de>
*
@ -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
{

View File

@ -1,6 +1,6 @@
<?php
/*
* This file is part of the WebServiceBundle.
* This file is part of the BeSimpleSoapBundle.
*
* (c) Christian Kerl <christian-kerl@web.de>
*
@ -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
{

View File

@ -1,6 +1,6 @@
<?php
/*
* This file is part of the WebServiceBundle.
* This file is part of the BeSimpleSoapBundle.
*
* (c) Christian Kerl <christian-kerl@web.de>
*
@ -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
{

View File

@ -1,6 +1,6 @@
<?php
/*
* This file is part of the WebServiceBundle.
* This file is part of the BeSimpleSoapBundle.
*
* (c) Christian Kerl <christian-kerl@web.de>
*
@ -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
{

View File

@ -1,6 +1,6 @@
<?php
/*
* This file is part of the WebServiceBundle.
* This file is part of the BeSimpleSoapBundle.
*
* (c) Christian Kerl <christian-kerl@web.de>
*
@ -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;

View File

@ -1,6 +1,6 @@
<?php
/*
* This file is part of the WebServiceBundle.
* This file is part of the BeSimpleSoapBundle.
*
* (c) Christian Kerl <christian-kerl@web.de>
*
@ -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

View File

@ -1,6 +1,6 @@
<?php
/*
* This file is part of the WebServiceBundle.
* This file is part of the BeSimpleSoapBundle.
*
* (c) Christian Kerl <christian-kerl@web.de>
*
@ -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

View File

@ -1,6 +1,6 @@
<?php
/*
* This file is part of the WebServiceBundle.
* This file is part of the BeSimpleSoapBundle.
*
* (c) Christian Kerl <christian-kerl@web.de>
*
@ -8,7 +8,7 @@
* with this source code in the file LICENSE.
*/
namespace Bundle\WebServiceBundle\ServiceDefinition\Annotation;
namespace BeSimple\SoapBundle\ServiceDefinition\Annotation;
/**
* @Annotation

View File

@ -1,6 +1,6 @@
<?php
/*
* This file is part of the WebServiceBundle.
* This file is part of the BeSimpleSoapBundle.
*
* (c) Christian Kerl <christian-kerl@web.de>
*
@ -8,7 +8,7 @@
* with this source code in the file LICENSE.
*/
namespace Bundle\WebServiceBundle\ServiceDefinition\Annotation;
namespace BeSimple\SoapBundle\ServiceDefinition\Annotation;
/**
* @Annotation

View File

@ -1,6 +1,6 @@
<?php
/*
* This file is part of the WebServiceBundle.
* This file is part of the BeSimpleSoapBundle.
*
* (c) Christian Kerl <christian-kerl@web.de>
*
@ -8,7 +8,7 @@
* with this source code in the file LICENSE.
*/
namespace Bundle\WebServiceBundle\ServiceDefinition\Annotation;
namespace BeSimple\SoapBundle\ServiceDefinition\Annotation;
/**
* @Annotation

View File

@ -1,6 +1,6 @@
<?php
/*
* This file is part of the WebServiceBundle.
* This file is part of the BeSimpleSoapBundle.
*
* (c) Christian Kerl <christian-kerl@web.de>
*
@ -8,7 +8,7 @@
* with this source code in the file LICENSE.
*/
namespace Bundle\WebServiceBundle\ServiceDefinition\Annotation;
namespace BeSimple\SoapBundle\ServiceDefinition\Annotation;
interface TypedElementInterface
{

View File

@ -1,6 +1,6 @@
<?php
/*
* This file is part of the WebServiceBundle.
* This file is part of the BeSimpleSoapBundle.
*
* (c) Christian Kerl <christian-kerl@web.de>
*
@ -8,7 +8,7 @@
* with this source code in the file LICENSE.
*/
namespace Bundle\WebServiceBundle\ServiceDefinition;
namespace BeSimple\SoapBundle\ServiceDefinition;
class Argument
{

View File

@ -1,6 +1,6 @@
<?php
/*
* This file is part of the WebServiceBundle.
* This file is part of the BeSimpleSoapBundle.
*
* (c) Christian Kerl <christian-kerl@web.de>
*
@ -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
{

View File

@ -1,6 +1,6 @@
<?php
/*
* This file is part of the WebServiceBundle.
* This file is part of the BeSimpleSoapBundle.
*
* (c) Christian Kerl <christian-kerl@web.de>
*
@ -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;

View File

@ -1,6 +1,6 @@
<?php
/*
* This file is part of the WebServiceBundle.
* This file is part of the BeSimpleSoapBundle.
*
* (c) Christian Kerl <christian-kerl@web.de>
*
@ -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;

View File

@ -1,6 +1,6 @@
<?php
/*
* This file is part of the WebServiceBundle.
* This file is part of the BeSimpleSoapBundle.
*
* (c) Christian Kerl <christian-kerl@web.de>
*
@ -8,7 +8,7 @@
* with this source code in the file LICENSE.
*/
namespace Bundle\WebServiceBundle\ServiceDefinition;
namespace BeSimple\SoapBundle\ServiceDefinition;
class Header
{

View File

@ -1,6 +1,6 @@
<?php
/*
* This file is part of the WebServiceBundle.
* This file is part of the BeSimpleSoapBundle.
*
* (c) Christian Kerl <christian-kerl@web.de>
*
@ -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)
{

View File

@ -1,6 +1,6 @@
<?php
/*
* This file is part of the WebServiceBundle.
* This file is part of the BeSimpleSoapBundle.
*
* (c) Christian Kerl <christian-kerl@web.de>
*
@ -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;

View File

@ -1,6 +1,6 @@
<?php
/*
* This file is part of the WebServiceBundle.
* This file is part of the BeSimpleSoapBundle.
*
* (c) Christian Kerl <christian-kerl@web.de>
*
@ -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)
{

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://christiankerl.github.com/WebServiceBundle/servicedefinition/1.0/" xmlns:tns="http://christiankerl.github.com/WebServiceBundle/servicedefinition/1.0/" elementFormDefault="qualified">
<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://github.com/BeSimple/BeSimpleSoapBundle/servicedefinition/1.0/" xmlns:tns="http://github.com/BeSimple/BeSimpleSoapBundle/servicedefinition/1.0/" elementFormDefault="qualified">
<element name="webservice" type="tns:WebserviceType" />
<complexType name="WebserviceType">
<sequence>

View File

@ -1,6 +1,6 @@
<?php
/*
* This file is part of the WebServiceBundle.
* This file is part of the BeSimpleSoapBundle.
*
* (c) Christian Kerl <christian-kerl@web.de>
*
@ -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);
}

View File

@ -1,6 +1,6 @@
<?php
/*
* This file is part of the WebServiceBundle.
* This file is part of the BeSimpleSoapBundle.
*
* (c) Christian Kerl <christian-kerl@web.de>
*
@ -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()
{

View File

@ -1,6 +1,6 @@
<?php
/*
* This file is part of the WebServiceBundle.
* This file is part of the BeSimpleSoapBundle.
*
* (c) Christian Kerl <christian-kerl@web.de>
*
@ -8,7 +8,7 @@
* with this source code in the file LICENSE.
*/
namespace Bundle\WebServiceBundle\ServiceDefinition;
namespace BeSimple\SoapBundle\ServiceDefinition;
class Type
{

View File

@ -1,6 +1,6 @@
<?php
/*
* This file is part of the WebServiceBundle.
* This file is part of the BeSimpleSoapBundle.
*
* (c) Christian Kerl <christian-kerl@web.de>
*
@ -8,7 +8,7 @@
* with this source code in the file LICENSE.
*/
namespace Bundle\WebServiceBundle\Soap;
namespace BeSimple\SoapBundle\Soap;
class SoapAttachment
{

View File

@ -1,6 +1,6 @@
<?php
/*
* This file is part of the WebServiceBundle.
* This file is part of the BeSimpleSoapBundle.
*
* (c) Christian Kerl <christian-kerl@web.de>
*
@ -8,7 +8,7 @@
* with this source code in the file LICENSE.
*/
namespace Bundle\WebServiceBundle\Soap;
namespace BeSimple\SoapBundle\Soap;
class SoapHeader
{

View File

@ -1,6 +1,6 @@
<?php
/*
* This file is part of the WebServiceBundle.
* This file is part of the BeSimpleSoapBundle.
*
* (c) Christian Kerl <christian-kerl@web.de>
*
@ -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');
}

View File

@ -1,6 +1,6 @@
<?php
/*
* This file is part of the WebServiceBundle.
* This file is part of the BeSimpleSoapBundle.
*
* (c) Christian Kerl <christian-kerl@web.de>
*
@ -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);
}

View File

@ -1,6 +1,6 @@
<?php
/*
* This file is part of the WebServiceBundle.
* This file is part of the BeSimpleSoapBundle.
*
* (c) Christian Kerl <christian-kerl@web.de>
*
@ -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 <christian-kerl@web.de>

View File

@ -1,6 +1,6 @@
<?php
/*
* This file is part of the WebServiceBundle.
* This file is part of the BeSimpleSoapBundle.
*
* (c) Christian Kerl <christian-kerl@web.de>
*
@ -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 <christian-kerl@web.de>
*/

View File

@ -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)) {

View File

@ -1,6 +1,6 @@
<?php
/*
* This file is part of the WebServiceBundle.
* This file is part of the BeSimpleSoapBundle.
*
* (c) Christian Kerl <christian-kerl@web.de>
*
@ -8,7 +8,7 @@
* with this source code in the file LICENSE.
*/
namespace Bundle\WebServiceBundle\Util;
namespace BeSimple\SoapBundle\Util;
/**
*

View File

@ -1,6 +1,6 @@
<?php
/*
* This file is part of the WebServiceBundle.
* This file is part of the BeSimpleSoapBundle.
*
* (c) Christian Kerl <christian-kerl@web.de>
*
@ -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
{

View File

@ -1,6 +1,6 @@
<?php
/*
* This file is part of the WebServiceBundle.
* This file is part of the BeSimpleSoapBundle.
*
* (c) Christian Kerl <christian-kerl@web.de>
*
@ -8,7 +8,7 @@
* with this source code in the file LICENSE.
*/
namespace Bundle\WebServiceBundle\Util;
namespace BeSimple\SoapBundle\Util;
/**
* @author Christian Kerl <christian-kerl@web.de>

View File

@ -1,6 +1,6 @@
<?php
/*
* This file is part of the WebServiceBundle.
* This file is part of the BeSimpleSoapBundle.
*
* (c) Christian Kerl <christian-kerl@web.de>
*
@ -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.

View File

@ -1,6 +1,6 @@
<?php
/*
* This file is part of the WebServiceBundle.
* This file is part of the BeSimpleSoapBundle.
*
* (c) Christian Kerl <christian-kerl@web.de>
*
@ -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;

View File

@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php
/*
* This file is part of the WebServiceBundle.
* This file is part of the BeSimpleSoapBundle.
*
* (c) Christian Kerl <christian-kerl@web.de>
*
@ -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