/**
  * @param $SKU
  * @param $notes
  * @param $qty
  * @param $packed
  * @param $cu_ft_per_carton
  * @param DateTime $expiration_date
  * @param $fulfillment_sale_price
  * @param $fulfillment_discount_percentage
  * @param $fulfillment_discount_amount
  * @return OrderLineItem
  */
 private function buildOrderLineLitem($SKU, $notes, $qty, $packed, $cu_ft_per_carton, \DateTime $expiration_date, $fulfillment_sale_price, $fulfillment_discount_percentage, $fulfillment_discount_amount)
 {
     // New up a OrderLineItem
     // Set information via method attributes
     $order_line_item = new OrderLineItem($qty, $packed, $cu_ft_per_carton, $expiration_date, $fulfillment_sale_price, $fulfillment_discount_percentage, $fulfillment_discount_amount);
     // Set (more) information method attributes
     $order_line_item->setSKU($SKU);
     $order_line_item->setNotes($notes);
     // Return the orderLineItem
     return $order_line_item;
 }
$shipping_instructions->setShipService("FedEx");
$shipping_instructions->setShippingNotes("Shipping Notes");
$shipping_instructions->setShipPointZip("33327");
$shipping_instructions->setSCACCode("2135");
// etc. information
$shipping_info = new ShipmentInfoExt(1, 1, 1.0, 1, 25.0, 23.0);
$fulfillment_info = new FulfillInvInfo(24.0, 26.88, 12.99);
// set shipping information
$order->setShippingInstructions($shipping_instructions);
// set shipment information
$order->setShipmentInfo($shipping_info);
$order->setShipTo($contact_info);
// order line item ( new up & instantiate )
$order_line_item = new OrderLineItem(1.0, 1.0, 2.0, new DateTime(), 29.99, 1.0, 1.0);
$order_line_item->setQty(2.0);
$order_line_item->setSKU("Test1");
// array of order line items
$order_line_items = new ArrayOfOrderLineItem();
$order_line_items->setOrderLineItem([$order_line_item]);
// set order line items to be order line items
$order->setOrderLineItems($order_line_items);
// new up & instantiate a new ArrayOfOrder object, and set the main order to the order above.
$aoOrders = new ArrayOfOrder();
$aoOrders->setOrder([$order]);
// let's echo out all functions.
try {
    // let's execute an order with the integrated soap client.
    echo "<pre>" . var_export($b->CreateOrders($external_login_infomation, $aoOrders), 1) . " </pre > ";
} catch (Exception $e) {
    error_log($e->getCode() . "-" . $e->getMessage() . "-" . $e->getTraceAsString());
}