I am getting this type of result
just using this code<br />
<b>Fatal error</b>: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't find <definitions> in 'http://hcsservice/HCSLookup.svc?wsdl' in F:\xampp\htdocs\peoplecapital\app\webroot\SOAP\soap_link\CJ\cj_api.php:6
Stack trace:
#0 F:\xampp\htdocs\peoplecapital\app\webroot\SOAP\soap_link\CJ\cj_api.php(6): SoapClient->SoapClient('http://hcsservi...')
#1 {main}
thrown in <b>F:\xampp\htdocs\peoplecapital\app\webroot\SOAP\soap_link\CJ\cj_api.php</b> on line <b>6</b><br />
Code: Select all
<?php
header('Content-Type: text/plain');
echo "WCF Test\r\n\r\n";
$client = new SoapClient('http://hcsservice/HCSLookup.svc?wsdl'); /* Line no 6 */
?>Pls anyone help me.