$wsdlURL = '';
$client = new SoapClient($wsdlURL);
$obj = new stdClass();
$obj->name = 'huypv';
# $obj = array();
# $obj['name'] = 'huypv';
$result = $client->__soapCall('getSingerInformation', $obj);
var_dump($result);
var_dump($result->returnSingerInformation->songList);
# Detail Example
<?php
$client = new SoapClient('http://www.webservicex.net/CurrencyConvertor.asmx?WSDL');
#var_dump($client->__getFunctions());
$obj = array();
$obj['FromCurrency'] = 'USD';
$obj['ToCurrency'] = 'VND';
$args = array($obj);
$result = $client->__soapCall('ConversionRate', $args);
echo '1' . $obj['FromCurrency'] . ' = ' . number_format($result->ConversionRateResult) . $obj['ToCurrency'];
Title:
PHP SoapClient call function from Java WebService
Description:
$wsdlURL = ''; $client = new SoapClient($wsdlURL); $obj = new stdClass(); $obj->name = 'huypv'; # $obj = array(); #...
...
Rating:
4