Help!-How to call perl webservice from php4

Discussion in 'PHP' started by balaa_uk, Sep 12, 2006.

  1. #1
    I have created a perl webservice using the article http://www.developer.com/tech/article.php/3566631 and need help desparetly.

    Please could some one tell me how to call this service and obtain return values from php4. I tried with NuSOAP, but just dont know how to call it and use the return values.

    Please help.
     
    balaa_uk, Sep 12, 2006 IP
  2. 123GoToAndPlay

    123GoToAndPlay Peon

    Messages:
    669
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    @balaa_uk, did you get an answer??
     
    123GoToAndPlay, Feb 9, 2007 IP
  3. designcode

    designcode Well-Known Member

    Messages:
    738
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    118
    #3
    Calling webservice with NuSOAP is really easy, please see the following code and you will get an idea how to do that.

    <?php include('nusoap.php');
    
       $client = new SoapClient("http://YourPerlService.com/perl.wsdl");
       $response = $client->call("youMethod", "yourParameters"));
    
    ?>
    
    PHP:
    Now the values returned from webservice are stored in $response.
    I hope this will give you some hint, if you still have problems with it feel free to ask :)
     
    designcode, Feb 9, 2007 IP