Were you able to resolve this and get PHP SOAP to talk to your .NET web service? I created a simple web service method using ASP.NET/C#
[WebMethod]
public int addNumbers(int num1, int num2)
{
int result = num1 + num2;
TextWriter tw = new StreamWriter(@"C:\WINDOWS\Temp\addNumbers.txt");
tw.WriteLine("" + num1 + " + " + num2 + " = " + result);
tw.Close();
return result;
}
So the input and output parameters to the method call are logged to a text file. When I test this web service method locally, it seems to work fine. But when I try to invoke it via PHP, I encounter a couple of problems -
(a) $soapClient->addNumbers(99, 101) resulted in the text file on the server containing "0 + 0 = 0"
(b) print $soapClient->addNumbers(99, 101); resulted in the following error on the PHP page
Catchable fatal error: Object of class stdClass could not be converted to string in C:\xampp\htdocs\inspect_service.php on line 27
where line 27 is the stated line.
Can you please help?
Thanks.
Ashwin