Commit Graph

21 Commits

Author SHA1 Message Date
Francis Besset
03f19a0e61 Refactored SoapWebServiceController 2013-02-21 08:27:36 +01:00
Francis Besset
5a88648060 Refactoring of SoapWebServiceController::definitionAction() 2012-08-27 11:44:30 +02:00
Francis Besset
32259355d6 Deleted SoapServerFactory and used BeSimple\SoapServer\SoapServerBuilder to build the SoapServer 2011-10-12 22:01:50 +02:00
Francis Besset
b4da2f727e Added besimple.soap.response service
It is highly recommended not to instantiate BeSimple\SoapBundle\Soap\SoapResponse
but to use the service besimple.soap.response

Before:

    public function helloAction($name)
    {
        return new SoapResponse("Hello ".$name);
    }

After:

    public function helloAction($name)
    {
        return $this
            ->container
            ->get('besimple.soap.response')
            ->setReturnValue("Hello ".$name)
        ;
    }
2011-08-27 22:56:51 +02:00
Francis Besset
ce5c46408a Fixed issue #5 2011-08-26 23:39:43 +02:00
Francis Besset
c154463b33 Updated definition of ComplexType and use classmap option of SoapServer
Please to refer to the documentation for the changes:
http://besim.pl/SoapBundle/tutorial/complex_type.html
2011-08-24 23:36:49 +02:00
Francis Besset
51a36dfb87 Merge remote-tracking branch 'origin/request_headers' 2011-08-17 08:35:49 +02:00
Francis Besset
c5902122bb Added headers in request
You can add @Soap\Header("foobar", phpType="string") in a method definition
2011-08-14 18:04:01 +02:00
Francis Besset
a6f8ccbfd2 Cleaned code 2011-08-11 23:56:06 +02:00
Francis Besset
b0efd027d5 Fixed issue #3 2011-08-11 00:42:14 +02:00
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
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
Christian Kerl
0126cd4221 some cleanup
Conflicts:

	Controller/SoapWebServiceController.php
	ServiceBinding/ServiceBinder.php
2011-07-17 18:15:06 +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
51d1d28830 Cleaned files 2011-07-14 17:45:03 +02:00
Christian Kerl
ce844e799f some small fixes to get it working 2011-04-09 00:43:47 +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
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
0996cf80d9 removed ServiceConfigurationFactory 2011-03-26 16:22:56 +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