Im very new in PHP development and trying to consume a ASP.NET webservice.
This is my code:
Code: Select all
<HTML>
<HEAD>
<TITLE>New Document</TITLE>
</HEAD>
<BODY>
<?php
require_once('lib/nusoap.php');
$soap = new SoapClient('https://testsoap.test.nl:446/Service1.asmx?wsdl');
try {
$result = $soap->testPhp();
echo "$result";
} catch (SoapFault $e) {
echo "Error: {$e->faultstring}";
}
?>
</BODY></HTML>
PHP Catchable fatal error: Object of class stdClass could not be converted to string . on line 14.
And this is line 14 in my code:
echo "$result";
Can anyone help me with this issue?
Thanks