<?php
/**
 * This file aims to show you how to use this generated package.
 * In addition, the goal is to show which methods are available and the fist needed parameter(s)
 * You have to use an associative array such as:
 * - the key must be a constant beginning with WSDL_ from AbstractSoapClientbase class each generated ServiceType class extends this class
 * - the value must be the corresponding key value (each option matches a {@link http://www.php.net/manual/en/soapclient.soapclient.php} option)
 * $options = array(
 * \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_URL => 'https://webservice.stellae.us/SIIServices_multi/Siiservice.svc?wsdl',
 * \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_TRACE => true,
 * \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_LOGIN => 'you_secret_login',
 * \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_PASSWORD => 'you_secret_password',
 * );
 * etc....
 */
require_once __DIR__ . '/vendor/autoload.php';
/**
 * Minimal options
 */
$options = array(
    \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_URL => 'https://webservice.stellae.us/SIIServices_multi/Siiservice.svc?wsdl',
    \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_CLASSMAP => ClassMap::get(),
);
/**
 * Samples for Getinventoryonhand ServiceType
 */
$getinventoryonhand = new \ServiceType\Getinventoryonhand($options);
/**
 * Sample call for get_inventory_on_hand operation/method
 */
if ($getinventoryonhand->get_inventory_on_hand(new \StructType\Get_inventory_on_hand()) !== false) {
    print_r($getinventoryonhand->getResult());
} else {
    print_r($getinventoryonhand->getLastError());
}
/**
 * Samples for Neworderentry ServiceType
 */
$neworderentry = new \ServiceType\Neworderentry($options);
/**
 * Sample call for new_order_entry operation/method
 */
if ($neworderentry->new_order_entry(new \StructType\New_order_entry()) !== false) {
    print_r($neworderentry->getResult());
} else {
    print_r($neworderentry->getLastError());
}
/**
 * Samples for Getshipmentinformation ServiceType
 */
$getshipmentinformation = new \ServiceType\Getshipmentinformation($options);
/**
 * Sample call for get_shipment_information operation/method
 */
if ($getshipmentinformation->get_shipment_information(new \StructType\Get_shipment_information()) !== false) {
    print_r($getshipmentinformation->getResult());
} else {
    print_r($getshipmentinformation->getLastError());
}
/**
 * Samples for Getcataloginformation ServiceType
 */
$getcataloginformation = new \ServiceType\Getcataloginformation($options);
/**
 * Sample call for get_catalog_information operation/method
 */
if ($getcataloginformation->get_catalog_information(new \StructType\Get_catalog_information()) !== false) {
    print_r($getcataloginformation->getResult());
} else {
    print_r($getcataloginformation->getLastError());
}
/**
 * Samples for Importlinelist ServiceType
 */
$importlinelist = new \ServiceType\Importlinelist($options);
/**
 * Sample call for import_line_list operation/method
 */
if ($importlinelist->import_line_list(new \StructType\Import_line_list()) !== false) {
    print_r($importlinelist->getResult());
} else {
    print_r($importlinelist->getLastError());
}
/**
 * Samples for Newpurchaseorderentry ServiceType
 */
$newpurchaseorderentry = new \ServiceType\Newpurchaseorderentry($options);
/**
 * Sample call for new_purchase_order_entry operation/method
 */
if ($newpurchaseorderentry->new_purchase_order_entry(new \StructType\New_purchase_order_entry()) !== false) {
    print_r($newpurchaseorderentry->getResult());
} else {
    print_r($newpurchaseorderentry->getLastError());
}
/**
 * Samples for Getpurchaseorderreceipt ServiceType
 */
$getpurchaseorderreceipt = new \ServiceType\Getpurchaseorderreceipt($options);
/**
 * Sample call for get_purchase_order_receipt operation/method
 */
if ($getpurchaseorderreceipt->get_purchase_order_receipt(new \StructType\Get_purchase_order_receipt()) !== false) {
    print_r($getpurchaseorderreceipt->getResult());
} else {
    print_r($getpurchaseorderreceipt->getLastError());
}
/**
 * Samples for Newasnentry ServiceType
 */
