Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- ini_set("soap.wsdl_cache_enabled","0");
- defined('DS') ? null : define('DS', DIRECTORY_SEPARATOR);
- try {
- $client = new SoapClient(getcwd().DS."helloworld.wsdl", [
- 'trace'=>true,
- 'exception'=>true,
- 'location'=>'http://192.168.0.228/wsdl/helloworld.wsdl',
- 'uri'=>'http://schemas.xmlsoap.org/wsdl/'
- ]);
- $result = $client->answerMe("1");
- print($result);
- } catch (SoapFault $exception) {
- echo $exception;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement