jjzjj

getLastResponse

全部标签

PHP 5 soapClient 结果为空 __getLastResponse 显示正确的 XML

当使用Soap服务时,结果为空,这就是为什么在getLastResponse中填充XML的原因。这是WSDL:Awebserviceusedtoperformsearchesonaninstance'sdata.Performsasearchbasedonrequestedcontextsandfilters.Awebserviceusedtoperformsearchesonaninstance'sdata.PHP代码:$client=newSoapClient("SearchWebService.wsdl",array('location'=>"$usingSSL://$hostn

php - SoapClient 返回 "NULL",但 __getLastResponse() 返回 XML

下面代码中的变量$response为NULL,尽管它应该是SOAP请求的值。(潮汐列表)。当我调用$client->__getLastResponse()时,我从SOAP服务获得了正确的输出。有人知道这里出了什么问题吗?谢谢!:)这是我的代码:$options=array("trace"=>true,"encoding"=>"utf-8");$client=newSoapClient("http://opendap.co-ops.nos.noaa.gov/axis/webservices/highlowtidepred/wsdl/HighLowTidePred.wsdl",$optio