Click here to Skip to main content
12,887,625 members (31,612 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: PHP
Hi, I have created a PHP Client web service
<?php
set_time_limit(0);
$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' =>
  SOAP_USE_XSI_ARRAY_TYPE + SOAP_SINGLE_ELEMENT_ARRAYS);
 
  // 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 0: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.170424.1 | Last Updated 14 Feb 2013
Copyright © CodeProject, 1999-2017
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