Service > Delivery XML

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
sixbynine
Posts: 93
Joined: 10 Jan 2018, 11:22

Service > Delivery XML

Post by sixbynine » 24 Jul 2018, 08:55

Hello,

I'm trying to set up a new basic delivery service.
I used Standard as Provider.

I read :
URL of the web service where the order XML should be sent to and which understands the sent XML, e.g. "https://localhost:443/order.php".

And I set up an endpoint

I tried to make a new order but nothing seems to happen and I did not find any other information about this "order XML".

So I'm wondering if the generation of an xml is just a suggestion or something already existing and working

If it is already existing, here are my questions :

1/ How is it triggered?
2/ How can I debug it?
3/ What is the structure of the XML file?
4/ How can I enable this option? Do I just need to set "Standard" as the provider and add the url of the endpoint as default.url parameter?
5/ Is the xml file written somewhere or sent on-the-fly?

Thank you very much in advance,

sbn

Thank you a lot in advace !

User avatar
aimeos
Administrator
Posts: 7866
Joined: 01 Jan 1970, 00:00

Re: Service > Delivery XML

Post by aimeos » 24 Jul 2018, 21:08

sixbynine wrote: I'm trying to set up a new basic delivery service.
I used Standard as Provider.
First: The "Standard" delivery provider will be deprecated because it's not as generic as it's name suggests. So maybe it's better to implement something creating an easier XML structure.
sixbynine wrote: 1/ How is it triggered?
The XML will be created for orders whose delivery status (mshop_order table) is -1 by the order/service/delivery job controller (which you have to execute regularly via a cron job).
sixbynine wrote: 2/ How can I debug it?
Easiest is by adding a few log() statements to see what happens if the job controller executes the process() method of the service provider.
sixbynine wrote: 3/ What is the structure of the XML file?
There's an XSD: https://github.com/aimeos/aimeos-core/b ... est_v1.xsd
sixbynine wrote: 4/ How can I enable this option? Do I just need to set "Standard" as the provider and add the url of the endpoint as default.url parameter?
Yes, "type" must be "delivery".
sixbynine wrote: 5/ Is the xml file written somewhere or sent on-the-fly?
It's created in memory and sent on the fly.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

sixbynine
Posts: 93
Joined: 10 Jan 2018, 11:22

Re: Service > Delivery XML

Post by sixbynine » 25 Jul 2018, 10:51

Thank you very very much !

sixbynine
Posts: 93
Joined: 10 Jan 2018, 11:22

Re: Service > Delivery XML

Post by sixbynine » 26 Jul 2018, 06:07

Hello,

1/ What do you mean exactly when you say :
First: The "Standard" delivery provider will be deprecated because it's not as generic as it's name suggests. So maybe it's better to implement something creating an easier XML structure.
2/ I've this error :

Error while processing order with ID "xxx": DOMDocument::schemaValidate(): Element 'priceitem': This element is not expected. Expected is ( paymentitem ).

I guess it is because Standard isn't generic ? Where is the xml created in the code?

Thank you very much,

sbn

User avatar
aimeos
Administrator
Posts: 7866
Joined: 01 Jan 1970, 00:00

Re: Service > Delivery XML

Post by aimeos » 26 Jul 2018, 21:28

1.) It will be replaced by something better and more generic in the future (maybe 2019.01)
2.) You are the first one that is using the "Standard" service delivery provider and it got not much love in the past. It might be that XSD and XML are out of sync.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply