I'm using NuSOAP and I get the following error when I display "getError()".

wsdl error: phpType is struct, but value is not an array: see debug output for details

Here is my code

require_once('nusoap/nusoap.php');

$wsdl = "http://192.168.103.200:8080/capabilities/";

$client=new soapclient($wsdl,'wsdl');

$param=array((string)'SIE-A60');

$response = $client->call('getCapabilities',array('CapabilitiesRequest' => 'SIE-ME45i'));

echo '<h1>Error: ' . $client->getError() . '</h1>';
echo "Manufacturer -> " . $response['manufacturer'];

I don't get anything returned from "Manufacturer"
Your help would be much appreciated

    I don't think the following is right:

    $param=array((string)'SIE-A60'); 

    Shouldn't you have something similar to:

    $param = array(
         'KEY_NAME' => 'SIE-A60'
     );
    

      I have tried that, as for example below:

      $response = $client->call('getCapabilities',array('CapabilitiesRequest' => 'SIE-ME45i'));

      I'm still getting the same error!!!

      😕

        I guess the next step you could take is to look at the WSDL and the web service itself to see if there is any issues there.

        Another good source of information is at:

        http://www.scottnichol.com/soap.htm

        Scott is the one who is maintaining NuSOAP. Plus, send a message to the SourceForge.net NuSOAP mailing list. You will get advice/responses from Scott sometimes.

        Thanks,

          Write a Reply...