Skip to content

Error sending arguments #237

@ElRochito

Description

@ElRochito

HI,

Since I've upgrade to 3.0.1, I've got problem while sending arguments.

Indeed, for example :

Soap::baseWsdl($request->host)
       ->withOptions([
            'soap_version' => SOAP_1_2,
        ])
        ->call('GetTeeSheetByDate', [
                'courseId' => 1,
                'fromDateOA' => '444444',
                'toDateOA' => '444444'
            ]);

It generate a request like this (on version 3.0.1)

<?xml version="1.0" encoding="UTF-8"?>\n
    <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:ns1="http://tempuri.org/Psk.WTS8.WebServices/OnlineReservationService"><env:Body><ns1:GetTeeSheetByDate/><param1>44444</param1><param2>44444</param2></env:Body></env:Envelope>\n

We should have : (on version 3.0.0.beta.3 it was this good format)

<?xml version="1.0" encoding="UTF-8"?>\n
    <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:ns1="http://tempuri.org/Psk.WTS8.WebServices/OnlineReservationService"><env:Body><ns1:GetTeeSheetByDate/><ns1:courseId>1</ns1:courseId><ns1:fromDateOA>44444</ns1:fromDateOA><ns1:toDateOA>44444</ns1:toDateOA></env:Body></env:Envelope>

Data are not correctly formatted and it missing one of them (eg: courseId)

My problem seems to be linked to your fix (fix(#233): Array of arguments is not working correctly @CodeDredd (04113b4))

My WSDL looks like :
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions