Using WCF Services with PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
basak.santanu
Forum Newbie
Posts: 4
Joined: Mon Apr 13, 2009 10:43 am

Using WCF Services with PHP

Post 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.
Last edited by Benjamin on Thu May 14, 2009 12:14 pm, edited 1 time in total.
Reason: Added [code=php] tags.
Post Reply