Skip to content

Commit

Permalink
Closes #4
Browse files Browse the repository at this point in the history
  • Loading branch information
Salamek committed Jun 28, 2017
1 parent 3996d7c commit 4c2b6e9
Showing 1 changed file with 2 additions and 19 deletions.
21 changes: 2 additions & 19 deletions src/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
*
* V dokumentaci mi zaslane chybi validni ukazky predavacich protokolu
*
* V dokumentaci chybi podminky, jake je splnit k uspesnemu zprovozneni MyAPI a povoleni na strane PPL
* V dokumentaci chybi podminky, jake je nutne splnit k uspesnemu zprovozneni MyAPI a povoleni na strane PPL
*/
class Api
{
Expand Down Expand Up @@ -122,25 +122,8 @@ public function __construct($username = null, $password = null, $customerId = nu

$this->securedStorage = sys_get_temp_dir() . '/' . __CLASS__;


try {
//!FIXME ####################### SECURITY ##########################
//!FIXME Special options to pass invalid SSL certificate on *.ppl.cz
//!FIXME ####################### SECURITY ##########################
$options = [
"location" => "https://myapi.ppl.cz/MyApi.svc",
"trace" => 1,
"stream_context" => stream_context_create([
"ssl" => [
"verify_peer" => false,
"allow_self_signed" => false
]
]
)
];

$this->soap = new \SoapClient($this->wsdl, $options);

$this->soap = new \SoapClient($this->wsdl);
} catch (\Exception $e) {
throw new \Exception('Failed to build soap client');
}
Expand Down

0 comments on commit 4c2b6e9

Please sign in to comment.