$newasnentry = new \ServiceType\Newasnentry($options);
/**
 * Sample call for new_asn_entry operation/method
 */
if ($newasnentry->new_asn_entry(new \StructType\New_asn_entry()) !== false) {
    print_r($newasnentry->getResult());
} else {
    print_r($newasnentry->getLastError());
}
/**
 * Samples for Newdeliveryticket ServiceType
 */
$newdeliveryticket = new \ServiceType\Newdeliveryticket($options);
/**
 * Sample call for new_delivery_ticket operation/method
 */
if ($newdeliveryticket->new_delivery_ticket(new \StructType\New_delivery_ticket_1()) !== false) {
    print_r($newdeliveryticket->getResult());
} else {
    print_r($newdeliveryticket->getLastError());
}
/**
 * Samples for Orderstatus ServiceType
 */
$orderstatus = new \ServiceType\Orderstatus($options);
/**
 * Sample call for order_status operation/method
 */
if ($orderstatus->order_status(new \StructType\Order_status()) !== false) {
    print_r($orderstatus->getResult());
} else {
    print_r($orderstatus->getLastError());
}
/**
 * Samples for Importinvoice ServiceType
 */
$importinvoice = new \ServiceType\Importinvoice($options);
/**
 * Sample call for import_invoice operation/method
 */
if ($importinvoice->import_invoice(new \StructType\Import_invoice()) !== false) {
    print_r($importinvoice->getResult());
} else {
    print_r($importinvoice->getLastError());
}
/**
 * Samples for Retailstoreitemmaster ServiceType
 */
$retailstoreitemmaster = new \ServiceType\Retailstoreitemmaster($options);
/**
 * Sample call for retail_store_item_master operation/method
 */
if ($retailstoreitemmaster->retail_store_item_master(new \StructType\Retail_store_item_master()) !== false) {
    print_r($retailstoreitemmaster->getResult());
} else {
    print_r($retailstoreitemmaster->getLastError());
}
/**
 * Samples for Retailstoreiteminventory ServiceType
 */
$retailstoreiteminventory = new \ServiceType\Retailstoreiteminventory($options);
/**
 * Sample call for retail_store_item_inventory operation/method
 */
if ($retailstoreiteminventory->retail_store_item_inventory(new \StructType\Retail_store_item_inventory()) !== false) {
    print_r($retailstoreiteminventory->getResult());
} else {
    print_r($retailstoreiteminventory->getLastError());
}
/**
 * Samples for Retailstoreallocationcalculation ServiceType
 */
$retailstoreallocationcalculation = new \ServiceType\Retailstoreallocationcalculation($options);
/**
 * Sample call for retail_store_allocation_calculation operation/method
 */
if ($retailstoreallocationcalculation->retail_store_allocation_calculation(new \StructType\Retail_store_allocation_calculation()) !== false) {
    print_r($retailstoreallocationcalculation->getResult());
} else {
    print_r($retailstoreallocationcalculation->getLastError());
}
/**
 * Samples for Retailstoreitemquery ServiceType
 */
$retailstoreitemquery = new \ServiceType\Retailstoreitemquery($options);
/**
 * Sample call for retail_store_item_query operation/method
 */
if ($retailstoreitemquery->retail_store_item_query(new \StructType\Retail_store_item_query()) !== false) {
    print_r($retailstoreitemquery->getResult());
} else {
    print_r($retailstoreitemquery->getLastError());
}
/**
 * Samples for Retailstoreitemsales ServiceType
 */
$retailstoreitemsales = new \ServiceType\Retailstoreitemsales($options);
/**
 * Sample call for retail_store_item_sales operation/method
 */
if ($retailstoreitemsales->retail_store_item_sales(new \StructType\Retail_store_item_sales()) !== false) {
    print_r($retailstoreitemsales->getResult());
} else {
    print_r($retailstoreitemsales->getLastError());
}
