<?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 first 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 => 'http://integracao.webmotors.com.br/Motos/wsEstoqueRevendedorMotos.asmx?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 => 'http://integracao.webmotors.com.br/Motos/wsEstoqueRevendedorMotos.asmx?WSDL',
    \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_CLASSMAP => ClassMap::get(),
);
/**
 * Samples for Obter ServiceType
 */
$obter = new \ServiceType\Obter($options);
/**
 * Sample call for obterEstoqueAtualMotos operation/method
 */
if ($obter->obterEstoqueAtualMotos(new \StructType\ObterEstoqueAtualMotos()) !== false) {
    print_r($obter->getResult());
} else {
    print_r($obter->getLastError());
}
/**
 * Samples for Incluir ServiceType
 */
$incluir = new \ServiceType\Incluir($options);
/**
 * Sample call for incluirMoto operation/method
 */
if ($incluir->incluirMoto(new \StructType\IncluirMoto()) !== false) {
    print_r($incluir->getResult());
} else {
    print_r($incluir->getLastError());
}
/**
 * Sample call for incluirFotoMoto operation/method
 */
if ($incluir->incluirFotoMoto(new \StructType\IncluirFotoMoto()) !== false) {
    print_r($incluir->getResult());
} else {
    print_r($incluir->getLastError());
}
/**
 * Sample call for incluirVideo operation/method
 */
if ($incluir->incluirVideo(new \StructType\IncluirVideo()) !== false) {
    print_r($incluir->getResult());
} else {
    print_r($incluir->getLastError());
}
/**
 * Samples for Alterar ServiceType
 */
$alterar = new \ServiceType\Alterar($options);
/**
 * Sample call for alterarMoto operation/method
 */
if ($alterar->alterarMoto(new \StructType\AlterarMoto()) !== false) {
    print_r($alterar->getResult());
} else {
    print_r($alterar->getLastError());
}
/**
 * Samples for Excluir ServiceType
 */
$excluir = new \ServiceType\Excluir($options);
/**
 * Sample call for excluirMoto operation/method
 */
if ($excluir->excluirMoto(new \StructType\ExcluirMoto()) !== false) {
    print_r($excluir->getResult());
} else {
    print_r($excluir->getLastError());
}
/**
 * Sample call for excluirFotoMoto operation/method
 */
if ($excluir->excluirFotoMoto(new \StructType\ExcluirFotoMoto()) !== false) {
    print_r($excluir->getResult());
} else {
    print_r($excluir->getLastError());
}
/**
 * Sample call for excluirVideo operation/method
 */
if ($excluir->excluirVideo(new \StructType\ExcluirVideo()) !== false) {
    print_r($excluir->getResult());
} else {
    print_r($excluir->getLastError());
}
/**
 * Samples for Publicar ServiceType
 */
$publicar = new \ServiceType\Publicar($options);
/**
 * Sample call for publicarFotoanimacaoMoto operation/method
 */
if ($publicar->publicarFotoanimacaoMoto(new \StructType\PublicarFotoanimacaoMoto()) !== false) {
    print_r($publicar->getResult());
} else {
    print_r($publicar->getLastError());
}
/**
 * Samples for Desativar ServiceType
 */
$desativar = new \ServiceType\Desativar($options);
/**
 * Sample call for desativarFotoanimacaoMoto operation/method
 */
if ($desativar->desativarFotoanimacaoMoto(new \StructType\DesativarFotoanimacaoMoto()) !== false) {
    print_r($desativar->getResult());
} else {
    print_r($desativar->getLastError());
}
/**
 * Samples for Fotos ServiceType
 */
$fotos = new \ServiceType\Fotos($options);
/**
 * Sample call for FotosMoto operation/method
 */
if ($fotos->FotosMoto(new \StructType\FotosMoto()) !== false) {
    print_r($fotos->getResult());
} else {
    print_r($fotos->getLastError());
}
/**
 * Samples for Avalicao ServiceType
 */
$avalicao = new \ServiceType\Avalicao($options);
/**
 * Sample call for AvalicaoMoto operation/method
 */
if ($avalicao->AvalicaoMoto(new \StructType\AvalicaoMoto()) !== false) {
    print_r($avalicao->getResult());
} else {
    print_r($avalicao->getLastError());
}
/**
 * Samples for Trocar ServiceType
 */
$trocar = new \ServiceType\Trocar($options);
/**
 * Sample call for TrocarModalidadeMoto operation/method
 */
if ($trocar->TrocarModalidadeMoto(new \StructType\TrocarModalidadeMoto()) !== false) {
    print_r($trocar->getResult());
} else {
    print_r($trocar->getLastError());
}
