gpt4 book ai didi

PHP SoapClient 版本不匹配

转载 作者:行者123 更新时间:2023-12-02 04:51:02 26 4
gpt4 key购买 nike

<分区>

除了这条错误信息,这里没什么可写的了:

SoapFault 对象 ( [message:protected] => 版本错误 [string:Exception:private] => [code:protected] => 0 [file:protected] => C:\wamp\www\nsoap\phpclient。 php [line:protected] => 10 [trace:Exception:private] => Array ( [0] => Array ( [file] => C:\wamp\www\nsoap\phpclient.php [line] => 10 [function] => __call [class] => SoapClient [type] => -> [args] => Array ( [0] => getIMIPremium [1] => Array ( [0] => Array ( [imiPolicy] = > 数组 ( [expiryDate] => 23-09-2013 [imiInsured] => 数组 ( [item] => 数组 ( [item] => 数组 ( [age] => 23 [basicSumInsured] => 33233 [coverRageType] = > 12 [dateOfBirth] => 26-09-1986 [preExistingDisease] => no ) ) ) [inceptionDate] => 12-09-2009 [noOfInsured] => 1 [partnerCode] => 2121 [stateCode] => 233 ) ) ) ) ) [1] => Array ( [file] => C:\wamp\www\nsoap\phpclient.php [line] => 10 [function] => getIMIPremium [class] => SoapClient [type] = > -> [args] => 数组 ( [0] => 数组 ( [imiPolicy] => 数组 ( [expiryDate] => 23-09-2013 [imiInsured] => 数组 ( [item] =>数组 ( [item] => 数组 ( [age] => 23 [basicSumInsured] => 33233 [coverRageType] => 12 [dateOfBirth] => 26-09-1986 [preExistingDisease] => no ) ) [inceptionDate] = > 12-09-2009 [noOfInsured] => 1 [partnerCode] => 2121 [stateCode] => 233 ) ) ) ) ) [previous:Exception:private] => [faultstring] => 版本错误 [faultcode] =>版本不匹配 [faultcodens] => http://schemas.xmlsoap.org/soap/envelope/ [xdebug_message] => (!) SoapFault: C:\wamp\www\nsoap\phpclient.php 中的第 10 行调用堆栈版本错误 #TimeMemoryFunctionLocation 10.0009674576{main}( )..\phpclient.php:0 20.0704702744SoapClient-> getIMIPremium( )..\phpclient.php:10 )

有没有可能是客户端php代码出错了?我已经尝试过 NuSoap,但它也会生成错误“调用错误:响应不是文本/xml 类型:application/wsdl+xmlHTTP/1.1 200 OK 日期:2013 年 9 月 17 日星期二 16:55:39 GMT 服务器:Apache/2.2.22 (Win64) PHP/5.3.13 最后修改时间:2013 年 9 月 17 日星期二 13:18:39 GMT ETag:“a0000000a818c-12e9-4e69428b54054” 接受范围:字节内容长度:4841 连接:关闭内容-输入:application/wsdl+xml ".

你知道有什么解决办法吗?

PHP 代码:

<?php

try{


$client = new SoapClient("http://mysite.com/nsoap/IMIPremiumWebService.wsdl");


$args= array("imiPolicy" => array("expiryDate" => "23-09-2013", "imiInsured" =>array("item" => array("item" => array("age"=>'23', "basicSumInsured"=>'33233', "coverRageType"=>'12',"dateOfBirth"=>'26-09-1986',"preExistingDisease" => 'no'))), "inceptionDate"=>"12-09-2009" ,"noOfInsured"=>'1',"partnerCode" => '2121', "stateCode" => '233'));
$something = $client->getIMIPremium($args);
echo $client->responseData;


print_r($something);
}
catch (Exception $e)
{

echo "*****************";
print_r($e);
}

?>

您可以在此处找到 wsdl(在我与 NuSOAP 相关的问题中: WSDL Client Not Working

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com