Salamek/PplMyApi

Product::EXPORT_PACKAGE_COD not working

Closed this issue · 8 comments

Hi,

i trying to send a EXPORT package with DOB in the same way "createPackages" for CZ Privat and CZ Business with DOB.

The problem is that the reply message is NULL without error but the package was not created.

Can someone check this or test is if he has the same?

Thank you
Dominik

The PPL guy ask me for the request i send in xml. Is there a way to get this?

@infinity-commerce You will need to modify your PplMyApi installation source to enable trace and dump data you need.

First edit $this->soap = new \SoapClient($this->wsdl); on line:

$this->soap = new \SoapClient($this->wsdl);

to look like this (to enable trace in SoapClient.):

$this->soap = new \SoapClient($this->wsdl, ['trace' => 1]);

And then add echo "REQUEST:\n" . htmlentities($this->soap->__getLastRequest()) . PHP_EOL; on this line

To print out Soap request made by that call

Thank you that works for me

in /src/Enum/Product.php

const EXPORT_PACKAGE = 9;

const EXPORT_PACKAGE_COD = 10;

need to be:

    const EXPORT_PACKAGE = 36;
    const EXPORT_PACKAGE_COD = 37;

@infinity-commerce those are

const PPL_PARCEL_CONNECT = 36;
const PPL_PARCEL_CONNECT_COD = 37;

Did PPL changed their Product names/numbers?
or did you just got confused and used wrong product name?

Dont knwo he sends me a list of test series "Export product" and "Export product - cash on delivery"

Well that is just great... could you please ask your "PPL guy" for full official Product name => id table PDF or something? So i can close this issue with clear conscience?
THX

You can close it. In klient.ppl.cz it is PPL_PARCEL_CONNECT but support calls it simple "Export"