Skip to content

Instantly share code, notes, and snippets.

@snoek09
Last active April 22, 2020 15:09
Show Gist options
  • Save snoek09/3015689c5c8ef0fa1f076948346aa48c to your computer and use it in GitHub Desktop.
Save snoek09/3015689c5c8ef0fa1f076948346aa48c to your computer and use it in GitHub Desktop.
In case you need to connect to a soap service without WSDL
<?php
$client = new SoapClient(
null,
[
'location' => 'http://webservices.oorsprong.org/websamples.countryinfo/CountryInfoService.wso',
'uri' => 'http://www.oorsprong.org/websamples.countryinfo',
]
);
$params = [new SoapParam('Netherlands', 'sCountryName')];
var_dump($client->__soapCall('CountryISOCode', $params));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment