Created
November 5, 2018 11:27
-
-
Save robozavri/a9d8d936c78f2519098859a967ff7599 to your computer and use it in GitHub Desktop.
laravel soap wsdl client
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try { | |
$url = 'https://178.888.888.999/stream/GetStylists.php?wsdl'; | |
$params = array( | |
"filiali" => 'drybar', | |
); | |
$options = array( | |
'cache_wsdl' => 0, | |
'trace' => 1, | |
'stream_context' => stream_context_create(array( | |
'ssl' => array( | |
'verify_peer' => false, | |
'verify_peer_name' => false, | |
'allow_self_signed' => true | |
) | |
))); | |
$client = new SoapClient($url, $options); | |
$response = $client->GetStylists($params); | |
dd(json_decode($response->Result)); | |
dd( $client->__getFunctions() ); | |
dd($client); | |
catch(Exception $e) { | |
echo $e->getMessage(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment