Service > Delivery XML
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!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Service > Delivery XML
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 !
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 !
Re: Service > Delivery XML
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: I'm trying to set up a new basic delivery service.
I used Standard as Provider.
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: 1/ How is it triggered?
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: 2/ How can I debug it?
There's an XSD: https://github.com/aimeos/aimeos-core/b ... est_v1.xsdsixbynine wrote: 3/ What is the structure of the XML file?
Yes, "type" must be "delivery".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?
It's created in memory and sent on the fly.sixbynine wrote: 5/ Is the xml file written somewhere or sent on-the-fly?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: Service > Delivery XML
Thank you very very much !
Re: Service > Delivery XML
Hello,
1/ What do you mean exactly when you say :
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
1/ What do you mean exactly when you say :
2/ I've this error :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.
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
Re: Service > Delivery XML
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.
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, give us a star
If you like Aimeos, give us a star