Thank you that works great now. I was able to use those calls with Jquery/AJax and I now let users upload a shopping carts from a csv file.
You should consider adding this as a feature in the future.
Here where i did it
https://asia.serpent.com/xcart/uploadcart.html