nusoap simple server

后端 未结 3 1501
攒了一身酷
攒了一身酷 2021-01-04 10:45

Hi i am using this code for nusoap server but when i call the server in web browser it shows message \"This service does not provide a Web description\" Here is the code

3条回答
  •  Happy的楠姐
    2021-01-04 11:17

    The web browser is not calling the Web service - you could create a PHP client :

    // Pull in the NuSOAP code
    require_once('lib/nusoap.php');
    // Create the client instance
    $client = new soapclient('your server url');
    // Call the SOAP method
    $result = $client->call('hello', array('name' => 'StackOverFlow'));
    // Display the result
    print_r($result);
    

    This should display Hello, StackOverFlow

    Update

    To create a WSDL you need to add the following :

    $server->configureWSDL(, );
    

提交回复
热议问题