# Problem with Laminas Soap Server

**URL:** <https://discourse.laminas.dev/t/problem-with-laminas-soap-server/3226>\
**Category:** Components & MVC\
**Tags:** laminas-soap\
**Created:** [March 3, 2023, 9:01am UTC](https://discourse.laminas.dev/t/problem-with-laminas-soap-server/3226 "2023-03-03T09:01:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Emilio\_Navarra](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.laminas.dev/emilio_navarra/32/1298_2.png) [@Emilio\_Navarra](https://discourse.laminas.dev/u/Emilio_Navarra)\
**Post date:** [March 3, 2023, 9:01am UTC](https://discourse.laminas.dev/t/problem-with-laminas-soap-server/3226/1 "2023-03-03T09:01:33Z")

</div>

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:

```auto
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:

```auto
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:

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

```

Any help with this problem? Thanks in advance

---

<div class="post-metadata">

**Author:** ![froschdesign](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.laminas.dev/froschdesign/32/38_2.png) [@froschdesign](https://discourse.laminas.dev/u/froschdesign)\
**Post date:** [March 9, 2023, 8:25am UTC](https://discourse.laminas.dev/t/problem-with-laminas-soap-server/3226/2 "2023-03-09T08:25:38Z")

</div>

Hello and welcome to our forums! 😃

Can you provide the full code to reproduce the problem?
