A community in which webmasters can ask for help with topics such as PHP coding , MySQL , IT jobs, web design, IT security.
Current location:homephp forumphp talk in 2008 year(PHP) Object of class SoapClient could not be converted to string - page 1
User InfoPosts
(PHP) Object of class SoapClient could not be converted to string#1
This code works fine:


$result = $client->__call("optionalInfo", array(
new SoapParam("...", "client"),
new SoapParam("...", "add_code"))
);


When I try abstracting it a bit to make the script re-usable, I get this error:

Catchable fatal error: Object of class SoapClient could not be converted to string

The broken code is:



$params = array( new SoapParam($client, "client"),
new SoapParam($add_code, "add_code")
);
$result = $client->__call($functionName, $params);



The last line is what is causing the problem.

posted date: 2008-12-19 11:10:00


Re: (PHP) Object of class SoapClient could not be converted to string#2
I had made out the solution of this problem. click to view my topic...

hope that hepls.

posted date: 2008-12-19 11:10:01


Re: (PHP) Object of class SoapClient could not be converted to string#3
Are you sure you want to send the SoapClient interface as an argument to a function call on the same object?new SoapParam($client, "client")

posted date: 2008-12-19 12:24:00


Re: (PHP) Object of class SoapClient could not be converted to string#4
That would be my problem, and no I did not mean to do that. "Client" happens to be a field for this particular web service and I completely overlooked that. Thanks!

posted date: 2008-12-19 15:45:00


select page: « 1 »
Copyright ©2008-2017 www.momige.com, all rights reserved.