Commit Graph

467 Commits

Author SHA1 Message Date
Francis Besset 4fa893042f New definition of complex type
The exposure of complex type properties was done only with public property.
Now you can expose properties and public methods.

Before:
  In a complex type:
    /**
     * @var string
     */
   public $var;

After:
  In a complex type:
    use BeSimple\SoapBundle\ServiceDefinition\Annotation as Soap;

    /**
     * @Soap\PropertyComplexType("string", name="var", nillable="true")
     */
    public $username;

    private $email;

    /**
     * @Soap\MethodComplexType("string", name="email", nillable="true", setter="setEmail")
     */
    public function getEmail()
    {
        return $this->email;
    }

    public function setEmail($email)
    {
        $this->email = $email;
    }

name, nillable are optionnal.
setter is optional and only available for MethodComplexType.
2011-07-23 21:24:59 +02:00
Francis Besset 9bd9677325 Simplified the creation of WebServiceContext 2011-07-21 22:55:59 +02:00
Francis Besset c33005fed2 Fixed ServiceDefinition argument and type 2011-07-21 21:03:39 +02:00
Francis Besset 695b7fb663 Simplified exposure functions in README 2011-07-21 20:53:49 +02:00
Francis Besset 3c5ef798c1 Fixed typo in README 2011-07-18 23:31:03 +02:00
Francis Besset c13a96131b Replaced webservice.* service name by besimple.soap.* 2011-07-18 22:59:20 +02:00
Francis Besset 055bb8a96c Replaced Bundle\WebServiceBundle by BeSimple\SoapBundle 2011-07-18 22:43:12 +02:00
Francis Besset 265826f6c6 Deleted useless ControllerListener 2011-07-17 20:41:18 +02:00
Francis Besset b4a293940a Added Contributors file 2011-07-17 19:46:43 +02:00
Francis Besset 234689f4e5 Fixed typo 2011-07-17 19:41:06 +02:00
Christian Kerl 76e7f42ccb added TypeRepository managing all mappings from php to xml types; removed classmap generation from SoapServerFactory, this will be done by TypeRepository::createComplexTypeMap(...);
Conflicts:

	Resources/config/webservice.xml
	Soap/SoapServerFactory.php
	Util/QName.php
	WebServiceContext.php
2011-07-17 19:37:23 +02:00
Christian Kerl 5da442b716 added Zend\Soap\Wsdl\Strategy implementation supporting array types and complex types (classes)
Conflicts:

	ServiceDefinition/Dumper/WsdlDumper.php
2011-07-17 18:43:58 +02:00
Christian Kerl 62e07ba43c added support to retrieve parameter php type form type hint
Conflicts:

	ServiceDefinition/Loader/AnnotationClassLoader.php
2011-07-17 18:27:33 +02:00
Christian Kerl 0126cd4221 some cleanup
Conflicts:

	Controller/SoapWebServiceController.php
	ServiceBinding/ServiceBinder.php
2011-07-17 18:15:06 +02:00
Francis Besset 887169de13 Added debug parameter at SoapServerFactory
If kernel.debug parameter is true, the cache is disabled.
2011-07-17 12:35:47 +02:00
Francis Besset 1c608ccf20 The bundle is back!
The definition of service has changed, read the README.
2011-07-17 10:58:12 +02:00
Francis Besset 81118f8d47 Deleted "name" element in the configuration of services 2011-07-14 19:20:20 +02:00
Francis Besset 581ebaf865 Fixed DIC 2011-07-14 18:13:34 +02:00
Francis Besset 51d1d28830 Cleaned files 2011-07-14 17:45:03 +02:00
Francis Besset 7ddf05cec1 Added scripts to run phpunit tests 2011-07-14 17:43:37 +02:00
Francis Besset ab1d720e13 Cleaned tests 2011-07-14 16:46:28 +02:00
Christian Kerl ce844e799f some small fixes to get it working 2011-04-09 00:43:47 +02:00
Christian Kerl 8367556323 added annotation support 2011-04-09 00:40:31 +02:00
Christian Kerl 05a96310b3 fixed WsdlDumper to generate valid WSDL files 2011-04-09 00:38:39 +02:00
Christian Kerl 742c2f304f fixed typo 2011-04-09 00:37:50 +02:00
Christian Kerl 1370596779 updated README 2011-04-08 01:19:57 +02:00
Christian Kerl fa07646e3a wsdl definition can now be retrieved; aligned controller method and route naming; 2011-04-08 00:46:58 +02:00
Christian Kerl a4d69aedbc concrete WebServiceContext services are now defined by DI extension; 2011-04-08 00:45:52 +02:00
Christian Kerl 192cdf0af2 disabled ConverterRepository::registerTypeConverterServices(), has to be replaced with a compiler pass; 2011-04-08 00:42:20 +02:00
Christian Kerl 8895a69d04 replaced old LoaderInterface with Symfony Config Component's LoaderInterface; added annotation based loader implementations; 2011-04-08 00:41:16 +02:00
Christian Kerl 70da526fd4 added WebServiceContext class; SoapWebServiceController now uses WebServiceContext to acquire all objects needed to handle a request for a certain service; 2011-04-07 21:54:53 +02:00
Christian Kerl b40a1b1efd SoapServerFactory no longer depends on dumper interface 2011-04-07 21:52:59 +02:00
Christian Kerl aa1dfdf0f8 refactored service definition dumper classes 2011-04-07 21:49:59 +02:00
Christian Kerl ff6eca48ee reimplemented DI extension classes and DI container config; 2011-04-07 21:49:01 +02:00
Christian Kerl cf5665a502 renamed service definition file; removed old routing.xml; 2011-04-07 19:47:14 +02:00
Christian Kerl 8a0e84aaea added default routing configuration 2011-04-07 18:39:41 +02:00
Christian Kerl 71914f34d2 moved LICENSE to Resources/meta/ 2011-04-07 18:38:38 +02:00
Christian Kerl 0f29e64f74 added empty configuration definition 2011-03-26 16:43:41 +01:00
Christian Kerl d4c3e15f6f updated service configuration 2011-03-26 16:23:44 +01:00
Christian Kerl 0996cf80d9 removed ServiceConfigurationFactory 2011-03-26 16:22:56 +01:00
Christian Kerl 74005058c0 added default routing configuration for SoapWebServiceController 2011-03-25 20:14:48 +01:00
Christian Kerl 52642f3ec6 started refactoring SoapKernel to SoapWebServiceController, so Symfony2 kernel is no longer overridden and no special front controller scripts or environments are required 2011-03-25 20:10:28 +01:00
Christian Kerl 047db378c7 refactored code to better separate responsibilities 2011-02-03 01:07:08 +01:00
Christian Kerl e53b83616b added namespace to service definition; 2011-02-03 01:04:12 +01:00
Christian Kerl 79da80bdb9 fixed path to xsd schema 2011-01-07 23:03:37 +01:00
Christian Kerl 2a2552b147 added initial implementation of WsdlFileDumper based on Zend Wsdl class 2011-01-07 23:03:03 +01:00
Christian Kerl 4e54616d1e refactored FileLoader class to use new Assert class 2011-01-07 23:02:04 +01:00
Christian Kerl 4d8fae2fbe added Assert class to simplify method parameter validation 2011-01-07 23:01:34 +01:00
Christian Kerl 928dc80b5e added return type to Method class 2011-01-07 23:00:17 +01:00
Christian Kerl 1f8773a433 fixed indention 2011-01-07 22:57:40 +01:00