SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Jan 2005
    Location
    Earth
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    nusoap problem with soapclient

    I use the following code to call a remote method:
    require("nusoap.php");
    $wsdl="http://***********/server1.php?wsdl";
    $client=new soapclient($wsdl,'wsdl');
    $int=$client->call("GetIntroduction",array("3000"));
    //code finished

    The method "GetIntroduction" should return an array like ("title"=>"a title","body"=>"body") .
    The probelm is, $client->response contains the data I need, but variable $int contains nothing.
    Can anyone tell me why?
    Thank you very much.

  2. #2
    SitePoint Addict trogdor1024's Avatar
    Join Date
    Oct 2004
    Location
    New Jersey
    Posts
    235
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Your syntax looks correct, but what do you mean that $client->response contains the data you need? Is it as easy as setting $int = $client->response? I am assuming that GetIntroduction is a valid method and 3000 is a parameter that will give you results returned.

    Also try,
    PHP Code:
    <?
    $param 
    = array ( "3000" );
    $int $client->call("GetIntroduction",$param);
    ?>


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •