Last active
April 22, 2020 15:09
-
-
Save snoek09/3015689c5c8ef0fa1f076948346aa48c to your computer and use it in GitHub Desktop.
In case you need to connect to a soap service without WSDL
This file contains 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
<?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