Ejemplo n.º 1
0
$bra5ServiceLogin = new Bra5ServiceLogin();
// sample call for Bra5ServiceLogin::Login()
if ($bra5ServiceLogin->Login(new Bra5StructLogin())) {
    print_r($bra5ServiceLogin->getResult());
} else {
    print_r($bra5ServiceLogin->getLastError());
}
/*******************************
 * Example for Bra5ServiceLogout
 */
$bra5ServiceLogout = new Bra5ServiceLogout();
// sample call for Bra5ServiceLogout::Logout()
if ($bra5ServiceLogout->Logout(new Bra5StructLogout())) {
    print_r($bra5ServiceLogout->getResult());
} else {
    print_r($bra5ServiceLogout->getLastError());
}
/****************************
 * Example for Bra5ServiceGet
 */
$bra5ServiceGet = new Bra5ServiceGet();
// sample call for Bra5ServiceGet::getProductionLines()
if ($bra5ServiceGet->getProductionLines(new Bra5StructGetProductionLines())) {
    print_r($bra5ServiceGet->getResult());
} else {
    print_r($bra5ServiceGet->getLastError());
}
// sample call for Bra5ServiceGet::getDocumentSplitTypes()
if ($bra5ServiceGet->getDocumentSplitTypes(new Bra5StructGetDocumentSplitTypes())) {
    print_r($bra5ServiceGet->getResult());
} else {