SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Oct 2006
    Posts
    139
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    php5 ext/soap and nusoap compatbility

    I created a soapserver using php5 ext/soap:

    Here is the php5 client request:
    PHP Code:
    $result $client->FunctionName($param); 
    Here is the nusoap client request:
    PHP Code:
    $result $client->call('FunctionName'$params); 
    For some reason, when using the nusoap client I get an error:
    PHP Code:
    [faultstring] => Procedure 'FunctionName' not present 
    Nusoap client doesnt work, but php5 does. Is there some compatibility issue when using php5 as a soap server with a nusoap client?

    The php5 server works like this:
    PHP Code:
    // FunctionName is a function inside the Myfunctions class.
    $server = new SoapServer("soapserver.wsdl");
    $server->setObject(new MyFunctions());
    $server->handle(); 
    I dont get it. Any help would be greatly appreciated.

    I will go down the route of build the soapserver in nusoap if necessary, but since ive already built the php5 server i would rather pursue this if i can fix this error.

    cheers

    DB

  2. #2
    SitePoint Zealot
    Join Date
    Oct 2006
    Posts
    139
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok, so i now managed to figure out that the wsdl can be changed to RPC instead of DOCUMENT, which is what I have been using. Now the setClass function loads the correct functions. How come I cannot use DOCUMENT style for nusoap client?


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
  •