Revision: 48397
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at June 30, 2011 18:27 by patriksvenssonmpsbroadbandcom
Initial Code
$client = new SoapClient("http://cs2.acme.com/SessionService.svc?wsdl", array('location' => "http://cs2.acme.com/SessionService.svc/basic")); $createSessionContextParameters->IpAdress = '127.0.0.1'; $createSessionContextParameters->ClientType = 'web_browser'; $createSessionContextParameters->Referrer = ''; $createSessionContextParameters->OperatorOverride = 'abc12345def67'; $createSessionContextParameters->ServiceID = 123; $createSessionContextParameters->RegionOverride = ''; $createSessionContextParameters->LanguageOverride = ''; try{ $response = $client->CreateSessionContext(array('parameters' => $createSessionContextParameters)); } catch(SoapFault $fault){ trigger_error("ERROR: (faultcode: {$fault->faultcode}, faultstring: {$fault->faultstring})", E_USER_ERROR); } $sessionContext = $response->CreateSessionContextResult;
Initial URL
Initial Description
Mockup of how to create a SessionContext using PHP SOAP and ClientServices 2
Initial Title
PHP SOAP CreateSessionContext
Initial Tags
php
Initial Language
PHP