Commit Graph

1 Commits

Author SHA1 Message Date
Francis Besset e3ddebfea4 Added SoapResponseListener
This listener allow return a raw result from the action.

Before:
    /**
     * @Soap\Method("hello")
     * @Soap\Param("name", phpType = "string")
     * @Soap\Result(phpType = "string")
     */
    public function helloAction($name)
    {
        return $this->container->get('besimple.soap.response')->setReturnValue(sprintf('Hello %s!', $name));
    }

After:
    /**
     * @Soap\Method("hello")
     * @Soap\Param("name", phpType = "string")
     * @Soap\Result(phpType = "string")
     */
    public function helloAction($name)
    {
        return sprintf('Hello %s!', $name);
    }
2013-02-20 14:45:47 +01:00