public function toArray() {
        $params = array();
        foreach ($this->getParams() as $param) {
            $params[$param->getName()] = $param->toArray();
        }
        $m = array(
            //'description',
            //'transport' => null,
            'parameters' => $params,
            //'returns' => null
        );
        if ($this->use_canonical) {
            $m['target'] = $this->smd->getTarget(). '/' . $this->service->getDottedClassname() . '.' . $this->getName();
        }
        return $m;
    }