Skip to content

Instantly share code, notes, and snippets.

@robozavri
Created November 5, 2018 11:27
Show Gist options
  • Save robozavri/a9d8d936c78f2519098859a967ff7599 to your computer and use it in GitHub Desktop.
Save robozavri/a9d8d936c78f2519098859a967ff7599 to your computer and use it in GitHub Desktop.
laravel soap wsdl client
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