Volusion API /导入XML用于跟踪信息curl / php?

I have an XML file I can auto generate and upload daily. And I wish to take that XML and automatically update/close the orders in Volusion and add the tracking number...

I have the API credentials, encrypted PW, etc. and I have this XML, but I am missing the middle piece that will actually do the import. and hopefully on a defined interval (like daily)

(I am trying to avoid having to keep uploading a .csv manually through the web admin every day)

my XML looks like:

enter image description here

does anyone have an example of importing something with PHP/CURL? (I have PHP access on another server)

We have a cheap $5/mo server at Godaddy as the "middle man" for these kinds of operations.

It works great, although not necessary if you have access to Linux servers as you said.

We are calling the API for a dozen different functions, on a regular basis, using cron jobs in Linux and executing cURL through PHP and MySQL. You could accomplish this using any scripting language you like!

We also have a few different software products running on Microsoft servers in the office that communicate with Volusion as well.

You are able to create server-side ASP pages, but the functionality is limited.

Here is a basic example in PHP:

$url = 'http://www.yoursite.com/net/WebService.aspx?Login=USERNAME&EncryptedPassword=PASSWORD&Import=Update';

$xml = 'YOUR COMPLETE XML';

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, FALSE);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_POST, TRUE);
curl_setopt($ch, CURLOPT_POSTFIELDS, $xml); 
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type:application/x-www-form-urlencoded; charset=utf-8", "Content-Action:Volusion_API"));

$head = curl_exec($ch);
$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);

From http://helpcenter.volusion.com/developers/get-building/order-management-trackingnumbers-developer

Sample XML Request Data

<?xml version="1.0" encoding="utf-8" ?>
<xmldata>
  <TrackingNumbers>
    <gateway>UPS</gateway>
    <MarkOrderShipped>true</MarkOrderShipped>
    <OrderID>XXXX</OrderID>
    <SendShippedEmail>false</SendShippedEmail>
    <Shipment_Cost>0</Shipment_Cost>
    <ShippingMethodID>141</ShippingMethodID>
    <TrackingNumber>XXXXXXXXXXXXX</TrackingNumber>
  </TrackingNumbers>
</xmldata>

POST

POST http://yourdomain.com/net/WebService.aspx?Login=you@yourdomain.com&EncryptedPassword=YOURPASS&Import=Insert-Update