Advertisement
xkeshav

client.php

Nov 20th, 2014
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.61 KB | None | 0 0
  1. <?php
  2. ini_set("soap.wsdl_cache_enabled","0");
  3. defined('DS') ? null : define('DS', DIRECTORY_SEPARATOR);
  4. try {
  5.   $client = new SoapClient(getcwd().DS."helloworld.wsdl", [
  6.                                         'trace'=>true,
  7.                                         'exception'=>true,
  8.                                         'location'=>'http://192.168.0.228/wsdl/helloworld.wsdl',
  9.                                         'uri'=>'http://schemas.xmlsoap.org/wsdl/'
  10.                                     ]);
  11.   $result = $client->answerMe("1");
  12.   print($result);
  13. } catch (SoapFault $exception) {
  14.   echo $exception;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement