Closed wolfgangmauer closed 3 years ago
Hi again @wolfgangmauer
Thanks for submitting this issue.
Just to be sure: The SOAP Client adds commas instead of dots when converting floats to strings for the xml request, right?
To be honest i didn't know that it does that until now.
I guess i'll have to add a conversion before submitting the xml. I've already implemented a similar workaround for booleans. DHL expects a 1 for true and a 0 for false. However the PHP Soap extension converts booleans to 'true' and 'false'...
I'll answer to this issue when i've done that. 👍
@wolfgangmauer
i have just released a new version with a fix for your issue. Could you please check if it works for you aswell? :-)
Upgrading christoph-schaeffer/dhl-business-shipping (3.1.2 => 3.1.4): Extracting archive No, same error
Exception has occurred. Fatal error: Uncaught SoapFault exception: [soap:Server] Cannot convert string "0,4" to a double in C:\xampp7.4\htdocs\top-soft.online\vendor\christoph-schaeffer\dhl-business-shipping\src\Soap.php:53 Stack trace:
works like a charm with 3.1.4.2
In my workflow i must set the locale to german.
Now i set $shipmentOrder->Shipment->ShipmentDetails->ShipmentItem->weightInKG = 0.4; ... $response = $client->validateShipment($request); Exception has occurred. SoapFault: Cannot convert string "0,4" to a double