Click here to Skip to main content
11,929,675 members (54,358 online)
Rate this:
Please Sign up or sign in to vote.
See more: PHP
Hi, I have created a PHP Client web service
$Params["uname"]    = $_REQUEST["uname"];
$Params["pass"]    = $_REQUEST["pass"];
//$client = new SoapClient("http://localhost:8080/add/add?WSDL");
  // The path to the WSDL web service.
  $wsdl = "http://localhost:8080/add/add?WSDL";
  // The connection options.
  $options = array('features' =>
  // Create a new SoapClient.
  $client = new SoapClient($wsdl, $options);
  // call the inser operation
  $response = (string)$client->inser($Params);
    echo "$response";
     echo "SoapClient creation successful<br>\n";
when I am running this progrm i am getting following error

Catchable fatal error: Object of class stdClass could not be converted to string in C:\xampp\htdocs\PHPWebservice\PHPWebService\new\PHPClient.php on line 18
can anyone help me throug it.
Posted 14-Feb-13 1:24am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.151126.1 | Last Updated 14 Feb 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100