Skip to content


The HTTP transport uses Guzzle internally.


The transport needs to be activated using the builder:

use CuyZ\WebZ\Core\Bus\WebServiceBus;
use CuyZ\WebZ\Http\HttpTransport;

$bus = WebServiceBus::builder()
    ->withTransport(new HttpTransport());


To use the transport in a webservice you need to implement the payload method in you webservice class:

use CuyZ\WebZ\Core\WebService;
use CuyZ\WebZ\Http\Payload\HttpPayload;

final class MyHttpWebService extends WebService
    protected function payload(): HttpPayload
        return HttpPayload::request('GET', '');

    // Other methods...