[英]PHP SOAP client invalid actor
I've never worked with SOAP before. 我以前从未使用过SOAP。 I have got everything to work, but I get a PHP warning in the errors log.
我已经完成所有工作,但是在错误日志中收到了PHP警告。
Warning: 警告:
[05-Nov-2015 11:06:06 UTC] PHP Warning: SoapHeader::SoapHeader():
Invalid actor in
C:\www\srf.cdab.eu\wp-content\themes\mypage\includes\soap.php on line 61
soap.php:61 soap.php:61
$objSoapVarWSSEHeader = new SoapHeader($strWSSENS, 'Security',> $objSoapVarHeaderVal, true, NULL);
I've googled and haven't find anything that explains why I get this error. 我已经在Google上搜索,但找不到能解释为什么出现此错误的信息。 What could be the reason of this problem?
这个问题可能是什么原因?
The Actor musst be a URI-String or SOAP_ACTOR_NONE. Actor必须是URI-String或SOAP_ACTOR_NONE。
$objSoapVarWSSEHeader = new SoapHeader($strWSSENS, 'Security', $objSoapVarHeaderVal, true, SOAP_ACTOR_NONE);
or 要么
$objSoapVarWSSEHeader = new SoapHeader($strWSSENS, 'Security', $objSoapVarHeaderVal, true, 'https://yourdomain/yourservice');
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.