Page 1 of 1

Fatal error: Call to a member function addComplexType()

Posted: Fri Jan 16, 2009 3:09 pm
by Ms.Ranjan
Hi
I am developing soap server for a php application.I use Wamp server version 2.0 and Nusoap 0.7.3.I get the error the line mentioned below.

Code: Select all

 
$server->wsdl->addComplexType(
    'inp',  //Fatal error: Call to a member function addComplexType() on a non-object 
    'complexType',
    'struct',
    'all',
    '',
    array( 
           'inputs'=>array('name'=>'inputs','type'=>'xsd:string')      
         )
);
 
'inp' is just the targetNamespace defined for the array.I am not sure what the error means.
Can anyone plz help me out?

Thanks

Burrito: Please use PHP tags when inserting code.

Re: Fatal error: Call to a member function addComplexType()

Posted: Fri Jan 16, 2009 6:10 pm
by Cirdan
It is saying that $server is not an object on the line above it.

Re: Fatal error: Call to a member function addComplexType()

Posted: Sat Jan 17, 2009 9:06 am
by Ms.Ranjan
But this the line above it

// Create the server instance
$server = new soap_server;

I have already created the instance for it.The error is indicate in the line no:12
which is the target namespace declaration line,which is mentioned above