Ejemplo n.º 1
0
<?php

set_include_path(dirname(_FILE_) . '/../');
echo '<h1>Test PBUY</h1>';
require_once 'PBUY.class.php';
$WsdlBase = new PBUY();
//echo '<h2>Erreur</h2>';
//echo $WsdlBase->getErrorDetail(404);
//echo $WsdlBase->getImage(2);
//echo '<h2>AllPoints</h2>';
//echo $WsdlBase->getAllPoints();
echo '<h2>On affiche le nom du point</h2>';
echo $WsdlBase->getPointName(2);
echo '<h2>Un mec se logue sans mdp</h2>';
echo $WsdlBase->loadSeller('6362', 2, 'test', 2);
echo '<h2>On affiche son nom & Co</h2>';
echo $WsdlBase->getSellerIdentity();
echo '<h2>Eventuellement sa photo si on l\'a pas en mémoire</h2>';
//echo $client->getImage(2);
//echo '<h2>On envoie son mot de passe</h2>';
//echo $WsdlBase->checkPasswordSeller('toto');
echo '<h2>On teste ses droits (point_man, mode_manuel, reloader, seller</h2>';
echo $WsdlBase->isPointMan();
echo $WsdlBase->isModeManuel();
echo $WsdlBase->isReloader();
echo $WsdlBase->isSeller();
//echo '<h2>Si point_man, il peut afficher la liste des points...</h2>';
//echo $WsdlBase->getAllPoints();
//echo '<h2>... et en sélectionner un</h2>';
//echo $WsdlBase->setPoint(1);
//echo '<h2>On teste ses droits (point_man, mode_manuel, reloader, seller</h2>';
Ejemplo n.º 2
0
<?php

set_include_path(dirname(_FILE_) . '/../');
//echo '<h1>Test PBUY</h1>';
require_once 'PBUY.class.php';
$WsdlBase = new PBUY();
//echo '<h2>Un mec se logue sans mdp</h2>';
echo $WsdlBase->loadSeller('22000000063625', 4, 'test', 3);
//echo '<h2>On affiche son nom & Co</h2>';
//echo $WsdlBase->getSellerIdentity();
echo '<h2>Un client arrive...</h2>';
echo $WsdlBase->loadBuyer('6362', 2, 'test client');
//echo '<h2>On affiche son nom & Co</h2>';
//echo $WsdlBase->getBuyerIdentity();
echo '<h2>Proposition</h2>';
echo $WsdlBase->isLoadedSeller();
echo $WsdlBase->getProposition();
//echo $WsdlBase->reload(100, 2, 'toto', 267);
/*
echo $WsdlBase->getProposition();
echo $WsdlBase->select(256, 0, 'tt');
echo $WsdlBase->getProposition();
echo $WsdlBase->select(12, 60, 'tt');
echo $WsdlBase->getProposition();
*/
$client = new SoapClient("http://buckutt.dyndns.org/server/PBUY.class.php?wsdl");
//echo $client->loadSeller('22000000063625', 4, 'test', 3);
//echo $client->isLoadedSeller();
//$client = new SoapClient("http://10.10.10.1:8080/PBUY.class.php?wsdl");
//echo $client->loadSeller('22000000063625', 4, 'test', 3);
//echo $client->isLoadedSeller();