I'm trying to use a SOAP WCF (at least I hope that's what it is!) I have in one domain, in another domain using PHP.
I got it working on another domain using .NET by adding a service reference in VWD and uploading the files it generated and then using the respective namespace.
But I can't get it to work with PHP, and am a complete noob with PHP. I've basically just copied the example from Using WCF Services with PHP - Gunnar Peipman's ASP.NET blog and Using WCF Services With PHP 5 Geers’ Blog
PHP Code:
<?php
header('Content-Type: text/plain');
echo "WCF Test\r\n\r\n";
$client = new SoapClient('http://www.mydomain.com/webservices/mysoapEmailService.svc?wsdl');
$obj->loc = "none";
$obj->emailTo = "myemail@mydomain.com";
$obj->emailFrom = "myemail@myotherdomain.com";
$obj->subject = "test";
$obj->message = "test message";
$retval = $client->SendEmail($obj);
echo "Message: " . $retval->message;
?>
And All I get when I run it is 500 - Internal Server Error.
I installed PHP on my windows 2008 IIS7 server using the Web Platform Installer and I have run a simple PHP page, echo "Some Text" sort of thing. I've also commented out the code above on the $retval variable line and it runs fine, so it's obviously the call to the method that's wrong.
Any ideas how I go about debugging / solving this problem?
Bookmarks