可捕获的致命错误 [英] Catchable fatal error

查看:69
本文介绍了可捕获的致命错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了一个PHP客户端Web服务

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";
?>



当我运行此程序时,我收到以下错误



可捕获的致命错误:类stdClass的对象无法转换为C:\ xampp \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\在第18行

任何人都可以通过它来帮助我。


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.

推荐答案

参数[ uname] =


_REQUEST [ uname];
_REQUEST["uname"];


参数[ pass] =


这篇关于可捕获的致命错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