コード例 #1
0
 public function testLogoutConnectionFailure()
 {
     $client = new GenericPortalAdapter('./data/GenericPortalAdapter.wsdl', $options = array());
     $request = new LogoutRequest();
     $request->systemUID = 1;
     $request->sessionID = "sessionstring";
     $this->setExpectedException('SoapFault', 'Could not connect to host');
     $client->Logout($request);
 }
コード例 #2
0
<?php

include "../../src/GDS/GenericPortalAdapter.php";
include "../../src/GDS/GenericPortalAdapter/RegisterRequest.php";
include "../../src/GDS/GenericPortalAdapter/Collection/PlayerPropertyCollection.php";
use VasilDakov\GDS\GenericPortalAdapter, VasilDakov\GDS\GenericPortalAdapter\RegisterRequest;
$wsdl = '../../data/GenericPortalAdapter.wsdl';
// $wsdl = 'https://poker.pb.mt.bosscasinos.com/GDS/GenericPortalAdapter.asmx?WSDL';
$client = new GenericPortalAdapter($wsdl, $options = array());
$request = new RegisterRequest();
$request->systemUID = 66;
$request->clientUID = 998877;
$request->partnerUID = 86;
$request->ipAddress = '10.0.0.1';
// .....
$request->properties->offsetSet('Username', 'username');
$request->properties->offsetSet('Password', 'password');
$request->properties->offsetSet('FirstName', 'John');
$request->properties->offsetSet('LastName', 'Doe');
var_dump($request);
var_dump($request->properties->PlayerProperty);
$response = $client->Register($request);
var_dump($client->__getLastResponse());