Page 1 of 1

Using WCF Services with PHP

Posted: Thu May 14, 2009 9:50 am
by basak.santanu
I am using WCF Web services and call it from PHP
I am getting this type of result
<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 />
just using this code

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 */
 
?>
I am using Apache
Pls anyone help me.