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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tony B

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

    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


  • bens
    New Member
    • May 2006
    • 1

    #2
    Hi, I'm french.
    I've got the same prob.
    Do you find a solution? Thx for a response.

    Bens

    Comment

    Working...