Last updated on February 10, 2018
XTRF is one of the most popular and fastest growing management systems for translation agencies and corporate translation departments.
There is no tutorial on the web to use XTRF using PHP, so I thought of sharing this simple snippet I am sure which will help someone on the earth.
$wsdlUrl = 'http://...../translationManagementService/XTRFService?wsdl'; $opts = ['ssl' => ['verify_peer' => false,'verify_peer_name' => false,'ciphers'=>'RC4-SHA'] ]; $client = new SoapClient($wsdlUrl,['stream_context' => stream_context_create($opts)]);
That is it.Now you can all the available methods of WSDL. For example to loin to XTRF, call login method something like below shown
// here $client is SoapClient object, which we generated above return $client->login(['userName' => $userName, 'password' => $password]);