Problem with Laminas Soap Server

I’m getting trouble when trying to make a Soap Server. I generate a very simple Service but when I analyse the wsdl I get the following errors:

The structure of your WSDL is

types (1)
portType (1)
binding (1)
service (1)
message (4)

But should be

types
messages
portTypes
bindings
services

I use this very simple class:

class Test
{
    /**
     * Create a client
     *
     * @param string $code
     * @param string $name
     * @return string
     */
    public function createClient($code, $name)
    {
        return "created";
    }
    /**
     * Update a client
     *
     * @param string $code
     * @param string $name
     * @return string
     */
    public function updateClient($code, $name)
    {
        return "updated";
    }
}

And I generate the server with:

        $soap = new \Laminas\Soap\Server("test?wsdl");
        $soap->setClass(Test::class);
        $soap->handle();

Any help with this problem? Thanks in advance

Hello and welcome to our forums! :smiley:

Can you provide the full code to reproduce the problem?