Calling a .NET webservice PEAR::SOAP, passing parameters

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Hi, I'm trying to call a webservice written in .NET that takes some

I can get it working on a machine with php5 but when I try to call the
function from machine using php4 and PEAR::SOAP I get no input values

The function takes 2 strings and an integer, nothing complex. It returns  a

Here is the PHP4 code:
require_once 'SOAP/Client.php';
$wsdl_url = 'http://develop/register.asmx?WSDL';
$WSDL     = new SOAP_WSDL($wsdl_url);
$client   = $WSDL->getProxy();

$sFirstName = "Tony";
$sSurname = "Bloke";
$iID = 22;

$result = $client->Hello($sFirstName, $sSurname, $iID)

echo $result->HelloResult;

I got no errors and this was echoed to the page:
Hello your ID is 0

but what it should say is:
Hello Tony Bloke Your ID is 22

I modified the ASP.NET file to check the values in the string and I got an
error which basically said I was performing operations on strings didn't
exists, which suggests that the values were not being sent over from the PHP

So any suggestions where I'm going wrong with my php function call?


Site Timeline