PHP SOAP客户端无效的actor

时间:2015-11-05 11:11:05

标签: php soap

我之前从未使用过SOAP。我已经完成了所有工作,但我在错误日志中收到了PHP警告。

警告:

[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

$objSoapVarWSSEHeader = new SoapHeader($strWSSENS, 'Security',> $objSoapVarHeaderVal, true, NULL);

我已经用Google搜索了,并且找不到任何可以解释我收到此错误的原因。这个问题可能是什么原因?

1 个答案:

答案 0 :(得分:0)

Actor musst是一个URI-String或SOAP_ACTOR_NONE。

$objSoapVarWSSEHeader = new SoapHeader($strWSSENS, 'Security', $objSoapVarHeaderVal, true, SOAP_ACTOR_NONE);

$objSoapVarWSSEHeader = new SoapHeader($strWSSENS, 'Security', $objSoapVarHeaderVal, true, 'https://yourdomain/yourservice');