Hi,
I have created client for my API using Guzzle\Service\Client with service description in JSON but when I try to call anything I get this php error:
PHP Fatal error: Call to undefined method Guzzle\Http\Message\Request::setBody() in /.../vendor/guzzle/guzzle/src/Guzzle/Service/Command/LocationVisitor/Request/JsonVisitor.php on line 67
which concerns this row of code: $request->setBody(json_encode($json));
I found out class of $request object and it is this: Guzzle\Http\Message\Request but it does not have setBody() method defined. Am I doing something wrong or there is a bug?
Thanks a lot for any help.
Regards,
Jakub