Fatal error: Call to a member function addComplexType()

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Ms.Ranjan
Forum Newbie
Posts: 2
Joined: Fri Jan 16, 2009 3:02 pm

Fatal error: Call to a member function addComplexType()

Post 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.
Cirdan
Forum Contributor
Posts: 144
Joined: Sat Nov 01, 2008 3:20 pm

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

Post by Cirdan »

It is saying that $server is not an object on the line above it.
Ms.Ranjan
Forum Newbie
Posts: 2
Joined: Fri Jan 16, 2009 3:02 pm

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

Post 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
Post Reply