Hi, I'm trying to call a webservice written in .NET that takes some
parameters.
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
returned.
The function takes 2 strings and an integer, nothing complex. It returns a
string.
Here is the PHP4 code:
<?php
require_once 'SOAP/Client.php';
$wsdl_url = 'http://develop/register.asmx?W SDL';
$WSDL = new SOAP_WSDL($wsdl _url);
$client = $WSDL->getProxy();
$sFirstName = "Tony";
$sSurname = "Bloke";
$iID = 22;
$result = $client->Hello($sFirstN ame, $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
file.
So any suggestions where I'm going wrong with my php function call?
Cheers,
Tony
parameters.
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
returned.
The function takes 2 strings and an integer, nothing complex. It returns a
string.
Here is the PHP4 code:
<?php
require_once 'SOAP/Client.php';
$wsdl_url = 'http://develop/register.asmx?W SDL';
$WSDL = new SOAP_WSDL($wsdl _url);
$client = $WSDL->getProxy();
$sFirstName = "Tony";
$sSurname = "Bloke";
$iID = 22;
$result = $client->Hello($sFirstN ame, $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
file.
So any suggestions where I'm going wrong with my php function call?
Cheers,
Tony
Comment